Update README.md

This commit is contained in:
Masoko
2020-04-27 16:47:29 +03:00
committed by GitHub
parent b1fe6d5417
commit a55cb94f0a

View File

@@ -1,4 +1,12 @@
# Python 2 script to check cpu load, cpu temperature and free space, Python 2 script to check cpu load, cpu temperature and free space,
# on a Raspberry Pi computer and publish the data to a MQTT server. on a Raspberry Pi computer and publish the data to a MQTT server.
# RUN pip install paho-mqtt
# RUN sudo apt-get install python-pip #Installation:
Install these two modules needed for the script
RUN pip install paho-mqtt
RUN sudo apt-get install python-pip
Rename config.py.example to config.py and populate the needed variables
Test the script.
Create a cron entry like this:
*/2 * * * * /usr/bin/python /home/pi/scripts/cpu_mqtt.py