You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like the idea to get a meteo alarm data for my home, but I found the issue with fetching event description. Used regular expression ('^(?P.?):\s(?P.*)') isn't working well and response data of my city (Kosice, Slovakia) it looks like this:
<divclass="text">
slovenčina:
<br>
V okrese Košice
<br>
sa vo výške 5 cm nad povrchom OJEDINELE očakáva dosiahnutie minimálnej teploty vzduchu -3 - 0 °C.
<br>
Takýto prízemný mráz predstavuje potenciálne nebezpečenstvo pre teplomilné rastliny.
<br><br><cap:instruction>
ZVÝŠTE POZORNOSŤ, sledujte najčerstvejšie predpovede počasia.
<br>
Očakávajte menšie obmedzenia aktivít vonku.
</cap:instruction><p>
english:
<br>
No detailed description for this language. See warning details in Slovak version.
<br><br><cap:instruction>
BE AWARE, keep up to date with the latest weather forecast.
<br>
Expect some minor disruption to outdoor activities.
</cap:instruction>
</p></div>
Result will look like this:
Match 1:
lang | slovenčina
desc | <br> V okrese Košice<br>
Match 2:
lang | Takýto prízemný mráz predstavuje potenciálne nebezpečenstvo pre teplomilné rastliny.<br><br> <cap
desc | instruction>
Match 3:
lang | Očakávajte menšie obmedzenia aktivít vonku.</cap
desc | instruction> <p>
Match 4:
lang | english
desc | <br> No detailed description for this language. See warning details in Slovak version.<br><br> <cap:instruction>
Match 5:
lang | Expect some minor disruption to outdoor activities.</cap
desc | instruction> </p>
and the result is quite incomplete and sensor returns incomplete data like this:
attribution: Data provided by meteoalarm.eulocation: košicetoday: []tomorrow:
- event: Extreme low temperaturecode: Yellowstart: '17.04.2020 01:00 CEST'end: '17.04.2020 07:00 CEST'slovenčina: V okrese Košiceenglish: >- No detailed description for this language. See warning details in Slovak version. unit_of_measurement: eventsfriendly_name: weather_alerticon: 'mdi:weather-lightning-rainy'
Would it be possible to improve description parsing?
The text was updated successfully, but these errors were encountered:
Hello,
I'd like the idea to get a meteo alarm data for my home, but I found the issue with fetching event description. Used regular expression ('^(?P.?):\s(?P.*)') isn't working well and response data of my city (Kosice, Slovakia) it looks like this:
Result will look like this:
Match 1:
Match 2:
Match 3:
Match 4:
Match 5:
and the result is quite incomplete and sensor returns incomplete data like this:
Would it be possible to improve description parsing?
The text was updated successfully, but these errors were encountered: