DWD Unwetterwarnung (WFE, Mail und html)

Hallo Raketenschnecke,

bezueglich des Beitrages #157 :

Diese Vorabwarnungen kommen bei mir immer öfter und ich bekomme dann die in #157 beschriebenen Fehler, weil
die Farbe #66B5FF fehlt und die Warnstufe nicht initialisiert wird.

Ich habe bei mir Quick&Dirty die Stufe 7 hinzugefügt und unter die Zeitabfrage auf Stufe 7 ergänzt, damit ich nicht alle 5 Minuten Mails bekomme.

Passt Du Dein Script noch an oder hast Du schon und ich habs übersehen ?

Beste Grüße

Frank

So, bei mir ist es seit gestern wieder so: Alle 5 mins eine mail und ein Skriptfehler. Bei uns besteht eine Vorwarnung wegen Regen seitens des DWD. Die Vorwahrnung wird wohl vom Skript nicht erfasst.

Oder gibt es da einen Fix?

Hi Ingo,
Thomas hat am WE herausgefunden, das der DWD die Farben leicht angepasst hat. Folgende Änderung im Code ist zu machen:


$DEFCON[6]['color']         = '#66B5FF';

ok, danke. Hatte die Farbe mal als Defcon 7 eingebaut, hatte zumindest die mailflut beendet :slight_smile:

Kommt mir das nur so vor oder ist da seit neuestem was mit den Umlauten nicht okay?
glatt.PNG
Ich find den Fehler ned, aber unter function formatText($text) wird das doch eigentlich ersetzt? :confused:

bei mir auch - war definitiv bis dato nicht so

Ist nicht nur da so, auch in der HTML-Box für die ausführliche Variante:

Genau bei mir auch so, arbeitet da jetzt jemand daran den Fehler wieder herauszubekommen oder muss ich mir selbst was bauen?

Im Script „DWD-Unwetter“:

Zeile 265
von:
setValueString($WarnType_WFE_ID,($split[1]));
nach:
setValueString($WarnType_WFE_ID,utf8_decode($split[1]));

und

Zeile 489
von:
$WFE_Content = utf8_encode($HTML_Header.$HTML_Radar.$HTML_Warnings.$HTML_Footer);
nach:
$WFE_Content = ($HTML_Header.$HTML_Radar.$HTML_Warnings.$HTML_Footer);

ändern. Scheinbar hat sich die Kodierung geändert - die heutige Gl"Ä"tte hat mich motiviert ;-)))

Hallo zusammen,

Ich habe das Unwetterwarnungs script schon ein paar Tage erfolgreich bei mir laufen. Bisher hat es prima funktioniert. DANKE an dieser stelle nochmal.

