Thermometer Driver - fo-am/sonic-kayaks GitHub Wiki
About
The thermometer driver is written in Python 3. It deals with incoming data from both thermometers attached to the Raspberry Pi through the GPIO pins. The script does the following:
- Converts readings from the sensors into scientific units (degrees celcius)
- Logs temperatures with date and time obtained from the system
- Undertakes gradual calibration of the data to pick up subtle changes and feed values to
osc
Data format
Data is logged in a text file - temp.log with comma separated values. Data headers are:
date, time, device, temp
date: YYYY:MM:DD
time: HH:MM:SS
device: ID of sensor (0 or 1)
temp: temperature in degrees celcius