• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-NINA

Scheduled Pinned Locked Moved Utilities
40 Posts 12 Posters 10.3k Views 12 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    Jalibu Module Developer @bill22
    last edited by Jan 6, 2022, 5:00 PM

    @bill22 ich gucks mir bei Gelegenheit mal an. Die Hochwasserinformation ist momentan auch in RLP und BW sichtbar und nervt mich ein bisschen :-)

    B 1 Reply Last reply Jan 6, 2022, 5:37 PM Reply Quote 0
    • B Offline
      bill22 @Jalibu
      last edited by Jan 6, 2022, 5:37 PM

      @jalibu alles klar, dann bin ich nicht alleine :-) Danke.

      Vielleicht kann man das über das Filtern der verschiedenen BBK Warnstufen abfangen.

      (Auf der Seite findet sich auch ein Bezug auf die entsprechenden DWD Stufen)

      Hochwasserinformationen sollten demnach separat sein.

      J 1 Reply Last reply Jan 6, 2022, 11:58 PM Reply Quote 0
      • J Offline
        Jalibu Module Developer @bill22
        last edited by Jan 6, 2022, 11:58 PM

        @bill22 die API liefert zwar eine Severity, aber die landesweiten Hochwasser Warnmeldungen haben z.B. alle die höchste Stufe “SEVERE”. Deshalb sind sie im Modul auch rot.
        Es lässt sich aber zusätzlich ein Filter nach dem Versender (also Mowas, Länderübergreifendes Hochwasser Portal (LHP), DWD, BIWAPP) einbauen.

        config {
          excludeProviders: ['lhp']
        }
        

        So sieht die ungefilterte Response für ein paar ausgewählte Orte aus:

        [
            {
                "id": "mow.DE-NW-BN-SE030-20201014-30-000",
                "payload": {
                    "version": 1,
                    "type": "ALERT",
                    "id": "mow.DE-NW-BN-SE030-20201014-30-000",
                    "hash": "551db820a43be7e4f39283e1dfb71b212cd520c3ee478d44f43519e9c48fde4c",
                    "data": {
                        "headline": "Coronavirus: Informationen des Bundesministeriums für Gesundheit",
                        "provider": "MOWAS",
                        "severity": "Minor",
                        "msgType": "Update",
                        "transKeys": {
                            "event": "BBK-EVC-040"
                        },
                        "area": {
                            "type": "ZGEM",
                            "data": "1+11057,100001"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Coronavirus: Informationen des Bundesministeriums für Gesundheit"
                },
                "sent": "2021-11-09T15:17:08+01:00",
                "cityName": "Haßloch | Köln, Stadt | Wernigerode, Stadt | Seevetal | Bad Staffelstein, St",
                "date": "09.11.2021 - 15:17"
            },
            {
                "id": "lhp.HOCHWASSERZENTRALEN.DE.RP",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "lhp.HOCHWASSERZENTRALEN.DE.RP",
                    "hash": "846a6a1ec7d750d5fe6181afd0482d465402456853e7c82453c0ad98a7953cdb",
                    "data": {
                        "headline": "Hochwasserinformation Rheinland-Pfalz",
                        "provider": "LHP",
                        "severity": "Severe",
                        "msgType": "Alert",
                        "area": {
                            "type": "ZGEM",
                            "data": "3639+2303"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Hochwasserinformation Rheinland-Pfalz"
                },
                "sent": "2022-01-07T00:40:00+01:00",
                "onset": "2022-01-07T00:39:00+01:00",
                "expires": "2022-01-08T01:39:00+01:00",
                "effective": "2022-01-07T00:39:00+01:00",
                "cityName": "Haßloch",
                "date": "07.01.2022 - 00:40"
            },
            {
                "id": "mow.DE-NW-D-SE020-20211227-20-000",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "mow.DE-NW-D-SE020-20211227-20-000",
                    "hash": "19d01474a9a70297802310e7e637a24b0cca82e8a963717df0b4cbb9a1627187",
                    "data": {
                        "headline": "Coronavirus: Informationen des Landes Nordrhein-Westfalen",
                        "provider": "MOWAS",
                        "severity": "Minor",
                        "msgType": "Update",
                        "transKeys": {
                            "event": "BBK-EVC-081"
                        },
                        "area": {
                            "type": "ZGEM",
                            "data": "3243+395,100001"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Coronavirus: Informationen des Landes Nordrhein-Westfalen"
                },
                "sent": "2021-12-27T15:02:49+01:00",
                "cityName": "Köln, Stadt",
                "date": "27.12.2021 - 15:02"
            },
            {
                "id": "lhp.HOCHWASSERZENTRALEN.DE.NW",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "lhp.HOCHWASSERZENTRALEN.DE.NW",
                    "hash": "bbe7ff3bca13144619e68555283842fb5506e9e40880c8580ba7a98ffbb6eb3a",
                    "data": {
                        "headline": "Hochwasserinformation Nordrhein-Westfalen",
                        "provider": "LHP",
                        "severity": "Severe",
                        "msgType": "Alert",
                        "area": {
                            "type": "ZGEM",
                            "data": "3243+395"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Hochwasserinformation Nordrhein-Westfalen"
                },
                "sent": "2022-01-07T00:40:00+01:00",
                "onset": "2022-01-07T00:22:00+01:00",
                "expires": "2022-01-08T01:22:00+01:00",
                "effective": "2022-01-07T00:22:00+01:00",
                "cityName": "Köln, Stadt",
                "date": "07.01.2022 - 00:40"
            },
            {
                "id": "dwd.2.49.0.1.276.0.DWD.PVW.1641393120000.048ad8e6-be16-4bb3-81f9-b383be381430.MUL",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "dwd.2.49.0.1.276.0.DWD.PVW.1641393120000.048ad8e6-be16-4bb3-81f9-b383be381430.MUL",
                    "hash": "260fe0a60cc9b79e5b8b495efa4f4e13494e2c5a4278cc2b3367fe43a4fc5e26",
                    "data": {
                        "headline": "Amtliche WARNUNG vor STURMBÖEN",
                        "provider": "DWD",
                        "severity": "Moderate",
                        "msgType": "Alert",
                        "area": {
                            "type": "ZGEM",
                            "data": "7087"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Amtliche WARNUNG vor STURMBÖEN",
                    "en": "Official WARNING of GALE-FORCE GUSTS",
                    "ar": "تحذير رسمي من هبوب عواصف",
                    "es": "AVISO oficial de TURBONADA",
                    "fr": "ALERTE officielle INTEMPÉRIES PRONONCÉES pour RAFALES DE FORCE FORT COUP DE VENT",
                    "pl": "Oficjalne OSTRZEŻENIE METEOROLOGICZNE (2. STOPNIA) przed WICHURAMI",
                    "ru": "Официальное предупреждение о значительных погодных явлениях: Шквалы штормового ветра",
                    "tr": "FIRTINA ESİNTİLERİNE karşı resmi UYARI"
                },
                "sent": "2022-01-05T15:31:53+01:00",
                "onset": "2022-01-05T22:00:00+01:00",
                "expires": "2022-01-06T08:00:00+01:00",
                "effective": "2022-01-05T15:32:00+01:00",
                "cityName": "Wernigerode, Stadt",
                "date": "05.01.2022 - 15:31"
            },
            {
                "id": "dwd.2.49.0.1.276.0.DWD.PVW.1641481680000.30e21c2a-1a2f-45b6-8716-1dd7308879ec.MUL",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "dwd.2.49.0.1.276.0.DWD.PVW.1641481680000.30e21c2a-1a2f-45b6-8716-1dd7308879ec.MUL",
                    "hash": "ed5d731d0e978dc9d6299ff1f8bc63a23ef60d86d2d5aa638ffaaecc2b68b5ab",
                    "data": {
                        "headline": "Amtliche WARNUNG vor SCHWEREN STURMBÖEN",
                        "provider": "DWD",
                        "severity": "Moderate",
                        "msgType": "Alert",
                        "area": {
                            "type": "ZGEM",
                            "data": "7087"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Amtliche WARNUNG vor SCHWEREN STURMBÖEN",
                    "en": "Official WARNING of STORM-FORCE GUSTS",
                    "ar": "تحذير رسمي من هبوب عواصف   عنيفة",
                    "es": "AVISO oficial de TURBONADA VIOLENTA",
                    "fr": "ALERTE officielle INTEMPÉRIES PRONONCÉES pour RAFALES DE FORCE TEMPÊTE",
                    "pl": "Oficjalne OSTRZEŻENIE METEOROLOGICZNE (2. STOPNIA) przed SILNYMI WICHURAMI",
                    "ru": "Официальное предупреждение о значительных погодных явлениях: Шквалы сильного штормового ветра",
                    "tr": "ŞİDDETLİ FIRTINA ESİNTİLERİNE karşı resmi UYARI"
                },
                "sent": "2022-01-06T16:07:46+01:00",
                "onset": "2022-01-07T00:00:00+01:00",
                "expires": "2022-01-08T00:00:00+01:00",
                "effective": "2022-01-06T16:08:00+01:00",
                "cityName": "Wernigerode, Stadt",
                "date": "06.01.2022 - 16:07"
            },
            {
                "id": "lhp.HOCHWASSERZENTRALEN.DE.ST",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "lhp.HOCHWASSERZENTRALEN.DE.ST",
                    "hash": "72e4d4f70d35956a7f4bfbf93e05378fd9039b32d8a6d237a6e67e887ba22919",
                    "data": {
                        "headline": "Hochwasserinformation Sachsen-Anhalt",
                        "provider": "LHP",
                        "severity": "Severe",
                        "msgType": "Alert",
                        "area": {
                            "type": "ZGEM",
                            "data": "7086+217"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Hochwasserinformation Sachsen-Anhalt"
                },
                "sent": "2022-01-07T00:40:00+01:00",
                "onset": "2022-01-07T00:34:00+01:00",
                "expires": "2022-01-08T01:34:00+01:00",
                "effective": "2022-01-07T00:34:00+01:00",
                "cityName": "Wernigerode, Stadt",
                "date": "07.01.2022 - 00:40"
            },
            {
                "id": "biw.BIWAPP-63644",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "biw.BIWAPP-63644",
                    "hash": "1af7f24bd309b13b14f2202b7565b469720012cc2f31fabcfa317c6d2a80f9a3",
                    "data": {
                        "headline": "Geflügelpest: Kreisweite Stallpflicht, Schutz und Überwachungszone um Betrieb in Wistedt ab 01.12.",
                        "provider": "BIWAPP",
                        "severity": "Minor",
                        "msgType": "Alert",
                        "area": {
                            "type": "GRID",
                            "data": "95276,95887+4,96501+3,97115+2,97728+3,97747,98341+4,98349+1,98359+3,98955+4,98961+3,98971+5,99565+12,99584+5,99603,100177+13,100192+13,100214+7,100786+33,100825+10,101398+35,101438+12,102010+55,102622+57,103235+57,103846+58,104458+50,104514+2,105070+51,105684+50,106297+46,106345,106911+45,107524+42,108137+42,108750+44,109364+43,109977+43,110590+43,111203+42,111816+40,112430+40,113048+36,113664+33,114278+5,114286+24,114894,114901+21,115514+3,115519+11,116133+8,116747+7,117363+3,117977+2,500001"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Geflügelpest: Kreisweite Stallpflicht, Schutz und Überwachungszone um Betrieb in Wistedt ab 01.12."
                },
                "sent": "2021-11-30T17:29:51+01:00",
                "expires": "2022-03-31T17:20:00+02:00",
                "cityName": "Seevetal",
                "date": "30.11.2021 - 17:29"
            },
            {
                "id": "biw.BIWAPP-64402",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "biw.BIWAPP-64402",
                    "hash": "797eb997e6e99766884e0adf5369cf662d2cabff8fa524353685a1a9a6caeaf7",
                    "data": {
                        "headline": "Geflügelpest: Überwachungszone wird am 05. Januar 2022 aufgehoben",
                        "provider": "BIWAPP",
                        "severity": "Minor",
                        "msgType": "Alert",
                        "area": {
                            "type": "GRID",
                            "data": "95276,95887+4,96501+3,97115+2,97728+3,97747,98341+4,98349+1,98359+3,98955+4,98961+3,98971+5,99565+12,99584+5,99603,100177+13,100192+13,100214+7,100786+33,100825+10,101398+35,101438+12,102010+55,102622+57,103235+57,103846+58,104458+50,104514+2,105070+51,105684+50,106297+46,106345,106911+45,107524+42,108137+42,108750+44,109364+43,109977+43,110590+43,111203+42,111816+40,112430+40,113048+36,113664+33,114278+5,114286+24,114894,114901+21,115514+3,115519+11,116133+8,116747+7,117363+3,117977+2,500001"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Geflügelpest: Überwachungszone wird am 05. Januar 2022 aufgehoben"
                },
                "sent": "2021-12-28T10:57:06+01:00",
                "expires": "2022-01-30T10:54:00+01:00",
                "cityName": "Seevetal",
                "date": "28.12.2021 - 10:57"
            },
            {
                "id": "mow.DE-BY-CO-W141-20210930-002",
                "payload": {
                    "version": 1,
                    "type": "ALERT",
                    "id": "mow.DE-BY-CO-W141-20210930-002",
                    "hash": "1be374887b4e45cd54d1364f7286ebae0c3006b730e7e4ab758353e0b47ebfcc",
                    "data": {
                        "headline": "Geruchsbelästigung und Verunreinigung durch wassergefährdeten Stoffen - Fluss Rodach",
                        "provider": "MOWAS",
                        "severity": "Severe",
                        "msgType": "Update",
                        "transKeys": {
                            "event": "BBK-EVC-081"
                        },
                        "area": {
                            "type": "ZGEM",
                            "data": "9261+12,9319,9321+2,9329+2,100001"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Geruchsbelästigung und Verunreinigung durch wassergefährdeten Stoffen - Fluss Rodach"
                },
                "sent": "2021-11-09T15:16:57+01:00",
                "cityName": "Bad Staffelstein, St",
                "date": "09.11.2021 - 15:16"
            },
            {
                "id": "lhp.HOCHWASSERZENTRALEN.DE.BY",
                "payload": {
                    "version": 2,
                    "type": "ALERT",
                    "id": "lhp.HOCHWASSERZENTRALEN.DE.BY",
                    "hash": "91f429e6447353dcb977ba79740e76e436380c927f642d3fb1968f2fdde8d2c8",
                    "data": {
                        "headline": "Hochwasserinformation Bayern",
                        "provider": "LHP",
                        "severity": "Severe",
                        "msgType": "Alert",
                        "area": {
                            "type": "ZGEM",
                            "data": "7304+2232"
                        }
                    }
                },
                "i18nTitle": {
                    "de": "Hochwasserinformation Bayern"
                },
                "sent": "2022-01-07T00:40:00+01:00",
                "onset": "2022-01-07T00:39:00+01:00",
                "expires": "2022-01-08T01:39:00+01:00",
                "effective": "2022-01-07T00:39:00+01:00",
                "cityName": "Bad Staffelstein, St",
                "date": "07.01.2022 - 00:40"
            }
        ]
        
        1 Reply Last reply Reply Quote 0
        • B Offline
          bill22
          last edited by bill22 Jan 7, 2022, 10:06 PM Jan 7, 2022, 10:01 PM

          @Jalibu

          Den Versender zu filtern wäre schon mal eine Möglichkeit.

          Alternativ:
          Hochwasserinformation als (Vor)-Info sehen, bei Gefahr folgt wohl eh eine separate Gefahren-Meldung.
          Zumindest scheint es beim aktuellen ags 065350015015 Beispiel so.

          Falls dem so ist, könnte man als wählbare Option alle (“Severe”) Meldungen, sofern sie vom LHP kommen, vor Ausgabe in “Minor” konvertieren um normal anzuzeigen.

          "headline": "Hochwasserinformation Rheinland-Pfalz",
                          "provider": "LHP",
                          "severity": "Severe", //>>wird automatisch in "Minor" gewandelt
          

          –

          Noch ein anderer Punkt. Siehst Du eine Möglichkeit den Corona Warn Status mit entsprechender aktueller Übersicht und Zusammenfassung anzuzeigen?

          f76f8r64ee867urg6535473684798576.png

          Link zum Beispiel auf BBK Seite

          Geht ja auch per iFrame, schicker wäre es natürlich direkt im Modul…

          R 1 Reply Last reply Jan 9, 2022, 5:30 PM Reply Quote 0
          • R Offline
            requiemmg @bill22
            last edited by Jan 9, 2022, 5:30 PM

            Die Hochwasserinformationen nerven in der Tat, zumal sie ständig aktualisiert werden und ständig eingeblendet sind. Wäre toll, die ausfiltern zu können (excludeProviders wie oben hat bei mir nicht funktioniert).

            J 1 Reply Last reply Jan 9, 2022, 8:14 PM Reply Quote 0
            • J Offline
              Jalibu Module Developer @requiemmg
              last edited by Jan 9, 2022, 8:14 PM

              @requiemmg ja, den Filter müsste ich ja zunächst mal wie in dem Post diskutiert einbauen :-)

              1 Reply Last reply Reply Quote 0
              • J Offline
                Jalibu Module Developer
                last edited by Jan 9, 2022, 8:53 PM

                Habe eben mal ne neue Version veröffentlicht. Kann sie nur momentan selbst nicht gut testen. Gebt mir mal bitte Rückmeldung.

                Viele Grüße aus Heidelberg

                R 1 Reply Last reply Jan 9, 2022, 9:15 PM Reply Quote 0
                • R Offline
                  requiemmg @Jalibu
                  last edited by Jan 9, 2022, 9:15 PM

                  @jalibu Das ging schnell, danke.
                  Klappt bei mir aber noch nicht. Die lhp-Informationen werden jetzt gelb statt rot (statt gar nicht mehr) angezeigt, eine vorher rote Aufhebung einer Warnung ist jetzt grau.

                  Config:

                          {
                              module: "MMM-NINA",
                              header: "NINA-Warnmeldungen",
                              position: "top_center",
                              config: {
                                  ags: ["removed", "removed"], // Liste der Gemeinden, die abgefragt werden sollen
                                  maxAgeInHours: 24,
                                  excludeProviders: ['lhp'],
                                  maxWidth: "400px",
                                  mergeAlerts: true,
                                  showIcon: true,
                                  showDate: true,
                                  showCity: true,
                                  showNoWarning: true,
                                  theme: "side", // Erlaubte Werte: top, side
                                  updateIntervalInSeconds: 120,
                  
                              }
                          },
                  
                  J 1 Reply Last reply Jan 10, 2022, 9:50 AM Reply Quote 0
                  • B Offline
                    bill22
                    last edited by bill22 Jan 9, 2022, 10:34 PM Jan 9, 2022, 10:27 PM

                    @Jalibu
                    Danke für das Update.
                    Ich kann bestätigen das das Filtern (exclude) funktioniert. Meldung erscheint dann nicht mehr.
                    Thanks for the update. I can confirm that the filter (exclude) is working for me.

                    Das Downgrade der Warnstufe scheint aber immer zu erfolgen. Auswahl funktioniert nicht.
                    Downgrade of Warning is applied always. Selection true false does not work.

                    downgradeLhpServerity müsste aber ohne das r sein = downgradeLhpSeverity. Vielleicht deshalb.
                    Maybe because of typo “r” in Severity.

                    @requiemmg
                    Exclude:
                    Nach ändern in Großschreibung “LHP” und Neustart ging es bei mir.
                    After changing to capital “LHP” and restart, it worked for me.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jalibu Module Developer @requiemmg
                      last edited by Jan 10, 2022, 9:50 AM

                      @requiemmg @bill22
                      Habe nochmal ein Release nachgelegt. Neu ist die Option “downgradeCancelSeverity” -> Siehe Readme

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 4
                      3 / 4
                      • First post
                        26/40
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy