MagicMirror² v2.8.0 is available! For more information about this release, check out this topic.

MMM-Myweather doesn't work, only black screen



  • Dear all,

    I installed currently the MMM-myweather module but it wont work.
    I only see a black space were it should look. Can someone help me?

    code_text
    modules: [
    		{
    			module: "alert",
    		},
    		{
        		  module: 'MMM-MyWeather',
        		  position: 'top_left',
        		  config: {
          		    	apikey: "####", // private; don't share!
          		    	lat: '51.95', // Culemborg, NL ;)
          		    	lon: '5.23', // use the quotes! 
          		    	hourly: '1',
          		    	fctext: '1',
          		    	fcdaycount: "5",
          		    	fcdaystart: "0",
          		    	hourlyinterval: "3",
          		    	hourlycount: "2",
          		    	alerttime: 10000,
          		    	alerttruncatestring: "english:",
          		    	roundTmpDecs: 1,
          		    	UseCardinals: 0,
          		    	layout: "horizontal",
        			}
      		},
    


  • @matsjanssen open the developers window, ctrl-shift-i, and select the console tab, and scroll up to find any errors, (red text)…

    also, the module names are case sensitive , so check that ‘MMM-myweather’ exactly matches what was installed in the mm/modules folder, and specified in config.js



  • I see some red text but don’t know how to fix it.

    weatherforecast is suspended.
    api.openweathermap.org/data/2.5/forecast/daily?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
    weatherforecast.js:266 weatherforecast: Your AppID does not support long term forecasts. Switching to fallback endpoint.
    weatherRequest.onreadystatechange @ weatherforecast.js:266
    3api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    weatherforecast.js:279 GET https://api.openweathermap.org/data/2.5/forecast?id=5128581&units=metric&lang=en&APPID=YOUR_OPENWEATHER_API_KEY 401 (Unauthorized)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    setTimeout (async)
    scheduleUpdate @ weatherforecast.js:399
    weatherRequest.onreadystatechange @ weatherforecast.js:275
    XMLHttpRequest.send (async)
    updateWeather @ weatherforecast.js:279
    (anonymous) @ weatherforecast.js:400
    


  • @matsjanssen openweather gives different keys for different things. 4 day vs long term the key u have cannot get the weather info u asked for. Error=401.

    Not authorized.

    Update your key