Python Plugin: MeteoAlarmEU Topic is solved

Python and python framework

Moderator: leecollings

Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by Vomera »

Okay i revert back to another snapshot were i dont have a crash..

Code: Select all

2020-02-10 17:15:14.314  (Meteo) Processing 'onHeartbeatCallback' message
2020-02-10 17:15:14.314  (Meteo) Calling message handler 'onHeartbeat'.
2020-02-10 17:15:20.781  Status: (Meteo) Stop directive received.
2020-02-10 17:15:20.782  (Meteo) Pushing 'onStopCallback' on to queue
2020-02-10 17:15:20.782  Status: (Meteo) Exiting work loop.
2020-02-10 17:15:20.826  (Meteo) Processing 'onStopCallback' message
2020-02-10 17:15:20.826  (Meteo) Calling message handler 'onStop'.
2020-02-10 17:15:20.826  (Meteo) onStop called
2020-02-10 17:15:20.826  (Meteo) Debug logging mask set to: NONE
2020-02-10 17:15:20.864  MQTT: Topic: domoticz/in, Message: {"idx":7344,"nvalue":0,"svalue":"0;204408.5","Battery":88,"RSSI":9}
2020-02-10 17:15:20.882  Status: (Meteo) Stopping threads.
2020-02-10 17:15:20.882  Status: (Meteo) Stopped.
2020-02-10 17:15:20.882  Status: (Meteo) Started.
2020-02-10 17:15:20.977  Status: (Meteo) Entering work loop.
2020-02-10 17:15:20.977  Status: (Meteo) Initialized version 1.0.2, author 'ycahome'
2020-02-10 17:15:20.978  (Meteo) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-02-10 17:15:20.978  (Meteo) 'HardwareID':'22'
2020-02-10 17:15:20.978  (Meteo) 'HomeFolder':'/home/pi/domoticz/plugins/MeteoAlarmEU/'
2020-02-10 17:15:20.978  (Meteo) 'StartupFolder':'/home/pi/domoticz/'
2020-02-10 17:15:20.978  (Meteo) 'UserDataFolder':'/home/pi/domoticz/'
2020-02-10 17:15:20.978  (Meteo) 'Database':'/home/pi/domoticz/domoticz.db'
2020-02-10 17:15:20.978  (Meteo) 'Language':'en'
2020-02-10 17:15:20.978  (Meteo) 'Version':'1.0.2'
2020-02-10 17:15:20.978  (Meteo) 'Author':'ycahome'
2020-02-10 17:15:20.978  (Meteo) 'Name':'Meteo'
2020-02-10 17:15:20.978  (Meteo) 'Port':'0'
2020-02-10 17:15:20.978  (Meteo) 'Key':'MeteoAlarmEU'
2020-02-10 17:15:20.978  (Meteo) 'Mode1':'https://www.meteoalarm.eu/documents/rss/nl/NL012.rss'
2020-02-10 17:15:20.978  (Meteo) 'Mode3':'300'
2020-02-10 17:15:20.978  (Meteo) 'Mode4':'Debug'
2020-02-10 17:15:20.978  (Meteo) 'DomoticzVersion':'4.11426'
2020-02-10 17:15:20.978  (Meteo) 'DomoticzHash':'1016549ac'
2020-02-10 17:15:20.978  (Meteo) 'DomoticzBuildTime':'2019-10-29 07:46:25'
2020-02-10 17:15:20.978  (Meteo) Device count: 2
2020-02-10 17:15:20.978  (Meteo) Device:           1 - ID: 10916, Name: 'Meteo - Today', nValue: 0, sValue: 'No Data'
2020-02-10 17:15:20.978  (Meteo) Device ID:       '10916'
2020-02-10 17:15:20.978  (Meteo) Device Name:     'Meteo - Today'
2020-02-10 17:15:20.978  (Meteo) Device nValue:    0
2020-02-10 17:15:20.978  (Meteo) Device sValue:   'No Data'
2020-02-10 17:15:20.978  (Meteo) Device LastLevel: 0
2020-02-10 17:15:20.978  (Meteo) Device:           2 - ID: 10917, Name: 'Meteo - Tomorrow', nValue: 0, sValue: 'No Data'
2020-02-10 17:15:20.978  (Meteo) Device ID:       '10917'
2020-02-10 17:15:20.978  (Meteo) Device Name:     'Meteo - Tomorrow'
2020-02-10 17:15:20.978  (Meteo) Device nValue:    0
2020-02-10 17:15:20.978  (Meteo) Device sValue:   'No Data'
2020-02-10 17:15:20.978  (Meteo) Device LastLevel: 0
2020-02-10 17:15:20.978  (Meteo) onStart called
2020-02-10 17:15:20.978  (Meteo) Using polling interval of 18000 seconds
2020-02-10 17:15:20.978  (Meteo) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2020-02-10 17:15:20.978  (Meteo) 'HardwareID':'22'
2020-02-10 17:15:20.978  (Meteo) 'HomeFolder':'/home/pi/domoticz/plugins/MeteoAlarmEU/'
2020-02-10 17:15:20.978  (Meteo) 'StartupFolder':'/home/pi/domoticz/'
2020-02-10 17:15:20.978  (Meteo) 'UserDataFolder':'/home/pi/domoticz/'
2020-02-10 17:15:20.978  (Meteo) 'Database':'/home/pi/domoticz/domoticz.db'
2020-02-10 17:15:20.978  (Meteo) 'Language':'en'
2020-02-10 17:15:20.978  (Meteo) 'Version':'1.0.2'
2020-02-10 17:15:20.978  (Meteo) 'Author':'ycahome'
2020-02-10 17:15:20.978  (Meteo) 'Name':'Meteo'
2020-02-10 17:15:20.978  (Meteo) 'Port':'0'
2020-02-10 17:15:20.978  (Meteo) 'Key':'MeteoAlarmEU'
2020-02-10 17:15:20.978  (Meteo) 'Mode1':'https://www.meteoalarm.eu/documents/rss/nl/NL012.rss'
2020-02-10 17:15:20.978  (Meteo) 'Mode3':'300'
2020-02-10 17:15:20.978  (Meteo) 'Mode4':'Debug'
2020-02-10 17:15:20.978  (Meteo) 'DomoticzVersion':'4.11426'
2020-02-10 17:15:20.978  (Meteo) 'DomoticzHash':'1016549ac'
2020-02-10 17:15:20.978  (Meteo) 'DomoticzBuildTime':'2019-10-29 07:46:25'
2020-02-10 17:15:20.978  (Meteo) Device count: 2
2020-02-10 17:15:20.978  (Meteo) Device:           1 - ID: 10916, Name: 'Meteo - Today', nValue: 0, sValue: 'No Data'
2020-02-10 17:15:20.978  (Meteo) Device ID:       '10916'
2020-02-10 17:15:20.978  (Meteo) Device Name:     'Meteo - Today'
2020-02-10 17:15:20.978  (Meteo) Device nValue:    0
2020-02-10 17:15:20.978  (Meteo) Device sValue:   'No Data'
2020-02-10 17:15:20.978  (Meteo) Device LastLevel: 0
2020-02-10 17:15:20.978  (Meteo) Device:           2 - ID: 10917, Name: 'Meteo - Tomorrow', nValue: 0, sValue: 'No Data'
2020-02-10 17:15:20.978  (Meteo) Device ID:       '10917'
2020-02-10 17:15:20.978  (Meteo) Device Name:     'Meteo - Tomorrow'
2020-02-10 17:15:20.978  (Meteo) Device nValue:    0
2020-02-10 17:15:20.978  (Meteo) Device sValue:   'No Data'
2020-02-10 17:15:20.978  (Meteo) Device LastLevel: 0
2020-02-10 17:15:20.978  (Meteo - Today) Updating device from 0:'No Data' to have values 0:'No Data'.
2020-02-10 17:15:20.980  (Meteo - Tomorrow) Updating device from 0:'No Data' to have values 0:'No Data'.
2020-02-10 17:15:23.547  (P1 smartmeter) P1 Smart Meter (Stroom)
2020-02-10 17:15:23.548  (P1 smartmeter) Usage (Usage L1)
2020-02-10 17:15:23.548  (P1 smartmeter) Usage (Delivery L1)
2020-02-10 17:15:23.786  (Led trappenkast) Heartbeating...
2020-02-10 17:15:23.786  (Led trappenkast) MqttClient::Ping
2020-02-10 17:15:24.187  (Led Keukenkast) Heartbeating...
2020-02-10 17:15:24.188  (Led Keukenkast) MqttClient::Ping
2020-02-10 17:15:24.288  (Led Keuken) Heartbeating...
2020-02-10 17:15:24.288  (Led Keuken) MqttClient::Ping
2020-02-10 17:15:30.869  MQTT: Topic: domoticz/in, Message: {"idx":7344,"nvalue":0,"svalue":"0;204408.5","Battery":88,"RSSI":9}
2020-02-10 17:15:30.979  (Meteo) Pushing 'onHeartbeatCallback' on to queue
2020-02-10 17:15:31.000  (Meteo) Processing 'onHeartbeatCallback' message
2020-02-10 17:15:31.000  (Meteo) Calling message handler 'onHeartbeat'.
2020-02-10 17:15:32.122  (Meteo) Gathering Data for:Limburg
2020-02-10 17:15:32.123  (Meteo) ------FEEDPARSER OUTPUT for TODAY:------------------
2020-02-10 17:15:32.123  (Meteo) Icon:-tr>TODAY -/th>-/tr>-tr>-td width="28">-img border="1" src="https://www.meteoalarm.eu/documents/rss/wflag-l2-t1.jpg" alt="awt:1 level:2">-/td>
2020-02-10 17:15:32.123  (Meteo) AWT Possitions Value 1:1
2020-02-10 17:15:32.123  (Meteo) Level Possitions Value 1:2>-/td>-td>-b>From: -/b>-i>10.02.2020 18:00 CET-/i>-b> Until: -/b>-i>11.02.2020 03:00 CET-/i>-/td>-/tr>-tr>-td width=28>-/td>-td>nederlands:  Vooral in buien zware windstoten 75-90 km/uur.
Kans op windstoten.
Verkeer en buitenactiviteiten kunnen hinder ondervinden.
Volg weerberichten en waarschuwingen.
english:  Heavy gusts 75-90 km/hr, in showers and along coast locally 90-100 km/hr.
BE AWARE of  debris being blown around.
Localised outdoor activity disruption is possible due to debris.-/td>-/tr>-tr>-th colspan=3 align=left>-br />
2020-02-10 17:15:32.123  (Meteo) Alarm(s) for today:Wind(2>-/td>-td>-b>From: -/b>-i>10.02.2020 18:00 CET-/i>-b> Until: -/b>-i>11.02.2020 03:00 CET-/i>-/td>-/tr>-tr>-td width=28>-/td>-td>nederlands:  Vooral in buien zware windstoten 75-90 km/uur.
Kans op windstoten.
Verkeer en buitenactiviteiten kunnen hinder ondervinden.
Volg weerberichten en waarschuwingen.
english:  Heavy gusts 75-90 km/hr, in showers and along coast locally 90-100 km/hr.
BE AWARE of  debris being blown around.
Localised outdoor activity disruption is possible due to debris.-/td>-/tr>-tr>-th colspan=3 align=left>-br />)
2020-02-10 17:15:32.123  (Meteo) AWT:1
2020-02-10 17:15:32.123  (Meteo) Level:2
2020-02-10 17:15:32.123  (Meteo) Period:-b>From: -/b>-i>10.02.2020 18:00 CET-/i>-b> Until: -/b>-i>11.02.2020 03:00 CET-/i>-/tr>-tr>-td width="28">
2020-02-10 17:15:32.123  (Meteo) Current Awareness Status:No Data with Level 0
2020-02-10 17:15:32.123  (Meteo) Awareness for Today Updated to:Wind(2>-/td>-td>-b>From: -/b>-i>10.02.2020 18:00 CET-/i>-b> Until: -/b>-i>11.02.2020 03:00 CET-/i>-/td>-/tr>-tr>-td width=28>-/td>-td>nederlands:  Vooral in buien zware windstoten 75-90 km/uur.
Kans op windstoten.
Verkeer en buitenactiviteiten kunnen hinder ondervinden.
Volg weerberichten en waarschuwingen.
english:  Heavy gusts 75-90 km/hr, in showers and along coast locally 90-100 km/hr.
BE AWARE of  debris being blown around.
Localised outdoor activity disruption is possible due to debris.-/td>-/tr>-tr>-th colspan=3 align=left>-br />)
2020-02-10 17:15:32.123  Error: (Meteo) 'onHeartbeat' failed 'ValueError':'invalid literal for int() with base 10: '2>-/td>-td>-b>From: -/b>-i>10.02.2020 18:00 CET-/i>-b> Until: -/b>-i>11.02.2020 03:00 CET-/i>-/td>-/tr>-tr>-td width=28>-/td>-td>nederlands:  Vooral in buien zware windstoten 75-90 km/uur.\nKans op w'.
2020-02-10 17:15:32.123  Error: (Meteo) ----> Line 281 in '/home/pi/domoticz/plugins/MeteoAlarmEU/plugin.py', function onHeartbeat
2020-02-10 17:15:32.123  Error: (Meteo) ----> Line 190 in '/home/pi/domoticz/plugins/MeteoAlarmEU/plugin.py', function onHeartbeat
Got the error code back, installed also the plugin manager, but problem still exist..

