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.

    Weather just won't show up...

    Scheduled Pinned Locked Moved Troubleshooting
    13 Posts 2 Posters 1.8k Views 2 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
      sdetweil @Stef
      last edited by sdetweil

      @Stef ok, usually we use xxx so us trying to help know

      anyhow, if u look in the console where u start mm, npm start, or the logs if u use pm2

      pm2 logs --lines=???
      ??? is some number, default 15

      and also the developers window, ctrl-shift-i on the keyboard, then select the console tab and scroll up see any errors.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        Stef @sdetweil
        last edited by

        @sdetweil yeah I know, but it was hard to copy the text from the juice ssh (android app) shell and posting it here… Total formatting screw up 😂

        I did a

        Pm2 flush
        

        Killed the magic mirror “app” and the log shows me:

        Linux mirrorpi2 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l
        
        The programs included with the Debian GNU/Linux system are free software;
        the exact distribution terms for each program are described in the
        individual files in /usr/share/doc/*/copyright.
        
        Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
        permitted by applicable law.
        Last login: Thu Sep 10 07:42:22 2020 from 192.168.0.199
        pi@mirrorpi2:~ $ pm2 logs --lines=15
        [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option)
        /home/pi/.pm2/pm2.log last 15 lines:
        PM2        | 2020-09-10T08:26:30: PM2 log: Change detected on path config/config.js for app MagicMirror - restarting
        PM2        | 2020-09-10T08:26:30: PM2 log: Stopping app:MagicMirror id:1
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=failed to kill - retrying in 100ms
        PM2        | 2020-09-10T08:26:31: PM2 log: App [MagicMirror:1] exited with code [0] via signal [SIGINT]
        PM2        | 2020-09-10T08:26:31: PM2 log: pid=920 msg=process killed
        PM2        | 2020-09-10T08:26:31: PM2 log: App [MagicMirror:1] starting in -fork mode-
        PM2        | 2020-09-10T08:26:31: PM2 log: App [MagicMirror:1] online
        
        /home/pi/.pm2/logs/pm2-logrotate-out.log last 15 lines:
        /home/pi/.pm2/logs/pm2-logrotate-error.log last 15 lines:
        /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
        1|MagicMir | [2020-09-10 08:26:40.320] [ERROR]  ERROR! Could not find main module js file for MagicMirror-Display-Controller
        
        /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
        1|MagicMir | [2020-09-10 08:26:44.046] [LOG]    Create new news fetcher for url: http://www.spiegel.de/schlagzeilen/tops/index.rss - Interval: 300000
        1|MagicMir | [2020-09-10 08:26:44.144] [LOG]    Create new news fetcher for url: http://rss.sueddeutsche.de/rss/Topthemen - Interval: 300000
        1|MagicMir | [2020-09-10 08:26:44.148] [LOG]    Use existing news fetcher for url: http://rss.sueddeutsche.de/rss/Topthemen
        1|MagicMir | [2020-09-10 08:26:44.149] [INFO]   Newsfeed-Fetcher: No items to broadcast yet.
        1|MagicMir | [2020-09-10 08:26:44.395] [LOG]    MMM-MyCommute: The provided API key is invalid.
        1|MagicMir | [2020-09-10 08:26:44.404] [LOG]    MMM-MyCommute: The provided API key is invalid.
        1|MagicMir | [2020-09-10 08:26:45.177] [INFO]   Newsfeed-Fetcher: Broadcasting 15 items.
        1|MagicMir | [2020-09-10 08:26:45.451] [INFO]   Newsfeed-Fetcher: Broadcasting 20 items.
        1|MagicMir | [2020-09-10 08:26:45.720] [INFO]   Newsfeed-Fetcher: Broadcasting 30 items.
        1|MagicMir | [2020-09-10 08:26:46.169] [INFO]   Calendar-Fetcher: Broadcasting 5 events.
        1|MagicMir | [2020-09-10 08:31:43.420] [LOG]    Use existing calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics
        1|MagicMir | [2020-09-10 08:31:43.434] [INFO]   Calendar-Fetcher: Broadcasting 5 events.
        1|MagicMir | [2020-09-10 08:31:44.663] [INFO]   Calendar-Fetcher: Broadcasting 5 events.
        1|MagicMir | [2020-09-10 08:31:46.041] [INFO]   Newsfeed-Fetcher: Broadcasting 20 items.
        1|MagicMir | [2020-09-10 08:31:46.356] [INFO]   Newsfeed-Fetcher: Broadcasting 15 items.
        

        You can ignore the error - I tested a different module for the pir sensor and went back to using an “old” one (one I know)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Stef
          last edited by

          @Stef what about the developers window log?

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            Stef @sdetweil
            last edited by

            @sdetweil
            That one is not showing up…
            Guess while I’m only on ssh and vnc

            BTW I got a new bug…
            Current weather is still not showing, but the forecast is… Well, kind of…

            Screenshot_20200913-015116~2.png

            What strange is, that it still says new York instead of “Rosbach”…

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Stef
              last edited by sdetweil

              @Stef >
              That one is not showing up…
              what does that mean? ctrl-shift-i on the mirror keyboard , select the tab labeled ‘console’ and scroll up to see any errors,
              usually red text

              you can also filter on messages from specific modules by putting some unique part of the module name in the ‘filter’ field

              the wrong config means you didn’t put the right stuff in config.js

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                Stef @sdetweil
                last edited by

                Hi, sorry for getting back to you so late…

                @sdetweil said in Weather just won't show up...:

                @Stef >
                That one is not showing up…
                what dies that mean? ctrl-shift-i on the mirror keyboard , select the tab labeled ‘console’ and scroll up to see any errors,
                usually red text

                Alright, i does not work on mobile… i am on my computer right now, in a vnc sessions on my pi and it worked!

                Sadly, i got a bunch of errors… all stating the same thing

                GET https://api.openweathermap.org/data/2.5/weather?id=2485160&units=metric&lang=en&APPID=%myappid% 404 (Not Found)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                currentweather.js:339 currentweather: Could not load weather.
                weatherRequest.onreadystatechange @ currentweather.js:339
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                XMLHttpRequest.send (async)
                updateWeather @ currentweather.js:347
                (anonymous) @ currentweather.js:515
                setTimeout (async)
                scheduleUpdate @ currentweather.js:514
                weatherRequest.onreadystatechange @ currentweather.js:343
                
                

                If i try to resolve the url on my browser i get:

                {"cod":"404","message":"city not found"}
                

                Which is odd…

                the wrong config means you didn’t put the right stuff in config.js

                What do you mean by that? i did replaced “new york” with “rosbach”…

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

                  Ok… now i am confused as sh**…

                  I don’t get it…
                  First of all, it is working! The current weather is showing and the forecast (only for 2 days sadly).

                  I went to the openweathermap site and searched for “Rosbach”.
                  I found it and copied the number from the url (2845162) and used it in both moudles.

                  So far so good.
                  What i don’t understand is the value “location” in the module… I entered Rosbach and it was still displaying New York - i get it now, that i was still using the wrong location id (i am so sorry about that! i did not see that mistake!!) - but if the “location name” is coming from the website, why is there a value called “location”??

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Stef
                    last edited by

                    @Stef the doc https://docs.magicmirror.builders/modules/currentweather.html#configuration-options

                    says location or location id
                    location, city name is not enough

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @Stef
                      last edited by

                      @Stef weather for 2 days, see the post pinned to the top of the troubleshooting section about fixes available for version 2.12

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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

                        I feel like fool…

                        I misred that… sorry…

                        1 Reply Last reply Reply Quote 0
                        • 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