MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Myweather doesn't work, only black screen

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    4 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      matsjanssen
      last edited by

      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",
          			}
        		},
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @matsjanssen
        last edited by

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • M Offline
          matsjanssen
          last edited by

          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
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @matsjanssen
            last edited by

            @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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Sam, technical setup by Karsten.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy