Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter Weather-Warnings

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Test Adapter Weather-Warnings

    This topic has been deleted. Only users with topic management privileges can see it.
    • Chris76e
      Chris76e @ticaki last edited by

      @ticaki

      {
       "allowedDirs": [
         {
           "providerService": "DWD",
           "dpWarning": true,
           "dpMessage": true,
           "dpFormated": true,
           "dpAlerts": true
         },
         {
           "providerService": "ZAMG",
           "dpWarning": true,
           "dpMessage": true,
           "dpFormated": true,
           "dpAlerts": true
         },
         {
           "providerService": "UWZ",
           "dpWarning": true,
           "dpMessage": true,
           "dpFormated": true,
           "dpAlerts": true
         }
       ],
       "useJsonHistory": false,
       "dwdwarncellTable": [
         {
           "dwdSelectId": "105370000",
           "dwdCityname": "xxxxx"
         }
       ],
       "uwzwarncellTable": [
         {
           "uwzSelectId": "DExxxx",
           "uwzCityname": "xxxx"
         }
       ],
       "zamgwarncellTable": [],
       "useTestWarnings": false,
       "dwdEnabled": true,
       "uwzEnabled": true,
       "zamgEnabled": false,
       "dwdHourFilter": 0,
       "uwzHourFilter": 0,
       "zamgHourFilter": 0,
       "notPushAtStart": false,
       "refreshTime": 5,
       "messageTemplate": [],
       "templateTable": [
         {
           "templateKey": "NewMessage",
           "template": "Hallo Christian. Es gibt eine ${headline}. ${description}"
         },
         {
           "templateKey": "RemoveMessage",
           "template": "Entwarnung: ${Warntypename}, Stufe: ${warnlevelcolorname}"
         },
         {
           "templateKey": "RemoveAllMessage",
           "template": "Entwarnung!"
         },
         {
           "templateKey": "NewJson",
           "template": "{ „action“: „${status}“, „start“: „${starttime}“, „ende“: „${endtime}“, type: „${warntypename}“ \\}"
         },
         {
           "templateKey": "RemoveJson",
           "template": "{ „headline“: „${Headline}“, „status“: „${status}“\\}"
         },
         {
           "templateKey": "RemoveAllJson",
           "template": "{ \"status\": \"Entwarnung!\"\\}"
         },
         {
           "templateKey": "NewMessageWithArray",
           "template": "Luke, wir haben eine neue Warnung ${Warntypename} ab ${starttime} erhalten, sieht aus wie ein ${_customArray}"
         },
         {
           "templateKey": "_CustomArray",
           "template": "${[Keks,Sturmtrooper,Tie-Jäger,Imperialer Kreuzer,Todesstern]warnlevelnumber}"
         },
         {
           "templateKey": "Telegramm",
           "template": "${[0,🟡,🟠,🔴,🟣]warnlevelnumber} Es gibt eine ${headline} ${[0,🟡,🟠,🔴,🟣]warnlevelnumber}\\n ${description}\\nDie Warnung gilt von ${startdayofweek} ${startdate} ${starttime} Uhr bis ${enddayofweek} ${startdate} ${endtime} Uhr\\nDie ${_customAlexaIf}"
         },
         {
           "templateKey": "Alexa",
           "template": "Hallo Christian; es gibt eine ${headline}; Die Warnung gilt von Mo, ${startdate}.1111 ${starttime} bis Mo, ${enddate}.1111 ${endtime};${description}"
         },
         {
           "templateKey": "_customHEX",
           "template": "${[0,#FFFF00,#FFA500,#ff0000,#ee82ee]warnlevelnumber}"
         },
         {
           "templateKey": "_customFarbname",
           "template": "${[Grün,Gelb,Orange,Rot,Violett]warnlevelnumber}"
         },
         {
           "templateKey": "_customAlexaIf",
           "template": "Warnung ${(0>cdfuture)ist seit#wird in} ${(0<cdhour)\\${_CustomIfHours\\}} ${cdminute} Minute${(1!=cdminute)n} aktiv."
         },
         {
           "templateKey": "_CustomIfHours",
           "template": "${cdhour} Stunde${(1!=cdhour)n}"
         },
         {
           "templateKey": "_customText",
           "template": "${[0,🟡,🟠,🔴,🟣]warnlevelnumber} Es gibt eine ${headline} ${[0,🟡,🟠,🔴,🟣]warnlevelnumber}\\n ${description}\\nDie Warnung gilt von ${startdayofweek} ${startdate} ${starttime} Uhr bis ${enddayofweek} ${startdate} ${endtime} Uhr\\nDie ${_customAlexaIf}"
         }
       ],
       "dwdLanguage": "ger",
       "uwzLanguage": "DE",
       "zamgLanguage": "de",
       "dwdTypeFilter": [],
       "zamgTypeFilter": [],
       "uwzTypeFilter": [],
       "dwdLevelFilter": 0,
       "uwzLevelFilter": 0,
       "zamgLevelFilter": 0,
       "telegram_DwdEnabled": true,
       "telegram_UwzEnabled": true,
       "telegram_ZamgEnabled": true,
       "telegram_TypeFilter": [],
       "telegram_LevelFilter": 0,
       "telegram_Enabled": true,
       "telegram_Adapter": "telegram.0",
       "telegram_MessageNew": "Telegramm",
       "telegram_MessageRemove": "RemoveMessage",
       "telegram_MessageAllRemove": "RemoveAllMessage",
       "whatsapp_DwdEnabled": true,
       "whatsapp_UwzEnabled": true,
       "whatsapp_ZamgEnabled": true,
       "whatsapp_TypeFilter": [],
       "whatsapp_LevelFilter": 0,
       "whatsapp_Enabled": false,
       "whatsapp_Adapter": "none",
       "whatsapp_MessageNew": "NewMessage",
       "whatsapp_MessageRemove": "RemoveMessage",
       "whatsapp_MessageAllRemove": "RemoveAllMessage",
       "pushover_DwdEnabled": true,
       "pushover_UwzEnabled": true,
       "pushover_ZamgEnabled": true,
       "pushover_TypeFilter": [],
       "pushover_LevelFilter": 0,
       "pushover_Enabled": false,
       "pushover_Adapter": "none",
       "pushover_MessageNew": "NewMessage",
       "pushover_MessageRemove": "RemoveMessage",
       "pushover_MessageAllRemove": "RemoveAllMessage",
       "json_DwdEnabled": true,
       "json_UwzEnabled": true,
       "json_ZamgEnabled": true,
       "json_TypeFilter": [],
       "json_LevelFilter": 0,
       "json_Enabled": true,
       "json_MessageAll": "NewJson",
       "json_MessageAllRemove": "RemoveAllJson",
       "json_parse": false,
       "history_DwdEnabled": true,
       "history_UwzEnabled": true,
       "history_ZamgEnabled": true,
       "history_TypeFilter": [],
       "history_LevelFilter": 0,
       "history_Enabled": true,
       "history_MessageNew": "NewJson",
       "history_MessageRemove": "RemoveAllJson",
       "history_allinOne": false,
       "email_Adapter": "none",
       "email_line_break": "",
       "email_DwdEnabled": true,
       "email_UwzEnabled": true,
       "email_ZamgEnabled": true,
       "email_TypeFilter": [],
       "email_LevelFilter": 0,
       "email_Enabled": false,
       "email_MessageNew": "NewMessage",
       "email_MessageRemove": "RemoveMessage",
       "email_Header": "none",
       "email_Footer": "none",
       "alexa2_Adapter": "alexa2.0",
       "alexa2_DwdEnabled": true,
       "alexa2_UwzEnabled": true,
       "alexa2_ZamgEnabled": true,
       "alexa2_device_ids": [
         "G091JJ13152200TJ"
       ],
       "alexa2_TypeFilter": [],
       "alexa2_LevelFilter": 0,
       "alexa2_Enabled": true,
       "alexa2_MessageNew": "Alexa",
       "alexa2_MessageRemove": "RemoveMessage",
       "alexa2_MessageAllRemove": "RemoveAllMessage",
       "alexa2_volumen": 40,
       "telegram_ManualTypeFilter": [],
       "telegram_ManualLevelFilter": 0,
       "telegram_manualAll": "Telegramm",
       "whatsapp_ManualTypeFilter": [],
       "whatsapp_ManualLevelFilter": 0,
       "whatsapp_manualAll": "NewMessage",
       "pushover_ManualTypeFilter": [],
       "pushover_ManualLevelFilter": 0,
       "pushover_manualAll": "NewMessage",
       "email_ManualTypeFilter": [],
       "email_ManualLevelFilter": 0,
       "email_manualAll": "NewMessage",
       "alexa2_ManualTypeFilter": [],
       "alexa2_ManualLevelFilter": 0,
       "alexa2_manualAll": "Alexa",
       "alexa2_Audio": "",
       "alexa2_sounds": [
         {
           "warntypenumber": 1,
           "warntype": "Unbekannt",
           "sound": ""
         },
         {
           "warntypenumber": 2,
           "warntype": "Sturm",
           "sound": "<audio src=\"soundbank://soundlibrary/weather/wind/wind_04\"/>"
         },
         {
           "warntypenumber": 3,
           "warntype": "Schneefall",
           "sound": "<audio src=\"soundbank://soundlibrary/footsteps/snow/snow_05\"/>"
         },
         {
           "warntypenumber": 4,
           "warntype": "Regen",
           "sound": "<audio src=\"soundbank://soundlibrary/nature/amzn_sfx_rain_01\"/>"
         },
         {
           "warntypenumber": 5,
           "warntype": "Kälte",
           "sound": ""
         },
         {
           "warntypenumber": 6,
           "warntype": "Waldbrand",
           "sound": ""
         },
         {
           "warntypenumber": 7,
           "warntype": "Gewitter",
           "sound": "<audio src=\"soundbank://soundlibrary/weather/thunder/thunder_03\"/>"
         },
         {
           "warntypenumber": 8,
           "warntype": "Glatteis/rutschig",
           "sound": "<audio src=\"soundbank://soundlibrary/ice_snow/ski/ski_03\"/>"
         },
         {
           "warntypenumber": 9,
           "warntype": "Hitze",
           "sound": ""
         },
         {
           "warntypenumber": 10,
           "warntype": "Hagel",
           "sound": ""
         },
         {
           "warntypenumber": 11,
           "warntype": "Nebel",
           "sound": ""
         },
         {
           "warntypenumber": 12,
           "warntype": "Tauwetter",
           "sound": ""
         },
         {
           "warntypenumber": 0,
           "warntype": "Entwarnung!",
           "sound": ""
         }
       ],
       "alexa2_sounds_enabled": true,
       "imExpert": true,
       "telegram_UserId": "",
       "telegram_withNoSound": true,
       "telegram_ChatId": "",
       "icon_color": "black",
       "iobrokerUrl": "",
       "templateHelp": "Tokens:\n${altitude}: Minimum validity height\n${cdfuture}: Countdown warning lies ahead.\n${cdhour}: Remaining time hours part. Up to 30 * 24 hours.\n${cdminute}: Remaining time minutes part.\n${ceiling}: Maximum validity height\n${countdown}: Remaining time until the start of the warning.\n${description}: Description\n${enddate}: End Date\n${endday}: End Day\n${enddayofweek}: End day of the week\n${enddayofweekshort}: End day of the week short\n${enddaytime}: End: Time of the day.\n${endmonth}: End Month\n${endtime}: End Time\n${endtimems}: End Time in ms\n${headline}: Headline\n${iconurl}: Url to Icon\n${impact}: Impact text\n${instruction}: Instructions\n${location}: Location retrieved from the provider\n${locationcustom}: Location from admin configuration\n${provider}: Provider\n${startadverb}: Start: temporal adverb (yesterday, today, tomorrow, day after tomorrow)\n${startdate}: Start date\n${startday}: Start Day\n${startdayofweek}: Start day of the week\n${startdayofweekshort}: Start day of the week short\n${startdaytime}: Start: Time of day.\n${startmonth}: Start Month\n${starttime}: Start time\n${starttimems}: Start time in ms\n${status}: Status of warning. new, hold, all clear\n${warningcount}: Number of Warnings\n${warnlevelcolorhex}: Hexnumber of level color\n${warnlevelcolorname}: Textname of level color\n${warnlevelname}: Textname of level\n${warnlevelnumber}: Number of level\n${warntypegeneric}: Warntype number generic\n${warntypegenericname}: Warntype name generic\n${warntypename}: Warning type retrieved from the provide",
       "telegram_parse_mode": "none",
       "silentTime": [
         {
           "speakProfile": null,
           "silentTime": []
         }
       ],
       "sayit_Enabled": false,
       "sayit_MessageNew": "NewMessage",
       "sayit_MessageRemove": "RemoveMessage",
       "sayit_MessageAllRemove": "RemoveAllMessage",
       "sayit_volumen": 15,
       "sayit_manualAll": "NewMessage",
       "icons_description": "unknown, storm, snowfall, rain, cold, forest_fire, thunderstorm, black_ice_slippery, heat, hail, fog, thaw",
       "icons_prefix": "/vis.0/weather/icons/",
       "icons_suffix": ".png",
       "pushover_Title": "none",
       "email_Title": "none"
      }
      
      T 1 Reply Last reply Reply Quote 0
      • T
        ticaki Developer @Chris76e last edited by

        @chris76e
        Verstehe die Fehlermeldung trotzdem nicht, so falsch is die Konfiguration nicht, dass es nicht gehen sollte. Ich mach mal ne Fehlerbehandlung drum und dann testen es bitte nochmal

        Chris76e 1 Reply Last reply Reply Quote 0
        • Chris76e
          Chris76e @ticaki last edited by

          @ticaki

          ok

          T 1 Reply Last reply Reply Quote 0
          • T
            ticaki Developer @Chris76e last edited by ticaki

            @chris76e
            Danke, das war tatsächlich nicht ok wenn keine Einträge da sind. Versuche es jetzt nochmal. Da gibts doch ein schönes Bild für:2023-10-28 21.00.49.jpg
            Ab jetzt warte ich einen Tag bevor ich npm anstoße. gibt dann wohl ne v0.4.6... obwohl v0.5.0 Ist ja fast alles drin

            Chris76e 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active last edited by

              @ticaki

              Du bist gerade hier auf Sendung, daher kein Issue:

              2023-10-28 21:02:31.214  - info: weather-warnings.0 (579449) starting. Version 0.4.5 in /opt/iobroker/node_modules/iobroker.weather-warnings, node: v18.18.2, js-controller: 5.0.15
              2023-10-28 21:02:35.570  - info: weather-warnings.0 (579449) Refresh Interval: 15 minutes
              2023-10-28 21:02:35.714  - info: weather-warnings.0 (579449) DWD activated. Retrieve data.
              2023-10-28 21:02:35.720  - info: weather-warnings.0 (579449) UWZ activated. Retrieve data.
              2023-10-28 21:02:36.022  - error: weather-warnings.0 (579449) Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
              2023-10-28 21:02:36.023  - error: weather-warnings.0 (579449) unhandled promise rejection: this.silentTime.profil[profil] is not iterable
              2023-10-28 21:02:36.147  - error: weather-warnings.0 (579449) TypeError: this.silentTime.profil[profil] is not iterable
                  at ProviderController.setSpeakAllowed (/opt/iobroker/node_modules/iobroker.weather-warnings/src/lib/provider.ts:898:49)
                  at ProviderController.updateAlertEndless (/opt/iobroker/node_modules/iobroker.weather-warnings/src/lib/provider.ts:763:20)
                  at /opt/iobroker/node_modules/iobroker.weather-warnings/src/main.ts:505:41
              2023-10-28 21:02:36.148  - error: weather-warnings.0 (579449) this.silentTime.profil[profil] is not iterable
              2023-10-28 21:02:36.161  - info: weather-warnings.0 (579449) terminating
              2023-10-28 21:02:36.164  - warn: weather-warnings.0 (579449) Terminated (UNCAUGHT_EXCEPTION): Without reason
              2023-10-28 21:02:36.357  - warn: weather-warnings.0 (579449) setTimeout called, but adapter is shutting down
              2023-10-28 21:02:36.667  - info: weather-warnings.0 (579449) terminating
              2023-10-28 21:02:36.790  - error: host.chet instance system.adapter.weather-warnings.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
              

              iobroker.weather-warnings@0.4.5 mag nicht. 🙂

              T 1 Reply Last reply Reply Quote 0
              • T
                ticaki Developer @Thomas Braun last edited by

                @thomas-braun
                Versuche github, sollte gefixt sein.

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Chris76e
                  Chris76e @ticaki last edited by Chris76e

                  @ticaki

                  funktioniert jetzt

                  Vieleiocht noch ein default Profilname nehemen. Wenn man kein Name vergibt so der DP so aus

                  Screenshot 2023-10-28 210844.png

                  T 1 Reply Last reply Reply Quote 0
                  • Thomas Braun
                    Thomas Braun Most Active @ticaki last edited by Thomas Braun

                    @ticaki sagte in Test Adapter Weather-Warnings:

                    Versuche github, sollte gefixt sein.

                    Stimmt, GitHub-Version funkt wieder.

                    
                    iobroker.weather-warnings@0.4.5 (git+ssh://git@github.com/ticaki/ioBroker.weather-warnings.git#95898bc58c60a0547ffb7e96156ef5891449f7dd)
                    
                    1 Reply Last reply Reply Quote 0
                    • T
                      ticaki Developer @Chris76e last edited by

                      @chris76e
                      Angenommen

                      "Default": "fill me"
                      
                      Chris76e 1 Reply Last reply Reply Quote 1
                      • F
                        Flugschüler last edited by

                        Bei mir funktioniert die 0.4.5 nicht. Startet nicht einmal.

                        Thomas Braun T 2 Replies Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Flugschüler last edited by

                          @flugschüler sagte in Test Adapter Weather-Warnings:

                          Bei mir funktioniert die 0.4.5 nicht. Startet nicht einmal.

                          Siehe oben. Die GitHub-Version startet wieder.

                          1 Reply Last reply Reply Quote 0
                          • T
                            ticaki Developer @Flugschüler last edited by ticaki

                            @flugschüler
                            Sry da ist ein Fehler, wenn die Ruhezeiten leer sind und da bei jedem Tester die Ruhezeiten schon befüllt waren ist das nicht aufgefallen.

                            Außerdem soll das Repo um 14:00 und 2:00 aktualisiert werden, wo kommt ihr jetzt schon an den Adapter? 🙂

                            v0.4.6 ist auf dem Weg

                            EDIT: die Test bevor das auf npm landet können zwischen 6-20 Minuten dauern.

                            F Thomas Braun 2 Replies Last reply Reply Quote 0
                            • F
                              Flugschüler @ticaki last edited by Flugschüler

                              @ticaki 0.4.6 geil.

                              1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @ticaki last edited by

                                @ticaki sagte in Test Adapter Weather-Warnings:

                                Außerdem soll das Repo um 14:00 und 2:00 aktualisiert werden, wo kommt ihr jetzt schon an den Adapter?

                                Wir haben einen minütlichen cronjob auf iob update laufen. 🙂

                                1 Reply Last reply Reply Quote 1
                                • Chris76e
                                  Chris76e @ticaki last edited by

                                  @ticaki sagte in Test Adapter Weather-Warnings:

                                  @chris76e
                                  Angenommen

                                  "Default": "fill me"
                                  

                                  hast du das in der 0.4.6 eingebaut, wenn ja, funktioniert noch nicht

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    ticaki Developer @Chris76e last edited by ticaki

                                    @chris76e
                                    Ja hab ich. Geht vielleicht kein Default bei Textfeldern. Kann ich mir morgen anschauen.

                                    v0.4.6 ist auf npm, also kann man es auch von dort installieren.

                                    Quark:

                                    "default": "fill me"
                                    

                                    geht. War vorhin zusehr im "mist, warum ist die kaputte Version schon im Repo" modus.

                                    update

                                    Chris76e 1 Reply Last reply Reply Quote 1
                                    • F
                                      Flugschüler last edited by Flugschüler

                                      @ticaki Wenn das einer wüsste.😊

                                      1 Reply Last reply Reply Quote 0
                                      • Chris76e
                                        Chris76e @ticaki last edited by

                                        @ticaki

                                        Habe eine Warnung im DWD Adapter, erscheint aber nicht in diesem Adapter....

                                        DWD

                                        {"state":"Nordrhein-Westfalen","type":1,"level":2,"start":1698523200000,"end":1698606000000,"regionName":"Kreis Heinsberg","event":"WINDBÖEN","headline":"Amtliche WARNUNG vor WINDBÖEN","instruction":"","description":"Es treten Windböen mit Geschwindigkeiten zwischen 50 km/h (14 m/s, 28 kn, Bft 7) und 60 km/h (17 m/s, 33 kn, Bft 7) aus südwestlicher Richtung auf. In exponierten Lagen muss mit Sturmböen um 65 km/h (18 m/s, 35 kn, Bft 8) gerechnet werden.","stateShort":"NRW","altitudeStart":null,"altitudeEnd":null}
                                        
                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          ticaki Developer @Chris76e last edited by ticaki

                                          @chris76e
                                          Das ist so richtig.

                                          Der DWD Adapter kennt nur Kreise, dieser hier auch Ortsteile. Du bekommst nur Warnung die auch wirklich zutreffen. Wenn du lieber das gleiche möchtest, stelle deine Warnzelle auf deinen Kreis ein. Da steht dann i.d.R. Kreis und nicht Gemeinde oder Stadt davor.

                                          EDIT: jup 105370000;Kreis Heinsberg;Heinsberg;HSX;NW

                                          Chris76e 1 Reply Last reply Reply Quote 0
                                          • Chris76e
                                            Chris76e @ticaki last edited by

                                            @ticaki

                                            hmm, kann hier aber nur den Kreis Auswählen, habe den Stadt Name nur für mich eingegeben.....

                                            T 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            871
                                            Online

                                            31.7k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            34
                                            1074
                                            239880
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo