[Unwetterwarnung] 77_UWZ.pm Modul für unwetterzentrale.de und wetteralarm.at

Begonnen von CoolTux, 23 März 2016, 12:06:02

Vorheriges Thema - Nächstes Thema

CoolTux

Ok. When you say is fine i will check it in SVN.


best greetings
Leon
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

fruit

It seems the weather is changing here and getting better so I have set a different location (UK 00413) and forced an alert.

All looks to be good :)

Logs...2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Done.447 17 values captured
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:durationFetchReadings value:0.80
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Start_Time value:17:26
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Start_Date value:17.06.2016
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_End_Date value:17.06.2016
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_levelName value:alert_warn_orange
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:WarnCount value:1
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Type value:7
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Type_Str value:Gewitter
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Start value:1466180760
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Hail value:0
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_End value:1466186160
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_IconURL value:http://www.unwetterzentrale.de/images/icons/gewitter-orange.gif
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_Severity value:10
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_End_Time value:18:56
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_uwzLevel value:10
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_LongText value:On 2016/06/17 at 18:26 local time a thunderstorm of level orange has been detected. The center is located in the community of Chilcompton. It is moving in southern direction at a speed of 22 km/h. Regional heavy rain and storm gusts are possible. Local hail of small size can not be ruled out. The lightning activity is weak. The thunderstorm is expected to cross the following communities: Chilcompton (18:27), Paulton (18:27), Shepton Mallet (18:47), Evercreech (18:59), Castle Cary (19:05), Bruton (19:05) The arrival time of the storm is stated.
2016.06.17 18:58:58 5: UWZ Unwetterzentrale: Done.431 reading:Warn_0_ShortText value:Warning ORANGE: thunderstorms - heavy rain
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Done.416 Delete old Readings
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.691 Will return : Unwetterzentrale|Warn_0_Type|7|Warn_0_uwzLevel|10|Warn_0_Severity|10|Warn_0_Start|1466180760|Warn_0_End|1466186160|Warn_0_Start_Date|17.06.2016|Warn_0_Start_Time|17:26|Warn_0_End_Date|17.06.2016|Warn_0_End_Time|18:56|Warn_0_Type_Str|Gewitter|Warn_0_levelName|alert_warn_orange|Warn_0_LongText|On 2016/06/17 at 18:26 local time a thunderstorm of level orange has been detected. The center is located in the community of Chilcompton. It is moving in southern direction at a speed of 22 km/h. Regional heavy rain and storm gusts are possible. Local hail of small size can not be ruled out. The lightning activity is weak. The thunderstorm is expected to cross the following communities: Chilcompton (18:27), Paulton (18:27), Shepton Mallet (18:47), Evercreech (18:59), Castle Cary (19:05), Bruton (19:05) The arrival time of the storm is stated.|Warn_0_ShortText|Warning ORANGE: thunderstorms - heavy rain|Warn_0_IconURL|http://www.unwetterzentrale.de/images/icons/gewitter-orange.gif|Warn_0_Hail|0|durationFetchReadings|0.80|WarnCount|1
2016.06.17 18:58:58 3: UWZ Unwetterzentrale: Run.690 Done fetching data
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.679 Warn_0_Hail: 0
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.656 Warn_0_IconURL: http://www.unwetterzentrale.de/images/icons/gewitter-10.gif
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.643 Warn_0_ShortText: Warning ORANGE: thunderstorms - heavy rain
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.640 Warn_0_LongText: On 2016/06/17 at 18:26 local time a thunderstorm of level orange has been detected. The center is located in the community of Chilcompton. It is moving in southern direction at a speed of 22 km/h. Regional heavy rain and storm gusts are possible. Local hail of small size can not be ruled out. The lightning activity is weak. The thunderstorm is expected to cross the following communities: Chilcompton (18:27), Paulton (18:27), Shepton Mallet (18:47), Evercreech (18:59), Castle Cary (19:05), Bruton (19:05) The arrival time of the storm is stated.
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.634 Warn_0_levelName: alert_warn_orange
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.629 Warn_0_Type_Str: Gewitter
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.626 Warn_0_End_Time: 18:56
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.623 Warn_0_End_Date: 17.06.2016
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.620 Warn_0_Start_Time: 17:26
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.617 Warn_0_Start_Date: 17.06.2016
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.612 Warn_0_End: 1466186160
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.609 Warn_0_Start: 1466180760
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.606 Warn_0_Severity: 10
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.603 Warn_0_uwzLevel: 10
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.600 Warn_0_Type: 7
2016.06.17 18:58:58 4: UWZ Unwetterzentrale: Run.567 There are 1 warnings active


PS. Yes, your code looks much tidier than mine
Feel free to follow up in German if you prefer

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

@ALL

Es gibt ab Morgen Früh 8 Uhr über den FHEM Updateprozess ein Update auf Version 1.2
Unterstützung für United Kingdom.

An den Wünschen einiger User bin ich noch dran. Bitte noch etwas Geduld.



Grüße
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

fruit

Thanks.

I have another map for a future update, EU isobars with EN text
$lmap->{'isobaren3'}="http://www.severe-weather-centre.co.uk/uploads/pics/UWZ_EURO_ISO_ENG_00.jpg";
Feel free to follow up in German if you prefer

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

moonsorrox

Eine Frage zu dem neuen Attribut "htmlattr", dazu gibt es noch nichts im Wiki oder der commandref.
Wenn ich jetzt als Beispiel mal bei UnwetterDetailiert die Größe bestimmen möchte mit width="220" height="130"
Macht es aber nicht..! oder muss ich das anders eingeben, oder ist es dafür nicht geeignet.?
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

CoolTux

Es gibt die Attributvalues noch nicht. Bin noch nicht dazu gekommen. Wird auch noch etwas dauern.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

moonsorrox

Alles klar...! ;) kein Ding, dachte nur weil es schon drin ist  :D kein Stress, lass dir Zeit
Intel-NUC i5: FHEM-Server 6.1 :: Perl v5.18.2

Homematic: HM-USB-CFG2,HM-CFG-LAN Adapter, HM-LC-BL1-FM, HM-LC-Sw1PBU-FM, HM-LC-Sw1-PI-2, HM-WDS10-TH-O, HM-CC-TC, HM-LC-SW2-FM

Otto

Hi Leon,

danke für deine aktuellen Definitionen und Routinen.

Gruss Otto

.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.oOo.

docker - homematic

CoolTux

Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

fruit

Thanks for the UK additions - and the very useful module of course

I had a double warning today - and lots of rain!
Feel free to follow up in German if you prefer

Brause

Kann das sein das durch das UK-Update die Untersützung für Österreich und die Schweiz gecancelt wurde ??
zumindest habe ich pünktlich seit dem update auf Version 1.2 keine Meldungen mehr, ein downgrade auf Version 1.0.1 und alle Meldungen wieder da.

Einen angenehmen Freitag noch und genießt das gute Wetter

tdoe

Moin Moin,

jipp. Fehler ist lokalisiert....
Mit dem nächsten update gehts wieder.

Sorry und Gruß Tobias

Brause

Ja kein Problem, war mir nur heute aufgefallen. Das alle von Gewitter und Starkregen reden und ich von nix weiss.  ;)