First going to try with an empty database.

edit: empty database: still same error


2020-02-10 17:19:56.917 Error: (meteoalarm) ----> Line 281 in '/home/pi/domoticz/plugins/MeteoAlarmEU/plugin.py', function onHeartbeat
2020-02-10 17:19:56.917 Error: (meteoalarm) ----> Line 190 in '/home/pi/domoticz/plugins/MeteoAlarmEU/plugin.py', function onHeartbeat


after it fails i try to get the versions of python and feedparser you use on your server, to check if that works..
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by ycahome »

Can't be so difficult!!!
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by ycahome »

don't do something more.WAIT!!!

Just noticed something strange but cannot explain how my instance works.
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by ycahome »

found something,

install again from github or update via PPmanager
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by Vomera »

Haha okay going to test now :D
Vomera
Posts: 184
Joined: Wednesday 06 September 2017 9:11
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by Vomera »

ycahome wrote: Monday 10 February 2020 18:01 found something,

install again from github or update via PPmanager
OMG IT WORKS!!!!

Code: Select all

2020-02-10 19:44:41.616  (P1 smartmeter) P1 Smart Meter (Stroom)
2020-02-10 19:44:41.618  (P1 smartmeter) Usage (Usage L1)
2020-02-10 19:44:41.619  (P1 smartmeter) Usage (Delivery L1)
2020-02-10 19:44:45.544  MQTT: Topic: domoticz/in, Message: {"idx":7344,"nvalue":0,"svalue":"0;204408.5","Battery":88,"RSSI":10}
2020-02-10 19:44:47.734  (Meteo) Pushing 'onHeartbeatCallback' on to queue
2020-02-10 19:44:47.762  (Meteo) Processing 'onHeartbeatCallback' message
2020-02-10 19:44:47.762  (Meteo) Calling message handler 'onHeartbeat'.
2020-02-10 19:44:48.561  (Meteo) Gathering Data for:Limburg
2020-02-10 19:44:48.562  (Meteo) ------FEEDPARSER OUTPUT for TODAY:------------------
2020-02-10 19:44:48.562  (Meteo) Icon:-tr>TODAY -/th>-/tr>-tr>-td width="28">-img border="1" src="https://www.meteoalarm.eu/documents/rss/wflag-l2-t1.jpg" alt="awt:1 level:2">-/td>
2020-02-10 19:44:48.562  (Meteo) AWT Possitions Value 1:1
2020-02-10 19:44:48.562  (Meteo) Level Possitions Value 1:2
2020-02-10 19:44:48.562  (Meteo) Alarm(s) for today:Wind(2)
2020-02-10 19:44:48.562  (Meteo) AWT:1
2020-02-10 19:44:48.562  (Meteo) Level:2
2020-02-10 19:44:48.562  (Meteo) Period:-b>From: -/b>-i>10.02.2020 18:00 CET-/i>-b> Until: -/b>-i>11.02.2020 03:00 CET-/i>-/tr>-tr>-td width="28">
2020-02-10 19:44:48.562  (Meteo) Current Awareness Status:No Data with Level 0
2020-02-10 19:44:48.562  (Meteo) Awareness for Today Updated to:Wind(2)
2020-02-10 19:44:48.562  (Meteo - Today) Updating device from 0:'No Data' to have values 2:'Wind(2)'.
2020-02-10 19:44:48.571  (Meteo) ------FEEDPARSER OUTPUT for TOMORROW:------------------
2020-02-10 19:44:48.571  (Meteo) Icon:-/th>-/tr>-tr>-td width="28">-img border="1" src="https://www.meteoalarm.eu/documents/rss/wflag-l2-t1.jpg" alt="awt:1 level:2">-/td>
2020-02-10 19:44:48.571  (Meteo) AWT Possitions Value 1:1
2020-02-10 19:44:48.571  (Meteo) Level Possitions Value 1:2
2020-02-10 19:44:48.571  (Meteo) Alarm(s) for Tomorrow:Wind(2)
2020-02-10 19:44:48.571  (Meteo) Icon:-/th>-/tr>-tr>-td width="28">-img border="1" src="https://www.meteoalarm.eu/documents/rss/wflag-l2-t1.jpg" alt="awt:1 level:2">-/td>
2020-02-10 19:44:48.571  (Meteo) AWT:1
2020-02-10 19:44:48.571  (Meteo) Level:2
2020-02-10 19:44:48.571  (Meteo) Current Awareness Status:No Data with Level 0
2020-02-10 19:44:48.571  (Meteo) Awareness for Tomorrow Updated to:Wind(2)
2020-02-10 19:44:48.571  (Meteo - Tomorrow) Updating device from 0:'No Data' to have values 2:'Wind(2)'.
2020-02-10 19:44:48.573  (Meteo) ----------------------------------------------------
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by EdwinK »

Reviving an old thread. It seems that MeteoAlarm.eu doesn't exists anymore. :(
Screen Shot 2022-01-25 at 23.19.05.png
Screen Shot 2022-01-25 at 23.19.05.png (34.05 KiB) Viewed 1757 times
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waltervl
Posts: 5720
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by waltervl »

Looks like a technical issue at the website hoster. It is an official European site were a lot of european weather institutions are connected to. No news available it would stop.

How long is it offline?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by ycahome »

waltervl wrote: Wednesday 26 January 2022 0:55 Looks like a technical issue at the website hoster. It is an official European site were a lot of european weather institutions are connected to. No news available it would stop.

How long is it offline?
it seems that was moved to meteoalarm.org???()https://www.weather-watch.com/smf/index ... ic=70844.0
Seems different now. I ll try to see if there are still valid those RSA feeds
User avatar
waltervl
Posts: 5720
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by waltervl »

ycahome wrote: Wednesday 26 January 2022 9:22
waltervl wrote: Wednesday 26 January 2022 0:55 Looks like a technical issue at the website hoster. It is an official European site were a lot of european weather institutions are connected to. No news available it would stop.

How long is it offline?
it seems that was moved to meteoalarm.org???()https://www.weather-watch.com/smf/index ... ic=70844.0
Seems different now. I ll try to see if there are still valid those RSA feeds
Feeds are listed here: https://feeds.meteoalarm.org/
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by ycahome »

