Read the statement by Michael Teeuw here.
MMM-OpenWeatherMapForecast 3.0 API calls and freeze issue
-
@jfields logs are captured by pm2
pm2 logs --lines=xxxx
xxxx is the number of lines to show
the curl loads a version of the MagicMirror file that now only loads the node helper once per module.
nothing else is changed
-
@sdetweil said in MMM-OpenWeatherMapForecast 3.0 API calls and freeze issue:
@Socrates
yes openweather changed their api
module needs updateGreetings fellow MagicMirror fans, I also noticed that the weather is not updating since a few days. I ran a git pull to update the module , it says already updated, but the module is not displaying the weather. DId i miss doing something . I have a free account and an api key. Need help to resolve this, Thanks.
-
@Rags open the developers window, curl-shift-I, select the console tab, and put wea in the filter field to see messages just from the weather module
You should see some error, maybe 401
They have dropped support for the older 2.5 spikes, you need a 3.0 key which requires a credit card -
@sdetweil
YIKES !
I had changed the helper module to
"var url = “https://api.openweathermap.org/data/3.0/onecall?" +” as suggested in an earlier post. I also changed the config.js with weatherEndpoint: “forecast/daily”. It still did not work.
So i am not comfortable to use a credit card for the website. So does it mean curtains for this module as far as “Free” is concerned.? -
@Rags you didn’t need to edit the file
my erased comments were for the default weather module
yes, they give you 1000 api calls per day, no charge, but you must register a card
-
@sdetweil
I turned two more MMM-OpenWeatherMapForecast sections for a couple days and left it running. No issues that I could see. Your script seems to have fixed it. I’ll probably go back to 4 standard weather sections and one MMM-OpenWeatherMapForecast. Thank you for your help though.
Here are the logs.0|mm | > magicmirror@2.28.0 start
0|mm |
0|mm | [2024-08-01 21:20:05.292] [LOG] Loading config …
0|mm | [2024-08-01 21:20:05.299] [LOG] Loading module helpers …
0|mm | [2024-08-01 21:20:05.301] [LOG] No helper found for module: alert.
0|mm | [2024-08-01 21:20:05.310] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.312] [LOG] No helper found for module: clock.
0|mm | [2024-08-01 21:20:05.445] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.445] [LOG] Module helper loaded: calendar
0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
0|mm | [2024-08-01 21:20:05.479] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.771] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.772] [LOG] All module helpers loaded.
0|mm | [2024-08-01 21:20:05.782] [LOG] Starting server on port 8080 …
0|mm | [2024-08-01 21:20:06.923] [LOG] Server started …
0|mm | [2024-08-01 21:20:06.929] [LOG] Connecting socket for: calendar
0|mm | [2024-08-01 21:20:06.930] [LOG] Starting node helper for: calendar
0|mm | [2024-08-01 21:20:06.936] [LOG] Sockets connected & modules started …
0|mm | [2024-08-01 21:20:07.302] [LOG] Launching application.
0|mm | [2024-08-01 21:20:08.895] [INFO] System information:
0|mm | ### SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
0|mm | [2024-08-01 21:20:11.736] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-01 21:20:13.338] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.0|mm | > magicmirror@2.28.0 start
0|mm | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
0|mm |
0|mm | [2024-08-01 21:20:05.264] [LOG] Starting MagicMirror: v2.28.0
0|mm | [2024-08-01 21:20:05.292] [LOG] Loading config …
0|mm | [2024-08-01 21:20:05.295] [LOG] config template file not exists, no envsubst
0|mm | [2024-08-01 21:20:05.299] [LOG] Loading module helpers …
0|mm | [2024-08-01 21:20:05.301] [LOG] No helper found for module: alert.
0|mm | [2024-08-01 21:20:05.310] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.311] [LOG] Module helper loaded: updatenotification
0|mm | [2024-08-01 21:20:05.312] [LOG] No helper found for module: clock.
0|mm | [2024-08-01 21:20:05.445] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.445] [LOG] Module helper loaded: calendar
0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
0|mm | [2024-08-01 21:20:05.447] [LOG] No helper found for module: weather.
0|mm | [2024-08-01 21:20:05.479] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.479] [LOG] Module helper loaded: MMM-OpenWeatherMapForecast
0|mm | [2024-08-01 21:20:05.771] [LOG] Initializing new module helper …
0|mm | [2024-08-01 21:20:05.772] [LOG] Module helper loaded: MMM-SunRiseSet
0|mm | [2024-08-01 21:20:05.772] [LOG] All module helpers loaded.
0|mm | [2024-08-01 21:20:05.782] [LOG] Starting server on port 8080 …
0|mm | [2024-08-01 21:20:06.923] [LOG] Server started …
0|mm | [2024-08-01 21:20:06.926] [LOG] Connecting socket for: updatenotification
0|mm | [2024-08-01 21:20:06.927] [LOG] Starting module helper: updatenotification
0|mm | [2024-08-01 21:20:06.929] [LOG] Connecting socket for: calendar
0|mm | [2024-08-01 21:20:06.930] [LOG] Starting node helper for: calendar
0|mm | [2024-08-01 21:20:06.930] [LOG] Connecting socket for: MMM-OpenWeatherMapForecast
0|mm | [2024-08-01 21:20:06.931] [LOG] ====================== Starting node_helper for module [MMM-OpenWeatherMapForecast]
0|mm | [2024-08-01 21:20:06.932] [LOG] Connecting socket for: MMM-SunRiseSet
0|mm | [2024-08-01 21:20:06.933] [LOG] Starting node_helper for: MMM-SunRiseSet
0|mm | [2024-08-01 21:20:06.936] [LOG] Sockets connected & modules started …
0|mm | [2024-08-01 21:20:07.302] [LOG] Launching application.
0|mm | [2024-08-01 21:20:08.895] [INFO] System information:
0|mm | ### SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false
0|mm | ### OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.31+rpt-rpi-v8
0|mm | ### VERSIONS: electron: 31.1.0; used node: 20.14.0; installed node: 20.15.0; npm: 10.7.0; pm2: 5.4.1
0|mm | ### OTHER: timeZone: America/Los_Angeles; ELECTRON_ENABLE_GPU: undefined
0|mm | [2024-08-01 21:20:10.636] [LOG] Create new calendarfetcher for url: https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics - Interval: 7200000
0|mm | [2024-08-01 21:20:10.779] [LOG] Create new calendarfetcher for url: https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics - Interval: 7200000
0|mm | [2024-08-01 21:20:10.802] [INFO] updatenotification: Updater Class Loaded!
0|mm | [2024-08-01 21:20:10.803] [INFO] updatenotification: Checking PM2 using…
0|mm | [2024-08-01 21:20:10.981] [INFO] Checking git for module: MMM-OpenWeatherMapForecast
0|mm | [2024-08-01 21:20:11.025] [INFO] Checking git for module: MMM-SunRiseSet
0|mm | [2024-08-01 21:20:11.046] [INFO] Checking git for module: MagicMirror
0|mm | [2024-08-01 21:20:11.104] [INFO] updatenotification: [PM2] You are not using pm2
0|mm | [2024-08-01 21:20:11.736] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-01 21:20:13.338] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-01 23:20:12.320] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-01 23:20:15.036] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 01:20:12.733] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 01:20:16.007] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 03:20:13.161] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 03:20:16.894] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 05:20:13.547] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 05:20:17.909] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 07:20:13.922] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 07:20:18.813] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 09:20:14.301] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 09:20:19.727] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 11:20:14.714] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 11:20:20.683] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 13:20:15.100] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 13:20:21.534] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 15:20:15.498] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 15:20:22.471] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 17:20:15.885] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 17:20:23.362] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 19:20:16.281] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 19:20:24.207] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 21:20:16.685] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 21:20:25.164] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-02 23:20:17.133] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-02 23:20:26.039] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-03 01:20:17.538] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-03 01:20:26.948] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-03 03:20:17.938] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-03 03:20:27.814] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-03 05:20:18.339] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-03 05:20:28.745] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics.
0|mm | [2024-08-03 07:20:18.699] [INFO] Calendar-Fetcher: Broadcasting 5 events from https://ics.calendarlabs.com/76/mm3137/US_Holidays.ics.
0|mm | [2024-08-03 07:20:29.567] [INFO] Calendar-Fetcher: Broadcasting 122 events from https://calendar.google.com/calendar/ical/mycalhex%40group.calendar.google.com/private-number/basic.ics. -
-
@jfields cool, thanks for the feedback. . I’ll submit a pull request to fix the base
-
You can limit your calls as well. For example, I have mine set to 2,000. I get the 1,000 for free, and allow for another 1,000. This happened once while I was troubleshooting my issue here. I got to just over 1,900 calls total and the charge was $1.35 USD. You can set the max call limit to whatever you want.
-
@jfields very helpful, thanks