Read the statement by Michael Teeuw here.
MMM-AccuWeatherForecastDeluxe stuck loading.
-
Hi everyone!
Newbie here, running MagicMirror2 as a Docker container on my Unraid server, accessing it with a web browser.
So far, so good, just having issues with the MMM-AccuWeatherForecastDeluxe module stuck on “Loading …” forever.
Yes, I have an API key, and as far as I can tell, it works. If I look under the server logs, I can see that the module does hit the service URL and pull down the entire forecast data that it throws into a [LOG] entry, so I don’t think this is a credentials issue. It just seems like the module isn’t parsing the data and doing anything with it?
Any tips to figuring out what I’m possibly doing wrong?
The log entry starts with:
[LOG] [MMM-AccuWeatherForecastDeluxe] url data:
and is followed by a wall of text that is the actual data.
Thanks for any help!
-
Hi there
Same issue in my case. Apparently the API Key is running since I receive the data. If I use “npm run start:dev” I see the error takes place on (see the line with “HERE THE ERROR”) in the file MMM-AccuWeatherForecastDeluxe.js
processWeatherData: function() { console.log(this.name, 'processWeatherData', this.weatherData.Headline.Text); var summary = this.weatherData.Headline.Text;
//TODO: call hourly API
var hourlies = [];
if (this.config.showHourlyForecast) {var displayCounter = 0; var currentIndex = this.config.hourlyForecastInterval; while (displayCounter < this.config.maxHourliesToShow) { HERE THE ERROR - if (this.weatherData.hourly[currentIndex] == null) { break; }
[…]
Any help on that will be really appreciated