This script will allow you to read information from a Raspberry Pi's GPIO pin and send it to a MySQL database.
This particular script was written to interface with the DS18B20 temperature sensor.
-
Replace the appropriate YOURXHERE lines with the requested data.
-
Verify that the correct device is being used, this may need to be changed on your machine for this to work.
-
Run the program in a screen session or something that will be persistent.
-
Enjoy the graphs!