Read the statement by Michael Teeuw here.
Weather just won't show up...
-
Hey Guys,
I am crating a new mirror and everything is going well so far, but the weather plugins just won’t show up…
I don’t know why…
My config is fine, cause the Mirror is properly booting and displaying the calendar, the clock and so on.I rebootet it multiple times - any ideas?
{ module: "currentweather", position: "top_right", config: { location: "Rosbach", locationID: "2485160", appid: } }, { module: "weatherforecast", position: "top_right", header: "Vorhersage", config: { location: "Rosbach", locationID: "5128581", appid: " } },
-
@Stef what is the appid value?, you signed up for one, right,?
-
Sure
I just don’t wanted to paste it here -
@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 15and also the developers window, ctrl-shift-i on the keyboard, then select the console tab and scroll up see any errors.
-
@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)
-
@Stef what about the developers window log?
-
@sdetweil
That one is not showing up…
Guess while I’m only on ssh and vncBTW I got a new bug…
Current weather is still not showing, but the forecast is… Well, kind of…What strange is, that it still says new York instead of “Rosbach”…
-
@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 textyou 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
-
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 textAlright, 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”…
-
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”??