[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

tdoe

Und weils gerade so gut läuft,
nun die Beta 1.4.5.

  - feature: new Readings: WarnUWZLevel,WarnUWZLevel_Color,WarnUWZLevel_Str
  - Version bump to 1.4.5

Gruß Tobias

CoolTux

Version 1.4.5 habe ich soeben ins SVN hochgeladen. Morgen ab 8 Uhr dann als FHEM Update.

Ich muß zu geben ich bin enttäuscht. Es wurden viele Wünsche geäußert welche trotz der Umstände welche Tobias nur sehr wenig Zeit für UWZ lassen, zeitnah erfüllt wurden. Dennoch hat es die Community nicht geschafft in akzeptabler Zeit das Wiki entsprechend an zu passen. Es ist ja nett seine Ideen und Lösungen für den Wikiersteller hier nieder zu schreiben, besser wäre es aber das ganze gleich selber ins Wiki ein zu tragen. Oder sehe ich das falsch??
Vielleicht mal drüber nachdenken, solltet Ihr mal wieder Wünsche äußern.
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

frank

Zitat von: CoolTux am 02 August 2016, 22:04:21
Version 1.4.5 habe ich soeben ins SVN hochgeladen. Morgen ab 8 Uhr dann als FHEM Update.

Ich muß zu geben ich bin enttäuscht. Es wurden viele Wünsche geäußert welche trotz der Umstände welche Tobias nur sehr wenig Zeit für UWZ lassen, zeitnah erfüllt wurden. Dennoch hat es die Community nicht geschafft in akzeptabler Zeit das Wiki entsprechend an zu passen. Es ist ja nett seine Ideen und Lösungen für den Wikiersteller hier nieder zu schreiben, besser wäre es aber das ganze gleich selber ins Wiki ein zu tragen. Oder sehe ich das falsch??
Vielleicht mal drüber nachdenken, solltet Ihr mal wieder Wünsche äußern.
ich nun auch.  :)
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

CoolTux

@Frank
Das bezog sich auf alle User die hier ihre Wünsche geäußert haben. Du dientest da nur als Beispiel wie Tobias und ich es uns eher vorgestellt hatten. Es sollte kein persönlicher Angriff sein.

@all
Ich habe heute Morgen noch einen kleinen Fehler entdeckt, welcher leider nun auch im heutigem Update ist. Wenn keine Unwettermeldungen vorhanden sind kommen Perl Warnungen "uninitialized value".
Ich habe dies bereits korrigiert und werde gleich das aktuelle 1.4.6 ins SVN schupsen.



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

moonsorrox

betrifft das diese Fehlermeldungen..?
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:29:43 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:29:38 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:29:36 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:29:19 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:29:18 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.


und auch diese Warnung..?
2016.08.03 11:57:44 1: PERL WARNING: String found where operator expected at (eval 57091) line 1, at end of line
2016.08.03 11:57:36 3: eval: Wetterwarnungen"
2016.08.03 11:57:36 1: PERL WARNING: String found where operator expected at (eval 56739) line 1, at end of line
2016.08.03 11:57:23 3: eval: Wetterwarnungen"
2016.08.03 11:57:23 1: PERL WARNING: String found where operator expected at (eval 56362) line 1, at end of line
2016.08.03 11:56:54 3: eval: Wetterwarnungen"
2016.08.03 11:56:54 1: PERL WARNING: String found where operator expected at (eval 55279) line 1, at end of line
2016.08.03 11:56:44 3: eval: Wetterwarnungen"
2016.08.03 11:56:44 1: PERL WARNING: String found where operator expected at (eval 54886) line 1, at end of line
2016.08.03 11:56:43 3: eval: Wetterwarnungen"
2016.08.03 11:56:43 1: PERL WARNING: String found where operator expected at (eval 54560) line 1, at end of line
2016.08.03 11:56:21 3: eval: Wetterwarnungen"
2016.08.03 11:56:21 1: PERL WARNING: String found where operator expected at (eval 54154) line 1, at end of line
2016.08.03 11:55:43 3: eval: Wetterwarnungen"
2016.08.03 11:55:43 1: PERL WARNING: String found where operator expected at (eval 53006) line 1, at end of line
2016.08.03 11:55:42 3: eval: Wetterwarnungen"
2016.08.03 11:55:42 1: PERL WARNING: String found where operator expected at (eval 52669) line 1, at end of line
2016.08.03 11:55:19 3: eval: Wetterwarnungen"
2016.08.03 11:55:19 1: PERL WARNING: String found where operator expected at (eval 52273) line 1, at end of line
2016.08.03 11:54:42 3: eval: Wetterwarnungen"
2016.08.03 11:54:42 1: PERL WARNING: String found where operator expected at (eval 51087) line 1, at end of line
2016.08.03 11:54:41 3: eval: Wetterwarnungen"
2016.08.03 11:54:41 1: PERL WARNING: String found where operator expected at (eval 50762) line 1, at end of line
2016.08.03 11:54:18 3: eval: Wetterwarnungen"
2016.08.03 11:54:18 1: PERL WARNING: String found where operator expected at (eval 50384) line 1, at end of line
2016.08.03 11:53:41 3: eval: Wetterwarnungen"
2016.08.03 11:53:41 1: PERL WARNING: String found where operator expected at (eval 49215) line 1, at end of line
2016.08.03 11:53:40 3: eval: Wetterwarnungen"
2016.08.03 11:53:40 1: PERL WARNING: String found where operator expected at (eval 48888) line 1, at end of line
2016.08.03 11:53:25 3: eval: Wetterwarnungen"
2016.08.03 11:53:25 1: PERL WARNING: String found where operator expected at (eval 48513) line 1, at end of line
2016.08.03 11:53:16 3: eval: Wetterwarnungen"
2016.08.03 11:53:16 1: PERL WARNING: String found where operator expected at (eval 48174) line 1, at end of line
2016.08.03 11:52:39 3: eval: Wetterwarnungen"
2016.08.03 11:52:39 1: PERL WARNING: String found where operator expected at (eval 46989) line 1, at end of line
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

