-
Notifications
You must be signed in to change notification settings - Fork 15
Install
richibrics edited this page Dec 17, 2021
·
3 revisions
PyMonitorMQTT needs Python3.7 to run. You can install it here.
To install required packages you need pip
To install dependencies all together, you only have to type in your terminal
python3 -m pip install -r requirements.txt
In addition, to get CPU temperature from Windows you need:
- wmi (module from pip):
python3 -m pip install wmi - Open Hardware Monitor (external software). Download it
You can run this program in the background automatically on startup this way.
- Edit PyMonitorMQTT.service
-
Change path on
ExecStartline to point to main.py -
Change user and group
- Copy the unit file, than enable and start the daemon
sudo cp PyMonitorMQTT.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable PyMonitorMQTT.service
sudo systemctl start PyMonitorMQTT.service- Check if it's running correctly:
systemctl status PyMonitorMQTT.serviceTo check the logs:
sudo journalctl -u PyMonitorMQTT.service