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.

    Weather Module

    Scheduled Pinned Locked Moved Solved Troubleshooting
    7 Posts 2 Posters 631 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.
    • S Offline
      Sebi76 0
      last edited by

      My Weather does not work. Whats wrong?

      	{
      			module: "weather",
      			position: "top_right",
      			header: "Wetter",
      			config: {
      				weatherProvider: "openweathermap",			  
      			    apiBase: "https://api.openweathermap.org/data/",  			  
       	         	apikey: "xxxxxxxxxxxxxxxxxxxxxxxxx", //Home_MM Api	
       	         	locationID: "2876865",
       	      	    lat: 51.676380,            //number works here
       	      	    lon: 8.346650,          //so does a string
       	      	    weatherEndpoint: '/onecall',
      				type: "current",
      				apiVersion: '3.0'
      				
      			}
      		},
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @Sebi76 0
        last edited by

        @Sebi76-0 misspelled

        apikey 
        

        should be

        apiKey
        

        MagicMirror is case sensitive

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Sebi76 0
          last edited by

          @Sebi76-0 did you get the new apikey? requires a credit card

          also see

          https://forum.magicmirror.builders/topic/19323/version-2-30-0-weather-module-stuck-loading-worked-fine-before-upgrade

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            Sebi76 0 @sdetweil
            last edited by

            @sdetweil

            Yes.
            It works with MMM-OpenWeatherMapForecast, but not with the regular Weather Module

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @Sebi76 0
              last edited by

              @Sebi76-0 ok, take off the apibase, endpoint options

              start MagicMirror like this

              npm run start:dev

              in the developers window console tab, put weath in the filter field and see if there are any errors reported

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                Sebi76 0
                last edited by

                This is an Error

                weather.js:164 New weather information available.
                weather.js:169 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'replace')
                    at Class.updateAvailable (weather.js:169:106)
                    at Class.updateAvailable (weatherprovider.js:104:17)
                    at openweathermap.js:47:24
                    at <anonymous>
                updateAvailable @ weather.js:169
                updateAvailable @ weatherprovider.js:104
                (anonymous) @ openweathermap.js:47
                
                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @Sebi76 0
                  last edited by

                  @Sebi76-0 misspelled

                  apikey 
                  

                  should be

                  apiKey
                  

                  MagicMirror is case sensitive

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    Sebi76 0
                    last edited by

                    i julaughingst . Youre Right!Thanks. Little Misstakes

                    1 Reply Last reply Reply Quote 0
                    • S sdetweil has marked this topic as solved on
                    • 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