Tobi0892 / octoprint-mqtt-enclosure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to make it work

kimzeuner opened this issue · comments

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:

  1. Copy the files of "octoprint-mqtt-enclosure" to my raspberry pi - path: "/home/pi/octoprint-mqtt-enclosure"
  2. Changed the MQTT Config in "main.py" with
  3. mqtt_host = "my home assistant ip adress"
  4. mqtt_port = 1883
  5. mqtt_username = username of the configured moquitto broker in ha
  6. mqtt_password = password of the configured moquitto broker in ha
  7. 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
  8. */1 * * * * python /home/pi/octoprint-mqtt-enclosure/main.py
  9. */1 * * * * python3 /home/pi/octoprint-mqtt-enclosure/main.py
  10. /1 * * * * python /home/pi/octoprint-mqtt-enclosure/main.py
  11. /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