Beginner question, correct way to test custom module? #201
-
I am writing a module that will pull a JSON object from MQTT and add this to the overlay variables. The link to the module I am working on is: https://github.com/chvvkumar/allsky-modules/tree/allsky_mqttsubscribe/allsky_mqttsubscribe What is the correct way to test this on my AllSky instance? Primary concern is, if I clone my repo to the running pi and run install.sh, would it overwrite the modules already installed from the official allsky-modules repo (or even uninstall ehm since I will only select my own module to install in my repo)? Or is there a way to test the module from |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Best way is to copy the module file into /opt/allsky/modules. If it requires any dependencies then manually install them, don't forget to enable the venv first Once its in there it will be available in the module manager. Keep an eye on /var/log/lighttpd for any errors as whilst he modules are written in Python the metadata variable is read by php so if there are any issues with it you may get some errors. |
Beta Was this translation helpful? Give feedback.
Yes it does trigger a notification :-)
I recreated the dev branch a few hours ago as it was a long way out of date. If you do a new PR against the dev branch it should be ok
Alex