Update README.md
This commit is contained in:
@@ -4,9 +4,15 @@ on a Raspberry Pi computer and publish the data to a MQTT server.
|
|||||||
|
|
||||||
# Installation:
|
# Installation:
|
||||||
Install these two modules needed for the script
|
Install these two modules needed for the script
|
||||||
|
|
||||||
RUN pip install paho-mqtt
|
RUN pip install paho-mqtt
|
||||||
|
|
||||||
RUN sudo apt-get install python-pip
|
RUN sudo apt-get install python-pip
|
||||||
|
|
||||||
Rename config.py.example to config.py and populate the needed variables
|
Rename config.py.example to config.py and populate the needed variables
|
||||||
|
|
||||||
Test the script.
|
Test the script.
|
||||||
|
|
||||||
Create a cron entry like this:
|
Create a cron entry like this:
|
||||||
|
|
||||||
*/2 * * * * /usr/bin/python /home/pi/scripts/cpu_mqtt.py
|
*/2 * * * * /usr/bin/python /home/pi/scripts/cpu_mqtt.py
|
||||||
|
|||||||
Reference in New Issue
Block a user