mmm-nest-status
mmm-nest-status copied to clipboard
Nest api error
Hi there. Thanks for this brilliant module. But I'm having some problems with it. This module works couple of hours and says api error. Last night I deleted my old nest api and got new api and id,s but still same problem. Can you help me out here. Thanks 😊
This is most likely due to an authentication error. Open up the node_helper.js
file and change line 23 to:
self.sendSocketNotification('MMM_NEST_STATUS_DATA_ERROR', JSON.stringify(err));
Then restart your MagicMirror.
This change should allow you to see what the error actually is instead of just getting [object object]
.
Hi mate. thanks for replaying. I changed node_helper.js line 23, but I don't see any error on nest status. this is my log
[19.03.2022 13:06.27.083] [LOG] Starting MagicMirror: v2.18.0
[19.03.2022 13:06.27.105] [LOG] Loading config ...
[19.03.2022 13:06.27.121] [LOG] Loading module helpers ...
[19.03.2022 13:06.27.136] [LOG] No helper found for module: alert.
[19.03.2022 13:06.27.175] [LOG] Initializing new module helper ...
[19.03.2022 13:06.27.178] [LOG] Module helper loaded: updatenotification
[19.03.2022 13:06.27.181] [LOG] No helper found for module: MMM-IronManGIF.
[19.03.2022 13:06.27.184] [LOG] No helper found for module: clock.
[19.03.2022 13:06.27.356] [LOG] Initializing new module helper ...
[19.03.2022 13:06.27.358] [LOG] Module helper loaded: mmm-nest-status
[19.03.2022 13:06.27.361] [LOG] No helper found for module: MMM-WiFiPassword.
[19.03.2022 13:06.27.363] [LOG] No helper found for module: calendar_monthly.
[19.03.2022 13:06.27.798] [LOG] Initializing new module helper ...
[19.03.2022 13:06.27.800] [LOG] Module helper loaded: calendar
[19.03.2022 13:06.27.897] [LOG] Initializing new module helper ...
[19.03.2022 13:06.27.898] [LOG] Module helper loaded: MMM-PIR-Sensor
[19.03.2022 13:06.27.968] [LOG] Initializing new module helper ...
[19.03.2022 13:06.27.970] [LOG] Module helper loaded: newsfeed
[19.03.2022 13:06.28.988] [LOG] Initializing new module helper ...
[19.03.2022 13:06.28.991] [LOG] Module helper loaded: MMM-DarkSkyForecast
[19.03.2022 13:06.28.992] [LOG] All module helpers loaded.
[19.03.2022 13:06.29.315] [LOG] Starting server on port 8080 ...
[19.03.2022 13:06.29.356] [LOG] Server started ...
[19.03.2022 13:06.29.361] [LOG] Connecting socket for: updatenotification
[19.03.2022 13:06.29.363] [LOG] Starting module helper: updatenotification
[19.03.2022 13:06.29.365] [LOG] Connecting socket for: mmm-nest-status
[19.03.2022 13:06.29.369] [LOG] Starting node_helper for module [mmm-nest-status]
[19.03.2022 13:06.29.371] [LOG] Connecting socket for: calendar
[19.03.2022 13:06.29.372] [LOG] Starting node helper for: calendar
[19.03.2022 13:06.29.374] [LOG] Connecting socket for: MMM-PIR-Sensor
[19.03.2022 13:06.29.376] [LOG] Connecting socket for: newsfeed
[19.03.2022 13:06.29.378] [LOG] Starting node helper for: newsfeed
[19.03.2022 13:06.29.379] [LOG] Connecting socket for: MMM-DarkSkyForecast
[19.03.2022 13:06.29.381] [LOG] ====================== Starting node_helper for module [MMM-DarkSkyForecast]
[19.03.2022 13:06.29.382] [LOG] Sockets connected & modules started ...
[19.03.2022 13:06.29.952] [LOG] Launching application.
[1592:0319/130631.268070:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[1633:0319/130631.611998:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[19.03.2022 13:06.40.826] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/en.uk%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000
[19.03.2022 13:06.41.006] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/s - Interval: 60000
[19.03.2022 13:06.41.289] [LOG] Create new newsfetcher for url: http://www.walesonline.co.uk/?service=rss - Interval: 300000
[19.03.2022 13:06.41.302] [LOG] Create new newsfetcher for url: http://feeds.bbci.co.uk/bengali/rss.xml - Interval: 300000
[19.03.2022 13:06.41.324] [LOG] Create new newsfetcher for url: https://www.independent.co.uk/news/uk/rss - Interval: 300000
[19.03.2022 13:06.41.392] [INFO] Checking git for module: MMM-IronManGIF
[19.03.2022 13:06.41.547] [INFO] Checking git for module: mmm-nest-status
[19.03.2022 13:06.41.617] [INFO] Checking git for module: MMM-WiFiPassword
[19.03.2022 13:06.42.014] [INFO] Checking git for module: calendar_monthly
[19.03.2022 13:06.42.313] [INFO] Checking git for module: MMM-PIR-Sensor
[19.03.2022 13:06.42.380] [INFO] Newsfeed-Fetcher: Broadcasting 37 items.
[19.03.2022 13:06.42.535] [INFO] Checking git for module: MMM-DarkSkyForecast
[19.03.2022 13:06.42.747] [INFO] Checking git for module: default
[19.03.2022 13:06.43.316] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[19.03.2022 13:06.44.705] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[19.03.2022 13:06.45.146] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[19.03.2022 13:06.45.276] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:07.45.798] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:08.46.364] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:09.46.790] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:10.47.315] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:11.42.799] [INFO] Newsfeed-Fetcher: Broadcasting 37 items.
[19.03.2022 13:11.44.064] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[19.03.2022 13:11.45.313] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[19.03.2022 13:11.46.103] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[19.03.2022 13:11.47.811] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:12.48.268] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:13.48.820] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:14.49.341] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:15.49.735] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:16.43.231] [INFO] Newsfeed-Fetcher: Broadcasting 37 items.
[19.03.2022 13:16.44.514] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[19.03.2022 13:16.45.696] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[19.03.2022 13:16.46.762] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[19.03.2022 13:16.50.176] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:17.50.647] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:18.51.239] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:19.51.703] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:20.52.156] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:21.43.711] [INFO] Newsfeed-Fetcher: Broadcasting 37 items.
[19.03.2022 13:21.45.150] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[19.03.2022 13:21.46.064] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[19.03.2022 13:21.47.456] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[19.03.2022 13:21.52.522] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:22.53.074] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:23.53.765] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:24.54.435] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:25.55.008] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:26.44.193] [INFO] Newsfeed-Fetcher: Broadcasting 37 items.
[19.03.2022 13:26.45.610] [INFO] Newsfeed-Fetcher: Broadcasting 25 items.
[19.03.2022 13:26.46.485] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[19.03.2022 13:26.48.357] [INFO] Newsfeed-Fetcher: Broadcasting 99 items.
[19.03.2022 13:26.55.533] [INFO] Calendar-Fetcher: Broadcasting 2 events.
[19.03.2022 13:27.55.582] [ERROR] Calendar Error. Could not fetch calendar: https://calendar.google.com/calendar/ical/qurashitanvir%40gmail.com/public/basic.ics FetchError: request to https://calendar.google.com/calendar/ical/public/basic.ics failed, reason: getaddrinfo EAI_AGAIN calendar.google.com
at ClientRequest.
Still showing [object object]
When you pulled the latest version of the module, did you do a npm install
inside the module folder to make sure you got axios
installed?
Try doing the same change in line 36 (eg. wrap the err
with JSON.stringify()
) - those two lines are the only place where it's actually triggering this particular error message.
I pulled the latest version and I did npm install. Now I've change the line 36 link the picture attached. Hope I'll find the error. Or maybe I'll try to reinstall everything.
You're missing the err
on line 36 - it should be:
self.sendSocketNotification('MMM_NEST_STATUS_DATA_ERROR', JSON.stringify(err));
The error is bit unclear because of the other module. I've removed the other module and waiting for the error now.
The error you're getting is getaddrinfo EAI_AGAIN
which is basically a temporary DNS lookup timeout error - eg. it's trying to connect to the Google API but timing out whilst doing so.
You're actually getting the same error on the Calendar module as well - you can see it in the log you pasted in earlier.
There isn't anything I can do to fix this right now, unfortunately, but I'll make a note to to publish an update where, if you get this error, it'll automatically try loading the data again after, say, 5 minutes.
Ok. Thanks very much for help. I really like this module. I will wait for update.
@michael5r I'm seeing some similar issues as well. The simple retry should fix most of these. With your next update can you also include the change to print the error message?
Yep - I'll add that as well. Should have a new update ready over the weekend.
Thank you 😊
Hey @tanvir586 @relm923 - I've just pushed a new version of this module that adds the data reloading & better error messaging.
One thing to be aware of - if it times out trying to get data, but you already have the initial data loaded (eg. if it's been working just fine for hours, then suddenly starts timing out), it'll silently try to load new data in the background and won't show an error message on your mirror.
I figured this was nicer than simply deleting everything to just show the new error message.
If you want it to always show the error message as it's trying to get data, you can remove the if (!self.loaded) {
check on line 621 in the mmm-nest-status.js
file.
Thank you very much @michael5r . I really appreciate your effort.
I delete the old module and install new version. But I'm facing same problem. It's been 8 hours showing same error.
It is showing the actual error message, like in your screenshot above? Or is it showing [object object]
?
I've deleted the old module. On the new one I didn't change node_helper.js line 36.
Is anyone facing same problem as me?
Hi guys. Im still having the problem but I found a temporary solution until the new update come. I'm using MMM-auto-refresh
now and it refresh all models every 5 hours. So far it's working good to me. But I still prefer this module to get fixed. Hope we'll get updated soon. Till then if you have same problem then use MMM-auto-refresh