Read the statement by Michael Teeuw here.
Wheather/ Wunderground not loading
-
Hi guys,
after a while of operation (https://forum.magicmirror.builders/topic/6101/my-1st-mm-project-as-a-noob-1-2m-x-0-6m-with-22-display?page=1) my wheather is not loading anymore on my mirror.
Sometimes I had to rebbot the mirror several times to get it started - now the wheater module is not loading anymore? Any hints for a noob to check?
Config:
{module: ‘MMM-WunderGround’,
position: ‘top_right’,
config: {
apikey: ‘xxxxxxxxxxxx’,
pws: ‘xxxxxxxxxxxxx’,hourly: ‘1’,
fctext: ‘1’,
fcdaycount: “4”,
fcdaystart: “0”,
hourlyinterval: “3”,
hourlycount: “2”,
alerttime: 10000,
alerttruncatestring: “english:”,
roundTmpDecs: 1,
coloricon: true,
daily:1,
iconset: “colourful”,
UseCardinals: 0,
layout: “horizontal”,
debug: 1,
sysstat: 0
}
With the command npm start dev I see following error:
{
“response”: {
“version”:“0.1”,
“termsofService”:“http://www.wunderground.com/weather/api/d/terms.html”,
“features”: {
}
,
“error”: {
“type”: “invalidkey”
,“description”: “this key is not valid due to exceeding rate plan”
}
}
}MMM-WunderGround.js:821 Uncaught TypeError: Cannot read property ‘estimated’ of undefined
at Class.processWeather (MMM-WunderGround.js:821)
at Class.socketNotificationReceived (MMM-WunderGround.js:1249)
at module.js:183
at r. (socketclient.js:25)
at r.emit (index.js:133)
at r.onevent (socket.js:270)
at r.MMSocket.self.socket.onevent (socketclient.js:19)
at r.onpacket (socket.js:228)
at r. (index.js:21)
at r.emit (index.js:133)Any ideas?
Thanks, Chris -
@chris1971 said in Wheather/ Wunderground not loading:
,“description”: “this key is not valid due to exceeding rate plan”
there it is…
looking thru google for that error, it is common, but then key becomes disabled… sounds like permanently…
only a new key will work…“I have seen in forums that when the usage exceeds limit the key will be disabled”
looks like the modules doesn’t handle the error
-
Thanks for the info - how can I implement another key in the module? Do I have to install a new weather module or is Wunderground working with another API key?
-
@chris1971 u would have to to weatherunderground and get a new key. Note that free keys no longer exist.
Old ones still work for a while I think
-
WU does not supply new API keys for free - I am looking for an opportunity only to change tie PAKi key in teh confis - an leaf the rest as it is. I was happy to have my mirrior confugured as it is… ;-)
-
@chris1971 I understand… but this is not possible… thus the number of new weather modules using other ‘free’ apis…
-
Thanks - then I have to try another module and update MM2…
Hope it works out…
-
The API was shut down. Heres the official statement (from: https://feedback.weather.com/customer/en/portal/articles/2970681-my-weather-underground-api-key-has-been-disabled-why-?b_id=17298)
***My Weather Underground API key has been disabled. Why?
The Weather Underground’s API has been retired. Keys have been closed down on a rolling basis since February 15, 2019. It will close down completely shortly. Information about this has been available through the API itself and online for nearly a year.
If you are a contracted, paying customer and feel you have been shut off in error, please click the blue ‘email us’ button below.
If you would like to explore paid plans on The Weather Company’s enterprise-grade API, please follow this link and fill out the form on that page.
At this time we do not anticipate offering free, ongoing “developer” level keys to The Weather Company’s API.
Thank you for your support of the Weather Underground API.***
Alternatives?
-
Thanks.
Does anyone have suggestions on the next best alternative? I feel like weather underground was relatively accurate, unlike some of the other options out there.
-
@kasperb: I will give this module a try:
https://github.com/cowboysdude/MMM-NOAA3
It has several options for placing API (weatherdata). So if one closes - i can switch to the next if needed…
I installed it today so i cannot say if the data (from weatherbit.io in my case) is reliable…
-
@Medo et al,
You can also use the darksky api with NOAA3. I find this to be very accurate for my location
-
I have found that DarkSkyForecast has been an excellent replacement for the Wunderground module. Format and display looks very similar. I have been using it for a few weeks and I am very happy with it. API keys for DarkSky are free for up to 1000 calls a day. So if you refresh the weather every 15 mins, thats only 96 calls a day.
Check it out
https://forum.magicmirror.builders/topic/9181/mmm-darkskyforecast-yet-another-weather-module -
@Medo - Yeah, my free API key was shut down last week.
-
I migrated my MMM-WunderGround24Hours module also to use the Dark Sky API and it is now available at https://github.com/thobach/MMM-DarkSky24Hours. The migration was super easy.
-
This post is deleted! -
@bhepler
May be missing the mark here, but what I’m seeing is if you had a key w/weatherunderground, it’s definitely gone. However, generating keys seems to still be an option. Perhaps I’m grandfathered in.Mine isn’t loading either. With newly (longer) generated api key from WU api-key form, there’s documentation showing weather.com returning content. New URL and json below. I’ll try to see about adjusting code to handle new response. I’m new to this module and may not have time for a few days. Hope this helps and if someone could verify that’d be especially helpful.
{“observations”:[{“stationID”:“KMAHANOV10”,“obsTimeUtc”:“2019-03-27T03:17:53Z”,“obsTimeLocal”:“2019-03-26 23:17:53”,“neighborhood”:“1505Broadway”,“softwareType”:“Rainwise IP-100”,“country”:“US”,“solarRadiation”:null,“lon”:-70.86485291,“realtimeFrequency”:null,“epoch”:1553656673,“lat”:42.09263229,“uv”:null,“winddir”:270,“humidity”:71,“qcStatus”:1,“imperial”:{“temp”:24,“heatIndex”:24,“dewpt”:16,“windChill”:24,“windSpeed”:0,“windGust”:0,“pressure”:30.30,“precipRate”:0.00,“precipTotal”:0.00,“elev”:104}}]}
-
Yes with the new API key you get current weather data and also forecast. However, most variables have changed their name and you have to adjust the code of “MMM-WunderGround.js” and “node_helper.js”.
Examples:
apiBase old: “http://api.wunderground.com/api/”
apiBase new: “https://api.weather.com/”forecast old: “http://api.wunderground.com/api/yourApiKey/conditions/hourly/forecast10day/astronomy/alerts/lang:DL/q/pws:ISAFENWI13.json”
forecast new: "https://api.weather.com/v3/wx/forecast/daily/5day?postalKey=81657:US&units=e&language=en-US&format=json&apiKey=yourApiKey
"
Variables:old: wind_mph
new: windspeedold: relative_humidity
new: relativeHumidityThe effort to rewrite the existing code is very large, unfortunately I’m not a programmer :(
greetings from Switzerland
Peter
(translated with Google)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login