-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allsky_discordsend.py fails if all webhook URL fields are not filled #86
Comments
Thanks I'll fix this in the next release |
After letting the software do its thing for a day, there might be something else going on here.
|
I can confirm this behavior here. I have all fields filled and only the keogram enabled, but it won't upload on its own at the end of the night; it will only upload when I initiate |
I have found the issue and am working on a fix |
Fix add to the modules. You will also need to edit a script in the main allsky folder Edit ~/allsky/scripts/endOfNight.sh and add the following libe set -a so that the file looks like this https://github.com/AllskyTeam/allsky/blob/v2024.xx.xx/scripts/endOfNight.sh |
I'll give this a try and see if it uploads in the morning. Thanks! |
I made the changes above and replaced Thank you for looking into this! |
I forgot to report that my problem has been solved with these changes. Thanks! |
Describe the bug
When utilizing only the timelapse posting feature of allsky_discordsend.py, and if only the timelapse webhook URL is populated, the script will fail and log
ERROR: Module allsky_discordsend.py failed on line 224 - can only concatenate str (not "NoneType") to str
To Reproduce
Steps to reproduce the behaviour:
./endOfNight.sh
or wait for the script to run normallyExpected behaviour
The script should either warn the user to fill out all webhook fields or only check and concatenate webhook fields of enabled features. Instead, the script fails and logs to
/var/log/allsky.log
.When all webhook fields are filled, and the timelapse post feature is enabled, the script completes successfully upon running
./endOfNight.sh
Allsky Information:
Sensors
SHT31
The text was updated successfully, but these errors were encountered: