Files
Scanning the repository...
Last update 2 years 1 month
by Stephen Crane
| Fileshub | |
|---|---|
| .. | |
| .gitignore | |
| Makefile | |
| README.md | |
| lcd.cpp | |
| mqtt.cpp | |
| mux.cpp | |
| mysql.cpp | |
| nodes.txt | |
| rrd.cpp | |
| sensorhub.cpp | |
| sensorlib.cpp | |
| sensorlib.h | |
| services.sh | |
| status.cpp |
README.mdTinySensors' Hub
Several programs, sensorhub, mux, status, mqtt, lcd, to connect TinySensors to the Internet. Prototyped and run on a Raspberry Pi with an nrf24l01+ connected to its GPIO port, as described here.
sensorhub
- must be run as root (for access to /dev/watchdog and /dev/spidev)
- polls the RF24 device for messages from sensors
- writes sensor readings into a MySQL database
By default it, - listens on port 5555 for TCP connections on which it echoes sensor readings (disable with -s) - runs as a daemon (disable with -v, also enables verbose mode) - will reboot the Pi via the watchdog timer if no sensor readings received for 5 minutes, it seems the radio stops responding every few weeks or so (disable with -w)
See here for more information on the Pi's watchdog timer.
mux
- connects to sensorhub's port 5555
- listens for up to 20 clients on port 5678 and relays sensor readings to them
- by default runs as a daemon (disable with -v, also enables verbose mode)
status
- manages a pair of LEDs (red and green) connected to a single GPIO line
- connects to mux and flashes the red LED when it detects sensor activity
- green LED stays solid until inactivity timeout when it turns solid red
lcd
- connects to mux and lcdproc server
- displays several screens' worth of sensor information
mqtt
- connects to mux and MQTT server
- writes sensor information to several topics in either text or json format
- also supports Domoticz and Opensensors
other clients
- unmaintained
- rrd writes readings to an RRD database
- mysql writes readings to a MySQL database