Nur leider funktioniert seit gestern der Mail versand nicht mehr. ( Da habe ich ein Update auf die Version 3.1 #3404 wegen dem SSL Problem gemacht.)

Das Mailer Script wird als fehlerhaft markiert.

Das wird im Ausgabefenster als Log angezeigt:

Notice: Undefined index: from in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 23

Notice: Undefined index: fname in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 24

Notice: Undefined index: priority in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 25

Notice: Undefined index: htmlsubject in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 26

Notice: Undefined index: htmlhead in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 27

Notice: Undefined index: htmlbody in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 27

Notice: Undefined index: htmlend in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 27

Notice: Undefined index: to in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 29

Notice: Undefined index: tname in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 29
Invalid address:
Notice: Undefined index: reply in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 30

Notice: Undefined index: from in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 30
Invalid address:
Notice: Undefined index: ei_path in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 31

Notice: Undefined index: ei_cid in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 31

Notice: Undefined index: ei_name in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 31

Notice: Undefined index: ei_encoding in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 31

Notice: Undefined index: ei_type in F:\Netzlaufwerk\Haus\IP-Symcon\scripts\45358.ips.php on line 31
You must provide at least one recipient email address.
Script #45358 Die Mail konnte nicht verschickt werden!>Mailer Error: You must provide at least one recipient email address.

Funktioniert das script mit der neuen php version nicht mehr? Hat jemand eine Idee wie Ich das Mail-Script wieder zum laufen bekomme?

Danke!

Hallo,

lief alles von Anfang an prima, danke für das tolle Script.

Gruß Matthias

Hallo zusammen,

Bei mir kommen in letzter Zeit immer bei Defcon4 diese (bekannten) Meldungen:
…Undefined variable: DEFCON_Value…
und
…Undefined variable: DEFCON_Status…
habe die vom DWD wieder mit den Farben gespielt?

Auf der DWD Seite http://www.wettergefahren.de/app/ws/index.jsp?view=map&land_code=SU&height=0&warn_type=0
ist in der Legende die Farbe für ‚Hitzewarnung‘ noch immer [LEFT]CC99FF[/LEFT]

Eben ist bei mir der Defcon von 4 auf 6 gesprungen und die Meldungen hören auf.

Hats schon jemand rausgefunden?

Hi zusammen,

habe das Script heute bei mir installiert. Leider wird bei mir im WFE kein Radarbild angezeigt. Hat das eventuell mit folgender Fehlermeldung zu tun?

Unwetterwarnung: fehlerhafte WAN-Connection

Wäre super, wenn mir hier jemand weiterhelfen könnte!

Danke,
Kai

Hallo,

habe mich auch mal an dem Tollen Script versucht… (Als Anfänger) und bekomme den php_mailer_connector als Fehlerhaft markiert und folgende Fehlermeldungen

IPS-Err-PHP 2014-10-18 08:43:53.390 Notice: Undefined index: from Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 20 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 20 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: from in C:\IP-Symcon\scripts\11984.ips.php on line 20
IPS-Err-PHP 2014-10-18 08:43:53.562 Notice: Undefined index: fname Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 21 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 21 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: fname in C:\IP-Symcon\scripts\11984.ips.php on line 21
IPS-Err-PHP 2014-10-18 08:43:53.734 Notice: Undefined index: priority Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 22 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 22 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: priority in C:\IP-Symcon\scripts\11984.ips.php on line 22
IPS-Err-PHP 2014-10-18 08:43:53.921 Notice: Undefined index: htmlsubject Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 23 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 23 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: htmlsubject in C:\IP-Symcon\scripts\11984.ips.php on line 23
IPS-Err-PHP 2014-10-18 08:43:54.093 Notice: Undefined index: htmlhead Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 24 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 24 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: htmlhead in C:\IP-Symcon\scripts\11984.ips.php on line 24
IPS-Err-PHP 2014-10-18 08:43:54.265 Notice: Undefined index: htmlbody Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 24 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 24 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: htmlbody in C:\IP-Symcon\scripts\11984.ips.php on line 24
IPS-Err-PHP 2014-10-18 08:43:54.437 Notice: Undefined index: htmlend Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 24 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 24 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: htmlend in C:\IP-Symcon\scripts\11984.ips.php on line 24
IPS-Err-PHP 2014-10-18 08:43:54.625 Notice: Undefined index: to Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 26 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 26 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: to in C:\IP-Symcon\scripts\11984.ips.php on line 26
IPS-Err-PHP 2014-10-18 08:43:54.796 Notice: Undefined index: tname Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 26 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 26 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: tname in C:\IP-Symcon\scripts\11984.ips.php on line 26
IPS-Err-PHP 2014-10-18 08:43:54.984 Notice: Undefined index: reply Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 27 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 27 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)

Notice: Undefined index: reply in C:\IP-Symcon\scripts\11984.ips.php on line 27
IPS-Err-PHP 2014-10-18 08:43:55.156 Notice: Undefined index: from Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 27 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 44 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 27 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)
IPS-Err-PHP 2014-10-18 08:43:55.343 Maximal ErrorCount exceeded for this Session --> Abort Processing 134 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger.inc.php (call IPSLogger_Out) 98 in scripts\IPSLibrary\app\core\IPSLogger\IPSLogger_PhpErrorHandler.inc.php (call IPSLogger_Err) 27 in scripts\11984.ips.php (call IPSLogger_PhpErrorHandler)
Abort Processing during exceed of maximal ErrorCount: Undefined index: from
Error in Script C:\IP-Symcon\scripts\11984.ips.php on Line 27

Kann mir vieleicht einer helfen ?

Gruß Mike

Hallo zusammen,

das Script läuft jetz im WebFront. Nur leider nicht der Mailversand. Ich bekomme folgende Fehlermeldung:

Wisst Ihr woran das liegen könnte?

Gruß,
Kai

Das steht doch wortwörtlich in der Fehlermeldung ;). gmail akzeptiert nur noch Mails mit/über STARTTLS.

ja ok, habe ich mir auch gedacht und entsprechend die Infos hinzugefügt. Jedoch kommt dann die Fehlermeldung, dass encryption von der Class nicht unterstützt wird. Oder habe ich das dann falsch hinzugefügt? Meines Wissens nach verlangen jetzt ja alle Mailanbieter eine Verschlüsselung. Wie muss ich jetzt die config file umschreiben, damit der Versand der Mails wieder funktioniert?

Falls es nicht geht -PN an mich.

Habe hier einen SSL-gedöns freien SMTP-Relay stehen, genau für solche Sache oder Hardwaregeräte aus der SSL freien Zeit ^^…

OK danke für die Klärung. Habe mir jetzt einen Anbieter gesucht, der noch kein SLL fordert. Damit klappt es sofort!

Hi, wie kann ich die Mailbenachtichtigung für Defcon 3-6 abstellen? Ich möchte bei Defcon 0 und 1 alarmiert werden - allerdings alle 60 Minuten nur…

Echt ein super Skript!