Betrifft nur das erste. Deine zweite Fehlermeldung kenne ich nicht.
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

OK dann lade ich mir mal das aktuelle Modul

Das zweite könnte daher sein, da ich gerade mein InfoPanel umbaue, dass diese Fehlermeldung vom InfoPanel kommt, denn hier nutze ich die Unwetterwarnungen. Die sollten dann damit auch weg sein.

Beim Neustart von Fhem bekam ich dieses noch...
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.
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

Zitat von: moonsorrox am 03 August 2016, 12:46:30
Beim Neustart von Fhem bekam ich dieses noch...
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 946.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value within %uwzlevelname in concatenation (.) or string at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $max in hash element at ./FHEM/77_UWZ.pm line 945.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 934.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/77_UWZ.pm line 933.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $uwzlevel in hash element at ./FHEM/77_UWZ.pm line 1244.
2016.08.03 12:43:14 1: PERL WARNING: Use of uninitialized value $max in concatenation (.) or string at ./FHEM/77_UWZ.pm line 931.


Was ja das selbe ist wie Deine erste Meldung!
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

wollte damit auch nur sagen das es noch Meldungen gibt  ;) da ich nicht weiß ob ich das richtige Modul geladen habe...

...ich habe das Modul aus dem Fhem Trunk geholt, richtig..?
https://sourceforge.net/p/fhem/code/HEAD/tree/trunk/fhem/FHEM/
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

Schau mal welche Version bei Dir geladen ist? In der Detailansicht des Device unter VERSION
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

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

the ratman

also ich habs von deinem link https://sourceforge.net/p/fhem/code/HEAD/tree/trunk/fhem/FHEM/ gesaugt --> 1.4.6
fhem restarted?

ums ganz genau zu sagen: https://sourceforge.net/p/fhem/code/HEAD/tree/trunk/fhem/FHEM/77_UWZ.pm
dann "download this file" direkt über der source

und nebenher - morgen, wenn du am vormittag fhem updatest wäre der spuk eh vorbei
→do↑p!dnʇs↓shit←

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

Ok erledigt nun habe ich die richtige Version (1.4.6)
Danke euch
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

Michael

Moin CoolTux, tdoe

Wollte mein InfoFrame einrichten.
Und da zu brauchte ich die möglichen Farbe vom attr. WarnUWZLevel_Color.

Also schaute ich in das Modul an folgende Stelle.
Und fand wohl die beiden "Fehler" :

#####################################
sub UWZ_GetSeverityColor($$) {
    my ($name,$uwzlevel) = @_;
    my $alertcolor       = "";

    my %UWZSeverity = ( "0" => "gruen",
                            "1" => "orange",
                            "2" => "gelb",
                            "3" => "orange",
                            "4" => "rot",
                            "5" => "violett");

    return $UWZSeverity{$uwzlevel};
}


#####################################
sub UWZ_GetUWZLevel($$) {
    my ($name,$warnname) = @_;
    my @alert            = split(/_/,$warnname);

    if ( $alert[0] eq "notice" ) {
        return "1";
    } elsif ( $alert[1] eq "forewarn" ) {
        return "2";
    } else {

        my %UWZSeverity = ( "green" => "0",
                            "yellow" => "2",
                            "orange" => "3",
                            "red" => "4",
                            "violet" => "5");

        return $UWZSeverity{$alert[2]};
    }
}


1.)  my %UWZSeverity = ( "0" => "gruen",
                            "1" => "orange",
Solte bestimmt dunkelgruen lauten.

2.)   my %UWZSeverity = ( "green" => "0",
                            "yellow" => "2",
                            "orange" => "3",
                            "red" => "4",
                            "violet" => "5");
Und hier gibt es keine => "1"

Sollte ich falsch liegen Vergesst es einfach.  :)
Gruß, Michael

FHEM 6.0 auf RPi 3
CUL V3 868 Mhz | JeeLink LaCrosse & PCA301 | CCU3
BMP085(180) | 14x TX29DTH-IT | 5x PCA 301 | SMA Peripheries | MobileAlerts MA-10(100,120PRO,200,251,410,650,660,800) | HM IP