Unable to make it work
kimzeuner opened this issue · comments
kizeu commented
Hello everyone,
i was searching for a way to get the information about my spools in home assistant and i found this octoprint mqtt enclosure.
in the last days i was trying to make it work but unfortunately i was not able to manage it.
OctoPi (latest stable version) is running on a Raspberry PI 4.
I have already installed the MQTT plugin in octoprint and the connection is working as i see the (standard) mqtt entities in home assistant.
What i have tried to make this mqtt enclosure work:
- Copy the files of "octoprint-mqtt-enclosure" to my raspberry pi - path: "/home/pi/octoprint-mqtt-enclosure"
- Changed the MQTT Config in "main.py" with
- mqtt_host = "my home assistant ip adress"
- mqtt_port = 1883
- mqtt_username = username of the configured moquitto broker in ha
- mqtt_password = password of the configured moquitto broker in ha
- Create a cron job (tried both, "sudo crontab -e" and "crontab -e" with the following content (i have tried different options, not all in one crontab)
-
-
-
-
-
- python /home/pi/octoprint-mqtt-enclosure/main.py
-
-
-
-
-
-
-
-
-
- python3 /home/pi/octoprint-mqtt-enclosure/main.py
-
-
-
-
- */1 * * * * python /home/pi/octoprint-mqtt-enclosure/main.py
- */1 * * * * python3 /home/pi/octoprint-mqtt-enclosure/main.py
- /1 * * * * python /home/pi/octoprint-mqtt-enclosure/main.py
- /1 * * * * python3 /home/pi/octoprint-mqtt-enclosure/main.py
Am i running the wrong python script in my cron job or do i have to create more cron jobs for other scripts ?
Do i have to change any other settings ?
Thanks in advance!
Regards