waltervl wrote: Wednesday 26 January 2022 9:48
Feeds are listed here: https://feeds.meteoalarm.org/
The new feed structure is completely different.
Feeds are now per Country instead of per Country Area that was before and
information of the feed does not have essential fields that were there before such as 'today', 'tomorow', 'alert severity' etc.

Code: Select all

  <entry>
    <cap:geocode>
      <valueName>EMMA_ID</valueName>
      <value>GR015</value>
    </cap:geocode>
    <cap:areaDesc>East Peloponnisos</cap:areaDesc>
    <cap:event>Moderate low-temperature warning</cap:event>
    <cap:sent>2022-01-25T12:04:00+00:00</cap:sent>
    <cap:expires>2022-01-27T08:00:00+00:00</cap:expires>
    <cap:effective>2022-01-25T12:04:00+00:00</cap:effective>
    <cap:onset>2022-01-26T18:00:00+00:00</cap:onset>
    <cap:certainty>Likely</cap:certainty>
    <cap:severity>Moderate</cap:severity>
    <cap:urgency>Expected</cap:urgency>
    <cap:scope>Public</cap:scope>
    <cap:message_type>Alert</cap:message_type>
    <cap:status>Actual</cap:status>
    <cap:identifier>2.49.0.0.300.0.GR.220125120400.000001015</cap:identifier>
    <link href="https://hub.meteoalarm.org/warnings/feeds-greece/3c1fdb05-c5c2-4cec-a6ed-af5d3431e3b9" type="application/cap+xml"/>
    <link href="https://meteoalarm.org?region=GR" hreflang="en" rel="related" title="Greece"/>
    <link href="https://meteoalarm.org?geocode=EMMA_ID:GR015" hreflang="en" title="East Peloponnisos"/>
    <author>
      <name>meteoalarm.org</name>
      <uri>https://meteoalarm.org</uri>
    </author>
    <published>2022-01-25T12:04:00Z</published>
    <id>https://hub.meteoalarm.org/warnings/feeds-greece/3c1fdb05-c5c2-4cec-a6ed-af5d3431e3b9?index_info=0&amp;index_area=0&amp;index_geocode=0</id>
    <title>Yellow Low-temperature Warning issued for Greece - East Peloponnisos</title>
    <updated>2022-01-25T12:04:00Z</updated>
  </entry>
