- Raspberry Pi or similar
- w1-gpio & w1-therm
- DS18B20 sensor(s)
- Python3
sudo echo w1-gpio >> /etc/modules
sudo echo w1-therm >> /etc/modules
You need the python3-dev package to compile PyCrypto
sudo apt-get install python3-dev
Get the latest version from https://www.dlitz.net/software/pycrypto/
Note: If you're building on a Raspberry Pi or any other low powered device it may seem like it hangs on "Skipping implicit fixer: set_literal". Give it some time, my Pi used about 5 minutes on this step.
wget http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.1.tar.gz
tar xvf pycrypto-2.6.1.tar.gz
cd pycrypto-2.6.1/
sudo python3 setup.py build
sudo python3 setup.py install
Now you can clean up and remove the pycrypto-2.6.1
-folder
Find a nice place for them...
I have register_temperatures.py fire every minute and upload_temperatures.py fire every 5 minutes.
* * * * * python3 /full/path/to/scripts/register_temperature.py
*/5 * * * * python3 /full/path/to/scripts/upload_temperatures.py