Open wildloveil opened 3 years ago
Hi, You can search your area in the following URL: https://www.oref.org.il//12481-he/Pakar.aspx in the bottom of the screen you will be able to search is. you can also write in down like אשקלון or אשדוד and it will work.
Thank you for the quick response! I'm afraid it's not working, even with I run with the default region (i.e *)
The logs from the container are:
2021-05-14 23:40:24.894 | INFO | main:
2021-05-14 23:40:24.895 | INFO | main:
2021-05-14 23:40:24.897 | INFO | main:
2021-05-14 23:40:25.897 | INFO | main:
2021-05-14 23:40:25.898 | INFO | main:on_connect:38 - connected OK Returned code=0
2021-05-14 23:40:26.899 | INFO | main:
But the MQTT does not get an "on" when there is red alert.
Any idea what am I missing?
I have updated the container and included bug fixing and added new futures
Thanks for the inputs, it's been a while and I want once again to run this container, started fresh, used the command from the readme: docker run -e MQTT_HOST="127.0.0.1" -e MQTT_PORT="1883" -e MQTT_USER="username" -e MQTT_PASS="password" -e DEBUG_MODE="False" -e REGION="*" --name redalert techblog/redalert:latest Below is the stdout of the container:
2023-10-14 17:40:55.626 | INFO | main:
And the last line of error keep repeating in a loop every second, What am I doing wrong?
Thanks!
So it looks like the binary Docker image is not updated with the code in the repository, once I built the Dockerfile it appears to be working now (fingers cross I will never be able to test it! :))
A small issue in the MQTT structure in the script, The mqtt topic /redalert is updated with "No active alerts" when no alerts, and "on" when there is an alert. But the /redalert/alarm is only updated to "off" on function alarm_off but no reference to it on function alarm_on so it will remains "off" even if alarm is triggered. Thank you so much for your effort!
Hi Tomer, Thank you for your greet effort on this project, awesome idea!
I tried to understand where can I get the REGION value from and I noticed both URLS (with debug or not) are not accessible from my Chrome broswer, is that OK or the script is not working at the moment?
The URLs I tried to browse to are: https://techblog.co.il/alerts.json (got connection refused) https://www.oref.org.il/WarningMessages/alert/alerts.json (got Access Denied)
Thanks.