plugge

Re: Python Plugin: MeteoAlarmEU

Post by plugge »

ycahome wrote: Wednesday 26 January 2022 9:22
waltervl wrote: Wednesday 26 January 2022 0:55 Looks like a technical issue at the website hoster. It is an official European site were a lot of european weather institutions are connected to. No news available it would stop.

How long is it offline?
it seems that was moved to meteoalarm.org???()https://www.weather-watch.com/smf/index ... ic=70844.0
Seems different now. I ll try to see if there are still valid those RSA feeds
The site went down (not for the first time) between 12:00 and 14:00 on Jan. 24.
Last year the site was down for more than a week, but came online again.
Patience, unless your life depends on it. ;-)
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by EdwinK »

ycahome wrote: Wednesday 26 January 2022 10:11
waltervl wrote: Wednesday 26 January 2022 9:48
Feeds are listed here: https://feeds.meteoalarm.org/
The new feed structure is completely different.
Feeds are now per Country instead of per Country Area that was before and
information of the feed does not have essential fields that were there before such as 'today', 'tomorow', 'alert severity' etc.

Code: Select all

...
That sucks. Life doesn't depend on it, but it was nice to have.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
waltervl
Posts: 5720
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by waltervl »

seems to be a more definite move to .org indeed: https://www.weather-watch.com/smf/index ... ic=70844.0
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by FireWizard »

