Read the statement by Michael Teeuw here.
Trouble Integrating MMM-OpenWeatherMapForecast with OpenWeather API v3.0
-
@sdetweil
Also wanted to let you know I am using one openweather api for a different module in mm and thats working fine, only this module its not working, the module wont even show up on mm screen. -
@Socrates I took your config, used my v3 apikey and it works…
-
@sdetweil
hello and good evening again. No i do not have a credit card on file with Openweathermap. Its a free tier.
Also, may i request you to guide me where to find the output file? I have mm on auto start while rebooting -
@sdetweil
So do i need to sign up for a paid API using a credit card? Or do u think there is an inconsistency with my MMM-OWMF module? I have made the changes to the node_helper.js file just as you suggested and restarted MM, still no avail. -
@Socrates i believe the 3.0 free tier also requires a credit card on file…
they give you 1000 calls no charge per day, but if you go over they charge you
see the link ‘Pay as you call’(vs prevent the api from working)
this is new for 3.0
the linked pages says'One Call API 3.0 is included to the “One call by call” subscription plan only, users pay for the actual use of the product. '
if you are using pm2 to autolaunch then the output will be here
pm2 logs --lines=xxxx
where xxxx is the number of the most recent lines of the log to display,
default 15you may need more
I always recommend using manual start mode while debugging, this makes the output easier to access
pm2 status
will show the running apps
pm2 stop all
will stop them all
manual start
cd ~/MagicMirror npm start
ctrl-c at the terminal or
ctrl-q on the mm screen to stop mmonce things are resolved
pm2 status pm2 start x
where x is the number of the line for the app to start or the name on that line
0 or MagicMirror as shown below on one of my systems┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐ │ id │ name │ mode │ ↺ │ status │ cpu │ memory │ ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤ │ 0 │ MagicMirror │ fork │ 5 │ online │ 0% │ 2.5mb │ └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
-
@Socrates said in Trouble Integrating MMM-OpenWeatherMapForecast with OpenWeather API v3.0:
restarted MM, still no avail.
all that change did was output the status code to the log , instead of the empty error
so, the log output will tell you
Im sure its 401I hacked my apikey , and this is what the line should look like in the log
[2024-09-09 21:49:07.454] [LOG] [MMM-OpenWeatherMapForecast] 9-Sep-24 21:49 ** ERROR ** 401
-
Sounds good, its getting very late here in Houston, I will check this in the morning, add a credit card on file with OpenWeather and subscribe to a v3.0 api, make the changes accordingly and let u know in the morning. Thanks again for helping me out with this.
-
Ok, before i go to sleep i had to do this.
I added a credit card on openweather and subscribed for the plan.
created a new api, and added it to the owmf module config file.restarted mm, and navigated to the log file, and i see this…
[2024-09-10 00:52:18.498] [LOG] [MMM-OpenWeatherMapForecast] 10-Sep-24 00:52 ** ERROR ** 401
[2024-09-10 00:52:18.526] [INFO] .
[2024-09-10 00:52:18.527] [INFO] Beginning of Update Data:
[2024-09-10 00:52:18.529] [INFO] .
[2024-09-10 00:52:18.544] [INFO] { -
@sdetweil
Sorry to keep nagging you. But today morning when i started troubleshooting MM, i see the Weather title bar show up, but the whole module per say is loading.
I have the credit card on file with openweather, and have subscribed to v3.0 api -
@Socrates can you show the log output?