This project can be use as a RaspberryPi temperature sensor(DS18B20) and water flow meter(YF-S201) example.
2 - 5volts
6 - GND
8 - Data (flowmeter1)
10 - Data (flowmeter2)
$ cd YF-S201 && python main.py -pin 8
$ cd DS18B20/ && bash install.sh
You can test with this command:
$ cat /sys/bus/w1/devices/28-XXXXXXXXXXXX/w1_slave
1 - 3.3volts
6 - GND
7 - Data
$ cd DS18B20 && python main.py
$ cd InfluxDB/ && bash install.sh
You should be now able to open:
http://localhost:8083
You can install Grafana via this command line:
$ cd Grafana/ && bash install.sh
You should be now able to open:
http://localhost:3000
This file is a dashboard example:
$ cat Grafana/telemetry.json
$ sudo nano /etc/rc.local
Add lines before "exit 0":
python /home/pi/DS18B20_YF-S201_RaspberryPi/DS18B20/main.py &
python /home/pi/DS18B20_YF-S201_RaspberryPi/YF-S201/main.py &
more info
$ cd PiOLED/ && bash install.sh
-->Enable I2C interface when 'raspi-config' interface pop up.
For testing, see examples in folder:
$ ls Adafruit_Python_SSD1306/examples