Hi all

I think Walter (@waltervl) is correct and I believe as well that https://www.meteoalarm.eu has been taken down by purpose, as it has already been planned the first quarter of last year. I agree with @plugge that they pulled the plug between 12:00 and 14:00 on Jan. 24. as the last message I received was dated Jan. 14 at 12:49:42
For the new version, see: https://edrop.zamg.ac.at/owncloud/index ... #pdfviewer

The new site https://www.meteoalarm.org is available now.

I noticed also, like @ycahome that the data structure is completely different in Meteoalarm version 2.0
I never used @ycahome 's Python plug-in but had my own data, provided by https://waynedgrant.wordpress.com/2018/ ... ebservice/ However this service is now deprecated as well.

For python developers https://github.com/rolfberkenbosch/meteoalert-api might be interesting to look at.

I took as before the Node Red route and found that the new API, which you can access (depends on the country) provides a lot of information, but not so simple as we were used to.

For the Netherlands you can access https://hub.meteoalarm.org/api/v1/strea ... ty_minor=0
The two items at the end, you can set to 0 or 1
The Netherlands has 20 areas for alerting. (The 12 provinces and 8 coastal areas).
If you insert the link in a browser you will get an array of 206 elements (today), Yesterday even 300.
If you parse the province (or a coastal area) you will still find (today) 14 elements in the array.
However you will not find, whether the warning is valid for today or tomorrow.

