Read the statement by Michael Teeuw here.
"Invalid Date" appears in Weather module. MM v2.29.0
-
@VinGroot awesome
-
-
I have rebuilt my installation and used backup .js files.
Everything has worked apart from the weather module.
I am getting the ‘Invalid date’ message a temperature of NaN.
I have tried adding the apiVersion: ‘2.5’
weatherEndpoint: “/weather”Lines into the config.js file but then MagicMirror doesn’t load.
the section of config.sys is:
{ module: "weather", position: "top_right", config: { weatherProvider: "openweathermap", type: "current", location: "Machat", locationID: "2983291", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "cxxxxxxxxxxxx57f81f9d82849a2fc21a" } }, { module: "weather", position: "top_right", header: "Weather Forecast", config: { weatherProvider: "openweathermap", type: "forecast", location: "Machat", locationID: "2983291", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city apiKey: "cxxxxxxx57f81f9d82849a2fc21a" } },
-
@lif are you on 2.29 or 2.30?
cd ~/MagicMirror grep version package. json
-
@lif said in "Invalid Date" appears in Weather module. MM v2.29.0:
> I have tried adding the apiVersion: '2.5' > weatherEndpoint: "/weather"
each of those lines had trailing commas, right?
-
@sdetweil said in "Invalid Date" appears in Weather module. MM v2.29.0:
@lif said in "Invalid Date" appears in Weather module. MM v2.29.0:
> I have tried adding the apiVersion: '2.5' > weatherEndpoint: "/weather"
each of those lines had trailing commas, right?
Not that line but that wasn’t the problem :-)
Thanks for the link showing how to subscribe to OpenWeathermap which solved the problem.
-