Closed fpcaptain closed 1 month ago
Please do not open issues without providing AT LEAST:
/usr/local/bin/SkywarnPlus/config.yaml
/tmp/SkywarnPlus/SkywarnPlus.log
/tmp/SkywarnPlus/data.json
data.json SkywarnPlus.log config.yaml wont attach so I pasted that
There is a WX alert now for fog. Also I use the same for node 24222 GMRS and 513960 Ham so the node numbers may differ but the rest of the info is the same. data.json SkywarnPlus.log
Error caused by improper formatting in the AlertScript
section of config.yaml
, which caused an exception in Python and crashed the script at the AlertScript
execution, before SayAlert
or Pushover was processed. Error below seen when manually executing the SkywarnPlus.py
script:
File "./SkywarnPlus.py", line 1803, in <module>
main()
File "./SkywarnPlus.py", line 1723, in main
alert_script(alerts)
File "./SkywarnPlus.py", line 1162, in alert_script
matched_alerts = [alert for alert in new_alerts if alert in triggers]
File "./SkywarnPlus.py", line 1162, in <listcomp>
matched_alerts = [alert for alert in new_alerts if alert in triggers]
TypeError: argument of type 'NoneType' is not iterable
The AlertScript
section of your config.yaml
looks like this:
Mappings:
- Type: BASH
Commands:
- '/usr/local/bin/SkywarnPlus/SkyDescribe.py "{alert_title}"'
Triggers:
- '*Warning'
- '*Watch'
- '*Advisory'
- '*Statement'
but needs to look like this (fix indentation):
Mappings:
- Type: BASH
Commands:
- '/usr/local/bin/SkywarnPlus/SkyDescribe.py "{alert_title}"'
Triggers:
- '*Warning'
- '*Watch'
- '*Advisory'
- '*Statement'
OK Thank you!
Before I did the update I was getting Pushover alerts but have not received on since doing the update last month. We have had several weather alerts since then. Below is a copy and paste of my config.yaml with the registered to me info changed some. It also seems like the over the air alerts are not coming on like they were but they have came on and said clear. Maybe by looking at this you will see my error. If anything else is needed just let me know but the log and tmp folder stuff seems to be normal so I can only guess I have something not right on here.