You have a lot of data, but not the data you need for a Domoticz sensor (Alert or Text)

As the data for Meteoalarm.org is provided by KNMI (Royal Netherlands Meteorological Institute) it is probably easier to get the data from
http://weerlive.nl/delen.php Before I can test this, I need an alert situation.

Regards
Last edited by FireWizard on Sunday 12 November 2023 8:48, edited 1 time in total.
User avatar
ycahome
Posts: 248
Joined: Sunday 12 February 2017 10:55
Target OS: Linux
Domoticz version: lat Beta
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by ycahome »

Hi there,

thanks for this info. It is nice to have it in one place.

I bellieve that the best approach is to take RSS feed and compare the dates in order to present data to a single sensor in domoticz.

example: if date is between <effective> and <expires> then update sensor

Code: Select all

<cap:sent>2022-01-25T12:04:00+00:00</cap:sent>
    <cap:expires>2022-01-27T08:00:00+00:00</cap:expires>
    <cap:effective>2022-01-25T12:04:00+00:00</cap:effective>
plugge

Re: Python Plugin: MeteoAlarmEU

Post by plugge »

Well, the new MeteoAlarmEU still refers to the 'old' .eu site (which is down):
See in: https://hub.meteoalarm.org/api/v1/strea ... ty_minor=0
the following:

Code: Select all

senderName: "KNMI Royal Netherlands Meteorological Institute",
severity: "Minor",
urgency: "Future",
web: "http://meteoalarm.eu/ne_NL/0/0/NL012-Limburg.html"
}
Not very logical if it is meant to be down.
But then again: it is EU and logic is not its strongest point. So why use an .eu toplevel domain if you can use .org? ;)
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by FireWizard »

Hello @plugge,

You wrote:
Well, the new MeteoAlarmEU still refers to the 'old' .eu site (which is down)
I have seen this as well, but I did not check if it is the same for all participating countries.
At the end the National bodies (in our case KNMI) are responsible to provide the correct data.
Not very logical if it is meant to be down.
Agree.
But then again: it is EU and logic is not its strongest point. So why use an .eu toplevel domain if you can use .org?
This is not completely true as the site is owned by EUMETNET = The network of European meteorological services.
The Austrian National Meteorological Service (ZAMG = Zentralanstalt für Meteorologie und Geodynamik) has been made responsible by EUMETNET to support and maintain the operational Meteoalarm system
EUMETNET has also members who are not a member of the European Union, such as the UK, Moldavia and Serbia (just to name a few)

See: Chapter 5 in the Help file on the website, "Source of information (the origin) and intellectual ownership of information".

Let's hope that it is soon corrected, but I have not planned to use that information in Domoticz.

Regards
plugge

Re: Python Plugin: MeteoAlarmEU

Post by plugge »

:lol:
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Python Plugin: MeteoAlarmEU

Post by FireWizard »

Hi all,

I investigated the new structure of the feeds and the HTTP endpoint of the new site http://www.meteoalarm.org

The protocol is based on CAP (Common Alerting Protocol) version 1.2. Even with the correct country feed, you get the data presented in an array of hundreds of elements and several levels deep. The provided text is to long to present it in a Domoticz "Text" sensor or an "Alert" sensor.

As the data available has to be delivered by the national meteorological institutes, I decided to abandon this European site and to move to the national (in my case) KNMI site. For now I have been able to create a Node-RED flow for my province, but will make that available in another new topic.
This will only be suitable for Dutch users.

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest