https://github.com/vogler/sensors
Log sensor data using RPi
https://github.com/vogler/sensors
bme280 co2-sensor esp8266 mh-z19 mh-z19b mqtt particle-sensor pms7003 rpi3 sensors thingspeak tsl2561 wemos-d1-mini
Last synced: 12 months ago
JSON representation
Log sensor data using RPi
- Host: GitHub
- URL: https://github.com/vogler/sensors
- Owner: vogler
- Created: 2017-09-05T10:20:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-12-15T11:34:35.000Z (over 4 years ago)
- Last Synced: 2025-02-15T04:46:29.043Z (about 1 year ago)
- Topics: bme280, co2-sensor, esp8266, mh-z19, mh-z19b, mqtt, particle-sensor, pms7003, rpi3, sensors, thingspeak, tsl2561, wemos-d1-mini
- Language: Python
- Size: 38.1 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Log sensor data using RPi and ESP8266
Example: https://thingspeak.com/channels/321821
[Sensors](https://github.com/vogler/sensors) -> [MQTT](https://mosquitto.org/) -> [Telegraf](https://github.com/influxdata/telegraf) -> [InfluxDB](https://github.com/influxdata/influxdb) -> [Chronograf](https://github.com/influxdata/chronograf):

## Sensors
| Sensor | Measurement | Interface | Host | Publish to |
|----------- |--------------------------------------------------------------------- |------------- |--------------- |---------------------- |
| [BME280](https://github.com/vogler/sensors/blob/master/thingspeak.py) | temperature (C), pressure (mBar), humidity (%) | I2C | RPi3 | thingspeak, MQTT |
| [TSL2561](https://github.com/vogler/sensors/blob/master/thingspeak.py) | visible light (lux), infrared, broadband | I2C | RPi3 | thingspeak, MQTT |
| [MH-Z19B](https://github.com/vogler/mh-z19) | CO2 (ppm) | UART (USB) | RPi3 | MQTT |
| [PMS7003](https://github.com/vogler/python-pms7003) | particle matter (counts and PM [1, 2.5, 10] ug/m³) | UART (pins) | RPi3 | MQTT |
| [FlowMeter](https://github.com/vogler/FlowMeter) | shower usage via Hall effect flow sensor (ml/s, total_ml, duration) | GPIO ISR | Wemos D1 mini | MQTT |
| [BloodPressureWifi](https://github.com/vogler/BloodPressureWifi) | read Beurer blood pressure monitor (hiBP, loBP, HR) | SPI EEPROM | Wemos D1 mini | MQTT |
[thingspeak.py](thingspeak.py) reads BME280 and TSL2561, the other sensors run as standalone services (see their repos).
## Setup
Install dependencies with `pipenv install`.
Register at www.thingspeak.com and replace `Config.key` in `thingspeak.py`.
Run with
~~~
./thingspeak.py 2>&1 | tee -a thingspeak.log
~~~