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-DWD-Pollen

    Scheduled Pinned Locked Moved Health
    healthweather
    32 Posts 10 Posters 15.7k Views 10 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.
    • S Offline
      Sachse
      last edited by

      @bhepler said in MMM-DWD-Pollen:

      npm start dev

      @bhepler

      you mean the error messages in the bash or the console of Chromium?

      $ npm start dev

      magicmirror@2.11.0 start /home/pi/MagicMirror
      DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js “dev”

      Gtk-Message: 19:18:06.195: Failed to load module “canberra-gtk-module”
      Gtk-Message: 19:18:06.204: Failed to load module “canberra-gtk-module”
      [2020-05-12 19:18:07.380] [LOG] Starting MagicMirror: v2.11.0
      [2020-05-12 19:18:07.393] [LOG] Loading config …
      [2020-05-12 19:18:07.402] [LOG] Loading module helpers …
      [2020-05-12 19:18:07.405] [LOG] No helper found for module: alert.
      [2020-05-12 19:18:07.507] [LOG] Initializing new module helper …
      [2020-05-12 19:18:07.508] [LOG] Module helper loaded: updatenotification
      [2020-05-12 19:18:07.509] [LOG] No helper found for module: clock.
      [2020-05-12 19:18:08.251] [LOG] Initializing new module helper …
      [2020-05-12 19:18:08.252] [LOG] Module helper loaded: calendar
      [2020-05-12 19:18:08.253] [LOG] No helper found for module: currentweather.
      [2020-05-12 19:18:08.255] [LOG] No helper found for module: weatherforecast.
      [2020-05-12 19:18:08.258] [LOG] Initializing new module helper …
      [2020-05-12 19:18:08.260] [LOG] Module helper loaded: MMM-DWD-Pollen
      [2020-05-12 19:18:08.306] [LOG] Initializing new module helper …
      [2020-05-12 19:18:08.307] [LOG] Module helper loaded: newsfeed
      [2020-05-12 19:18:08.308] [LOG] All module helpers loaded.
      [2020-05-12 19:18:08.510] [LOG] Starting server on port 8080 …
      [2020-05-12 19:18:08.533] [LOG] Server started …
      [2020-05-12 19:18:08.535] [LOG] Connecting socket for: updatenotification
      [2020-05-12 19:18:08.536] [LOG] Connecting socket for: calendar
      [2020-05-12 19:18:08.537] [LOG] Starting node helper for: calendar
      [2020-05-12 19:18:08.538] [LOG] Connecting socket for: MMM-DWD-Pollen
      [2020-05-12 19:18:08.539] [LOG] MMM-DWD-Pollen helper started …
      [2020-05-12 19:18:08.540] [LOG] Connecting socket for: newsfeed
      [2020-05-12 19:18:08.541] [LOG] Starting module: newsfeed
      [2020-05-12 19:18:08.542] [LOG] Sockets connected & modules started …
      [2020-05-12 19:18:08.772] [LOG] Whoops! There was an uncaught exception…
      [2020-05-12 19:18:08.773] [ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080
      at Server.setupListenHandle [as _listen2] (net.js:1226:14)
      at listenInCluster (net.js:1274:12)
      at GetAddrInfoReqWrap.doListen [as callback] (net.js:1413:7)
      at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:65:10) {
      code: ‘EADDRINUSE’,
      errno: ‘EADDRINUSE’,
      syscall: ‘listen’,
      address: ‘127.0.0.1’,
      port: 8080
      }
      [2020-05-12 19:18:08.792] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [2020-05-12 19:18:08.793] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [2020-05-12 19:18:08.802] [LOG] Launching application.
      [22416:0512/191926.709481:ERROR:CONSOLE(24)] “Empty response arrived for script ‘devtools://devtools/remote/serve_file/@74afbfc65bd4d271bc09280abd5783ffe47444b9/accessibility/accessibility_module.js’”, source: devtools://devtools/bundled/shell.js (24)
      [22416:0512/191926.710572:ERROR:CONSOLE(109)] “Uncaught (in promise) Error: Could not instantiate: Accessibility.AccessibilitySidebarView”, source: devtools://devtools/bundled/shell.js (109)
      [22416:0512/191936.736681:ERROR:CONSOLE(24)] “Empty response arrived for script ‘devtools://devtools/remote/serve_file/@74afbfc65bd4d271bc09280abd5783ffe47444b9/product_registry_impl/product_registry_impl_module.js’”, source: devtools://devtools/bundled/shell.js (24)
      [22416:0512/191936.802627:ERROR:CONSOLE(109)] “Uncaught (in promise) Error: Could not instantiate: ProductRegistryImpl.Registry”, source: devtools://devtools/bundled/shell.js (109)


      In the network analysis from the console of Chromium I find under MMM-DWD-Pollen.js:

      Request URL: http://localhost:8080/modules/MMM-DWD-Pollen//MMM-DWD-Pollen.js
      Request Method: GET
      Status Code: 304 Not Modified
      Remote Address: 127.0.0.1:8080
      Referrer Policy: no-referrer-when-downgrade
      Accept-Ranges: bytes
      Cache-Control: public, max-age=0
      Connection: keep-alive
      Date: Tue, 12 May 2020 17:30:47 GMT
      ETag: W/“1e7a-1720040e625”
      Last-Modified: Sun, 10 May 2020 20:22:32 GMT
      Strict-Transport-Security: max-age=15552000; includeSubDomains
      X-Content-Type-Options: nosniff
      X-DNS-Prefetch-Control: off
      X-Download-Options: noopen
      X-Frame-Options: SAMEORIGIN
      X-XSS-Protection: 1; mode=block
      Accept: /
      Accept-Encoding: gzip, deflate, br
      Accept-Language: de
      Connection: keep-alive
      Host: localhost:8080
      If-Modified-Since: Sun, 10 May 2020 20:22:32 GMT
      If-None-Match: W/“1e7a-1720040e625”
      Referer: http://localhost:8080/
      Sec-Fetch-Mode: no-cors
      Sec-Fetch-Site: same-origin
      User-Agent: Mozilla/5.0 (X11; Linux armv7l) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.146 Electron/6.0.12 Safari/537.36

      under Console with the word filter “pollen” I see:

      Load script: modules/MMM-DWD-Pollen//MMM-DWD-Pollen.js
      module.js:479 Module registered: MMM-DWD-Pollen
      loader.js:150 Bootstrapping module: MMM-DWD-Pollen
      loader.js:155 Scripts loaded for: MMM-DWD-Pollen
      loader.js:194 Load stylesheet: modules/MMM-DWD-Pollen/MMM-DWD-Pollen.css
      loader.js:157 Styles loaded for: MMM-DWD-Pollen
      loader.js:159 Translations loaded for: MMM-DWD-Pollen

      I hope I got the right error messages

      Greetings Heiko

      bheplerB 1 Reply Last reply Reply Quote 0
      • D Offline
        duxnobis
        last edited by

        Hi Mate, could you do the same for Switzerland? Or chat bilateral to talk about what is required and I will see what I can organize. Thanks!

        C 1 Reply Last reply Reply Quote 0
        • bheplerB Offline
          bhepler Module Developer @Sachse
          last edited by

          @Sachse - I mean the console in Chromium. The dev mode should display the console on your mirror so you can see the log from the display layer. The log in “bash” is the log from the back end (the node_helper.js and similar scripts).

          @Sachse said in MMM-DWD-Pollen:

          ERROR] Error: listen EADDRINUSE: address already in use 127.0.0.1:8080

          This means that some other process is already using port 8080 on your Pi. Usually, this means that you have two instances of Magic Mirror running. You may have something else using that port, but usually it’s another script attempting to also run your mirror. First, let’s check if PM2 has two instances defined. If you type pm2 status all what do you see?

          General principle: You can ignore just about everything in a log file unless it is preceded by ERROR.

          1 Reply Last reply Reply Quote 0
          • S Offline
            Sachse
            last edited by

            @bhelper

            Ohh, this is almost embarrassing. I could have figured that out myself by looking at netstat -plan|grep 8080. I was just irritated that the other modules worked without problems, so I didn’t suspect the error there. The module “MMM-DWD-Pollen” works great now :-)

            Thanks for your support

            bheplerB C K 3 Replies Last reply Reply Quote 1
            • TechJak7000T Offline
              TechJak7000
              last edited by

              Hello Carsten,

              Thank you for making a such a useful module, just out of curiosity would like to know that you can the data free from DWD, I would love to have one for Denmark, I tried to contact the AAD :- “Astma-Allergi Denmark” but could not find a solution.

              I was wondering if you can assist me making one for Denmark, I will be wonderful and beneficial for many.

              Best Regards
              JG

              C 1 Reply Last reply Reply Quote 0
              • bheplerB Offline
                bhepler Module Developer @Sachse
                last edited by

                @Sachse - Glad you got it working!

                Don’t worry about the “gee, I could have figured that out for myself” thing. Today, it took me hours to realize that one of my customer’s problems was he had the wrong time zone set on his laptop. It’s the simple fixes with vague errors that hurt the most.

                1 Reply Last reply Reply Quote 1
                • C Offline
                  CarstenD @Sachse
                  last edited by

                  @Sachse Glad you got it working with the support from @bhelper. Sorry that I could not reply fast enough. Thanks for using!

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    CarstenD @duxnobis
                    last edited by

                    @duxnobis In general yes, I think Switzerland gets data from Meteo Schweiz (https://opendata.swiss/de/dataset/messstationen-des-nationalen-pollenmessnetzes)

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      CarstenD @TechJak7000
                      last edited by

                      @TechJak7000 said in MMM-DWD-Pollen:

                      Astma-Allergi Denmark

                      I found some information here: https://github.com/rugaard/pollen
                      Thus it looks like Astma-Allergi Denmark does not offer any official API. Thus you have to use this API here (which I guess takes the data from the website) and renders the data accordingly. There are only two regions as far as I can see (East and West?) and 25 pollen. If the API works it should no big problem.

                      TechJak7000T 1 Reply Last reply Reply Quote 0
                      • TechJak7000T Offline
                        TechJak7000 @CarstenD
                        last edited by TechJak7000

                        @CarstenD Thank you very much for your attention and effort. I have contacted the owner of the post to have more in depth information how to go about and use this API.
                        As far as my limited knowledge for implementing this, one has to install / use 2 different programs systems to utilize it, and I have sent the guy a message with and example of the “MMM-pollen” to give him and idea of what I am looking for and how can I implement this, I hope I get a useful response.

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          CarstenD
                          last edited by

                          Added the option to select which Pollen to display through config.

                          M 1 Reply Last reply Reply Quote 1
                          • M Offline
                            MajorC Project Sponsor @CarstenD
                            last edited by

                            I have the DWD-Pollen on the right side of my scree. Unfortunately, there is a gap as you can see in the picture.

                            pollen.jpg

                            I checked the CSS, but it is a table and I can’t see a good way to get rid of the space on the right.

                            Any idea is appreciated.

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              MajorC Project Sponsor
                              last edited by

                              Update:
                              I now use:

                              .MMM-DWD-Pollen table {
                              	margin-left: auto;
                              	margin-right: -40px;
                              }
                              

                              Not sure if this is a good way, but it works for me at the moment.

                              C 1 Reply Last reply Reply Quote 0
                              • C Offline
                                CarstenD @MajorC
                                last edited by

                                @majorc Thanks. Somehow this does not really work on mine. Now the text is stretching into the right border.
                                But good that it works for you.

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MajorC Project Sponsor @CarstenD
                                  last edited by

                                  @carstend that is strange. This is the only css I use for DWD-Pollen. Do you have something else in your custom css?

                                  1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    Klinge
                                    last edited by

                                    Hello,
                                    maybe someone of you could help me, because in my new opened topic I got no answers unfortunately.
                                    I try to start the module MMM-DWD-Pollen. But the data will not be loaded. I am living in the region “Östl. Niedersachsen”. On the Github site this region is declared with the number “32”. And on the DWD Site it is declared with the number “5”. But both numbers are not working. And now I don´t know which number I can use for my region.
                                    It would be great if someone could help me.
                                    Thank you in advance.

                                    S F 2 Replies Last reply Reply Quote 0
                                    • S Offline
                                      sdetweil @Klinge
                                      last edited by

                                      @Klinge if someone knows and is willing to help they will.
                                      this forum is all volunteer community

                                      Sam

                                      How to add modules

                                      learning how to use browser developers window for css changes

                                      K 1 Reply Last reply Reply Quote 0
                                      • K Offline
                                        Klinge @sdetweil
                                        last edited by

                                        @sdetweil said in MMM-DWD-Pollen:

                                        if someone knows and is willing to help they will.
                                        this forum is all volunteer community

                                        Yes, I know, and that’s absolutely fine, of course. It was just another attempt here.

                                        1 Reply Last reply Reply Quote 0
                                        • F Offline
                                          fatgrandma @Klinge
                                          last edited by

                                          @Klinge

                                          The Number on github is the correct one as statet on the github site

                                          “There is a map that sows all part regions (but you have to match it to the numbers shown above)”

                                          Dumb take but did you try to just wait one day? DWD pushes the numbers out once a day, if there are no new ones it shows nothing on the module.

                                          K 1 Reply Last reply Reply Quote 0
                                          • K Offline
                                            Klinge @fatgrandma
                                            last edited by

                                            @fatgrandma Thank you for your answer.

                                            When I take the wrong number from the DWD site I got the message “No values today. No values tomorrow”. But you are right. In this case I have to wait a day more. I guess DWD published his new values at 11 a.m. every day, doesn´t it?

                                            But when I take the correct number from the github site(!), I get only the message “Loading”. And this has been the case for several days.

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              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