AllskyTeam / allsky-modules

User modules for allsky
MIT License
17 stars 17 forks source link

module installation confusion - Improve error handling #97

Open Alex-developer opened 4 months ago

Alex-developer commented 4 months ago

Discussed in https://github.com/AllskyTeam/allsky-modules/discussions/96

Originally posted by **morrowwm** February 21, 2024 I'm dabbling with the module system, but am stuck getting modules installed. I've cloned the repository, and run `install.sh` to install the `allsky_dewheater` module. It shows up in `/opt/allsky/modules`. I don't see it in the Module Manager, however. Nothing in `/var/log/allsky.log`. I also zipped up the directory and tried using the Upload facility within the Module Manager, but got `Failed to upload the plugin. Unable to move the file`. Version: v2023.05.01_04 on a RPi4 with 4GB RAM. Never mind, it looks like my problems were because of some earlier efforts. I had copied a prototype module directly into `scripts/modules`, and it was generating an error in `/var/log/allskyperiodic.log`. I stopped allsky, deleted the offending module from `config/modules/postprocessing_periodic.json`, and now the Module Manager is showing the modules installed by `install.sh`. Leaving this here for others. I could write up some extra troubleshooting detail for the module installation step?