• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Version 2.30.0 weather module, stuck loading, worked fine before upgrade

Scheduled Pinned Locked Moved Troubleshooting
43 Posts 5 Posters 4.4k Views 5 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 Away
    sdetweil @Richard238
    last edited by Feb 3, 2025, 12:11 PM

    @Richard238 all config goes in config.js
    Never need to edit any other file

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    R 1 Reply Last reply Feb 3, 2025, 12:46 PM Reply Quote 0
    • R Offline
      Richard238 @sdetweil
      last edited by Feb 3, 2025, 12:46 PM

      @sdetweil

      openweathermap.js is unchanged

      WeatherProvider.register("openweathermap", {
      
      
      	providerName: "OpenWeatherMap",
      
      	// Set the default config properties that is specific to this provider
      	defaults: {
      		apiVersion: "3.0",
      		apiBase: "https://api.openweathermap.org/data/",
      		// weatherEndpoint is "/onecall" since API 3.0
      		// "/onecall", "/forecast" or "/weather" only for pro customers
      		weatherEndpoint: "/onecall",
      		locationID: false,
      		location: false,
      		// the /onecall endpoint needs lat / lon values, it doesn't support the locationId
      		lat: 0,
      		lon: 0,
      		apiKey: ""
      	},
      
      
      config.js shows
      
      
      	{
      		module: 'weather',
      		header: 'Current zzzzzzzzzzzzzzzz  weather: ',			
      		position: 'top_right',
      		config: {
      			//weatherProvider: "openweathermap",
      			providerName: "OpenWeatherMap",
      			type: "current",
      			lat: nnnnnnnnnnn,
      			lon: -nnnnnnnnnnnnn,
      			apiKey: "aaaaaaaaaaaaaaaaaaaaaaaaaaa"
      			//type: 'current',
      			//location: 'xxxxxxxxxxxxxx',
      			//locationID: 'zzzzzzzz',  //ID from https://www.openweathermap.org
      			//apiKey: 'aaaaaaaaaaaaaaaaaaaaaaaaaaa'
      		}
      	},
      
      S 1 Reply Last reply Feb 3, 2025, 12:53 PM Reply Quote 0
      • S Away
        sdetweil @Richard238
        last edited by Feb 3, 2025, 12:53 PM

        @Richard238

        providerName: “OpenWeatherMap”

        That is not the correct property name

        From the doc
        https://docs.magicmirror.builders/modules/weather.html#usage
        IMG_0721.png

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Feb 3, 2025, 3:32 PM Reply Quote 0
        • R Offline
          Richard238 @sdetweil
          last edited by Feb 3, 2025, 3:32 PM

          @sdetweil

          With no caps? Still doesn’t work.

          config: {
          				weatherProvider: "openweathermap",
          
          S 1 Reply Last reply Feb 3, 2025, 3:37 PM Reply Quote 0
          • S Away
            sdetweil @Richard238
            last edited by sdetweil Feb 3, 2025, 3:38 PM Feb 3, 2025, 3:37 PM

            @Richard238 again show the whole config, xxx out the api key

            Start w
            position
            and config
            provider
            type ( default is current)
            apikey
            lat
            lon

            the 3.0 apikey requires a credit card backing, right?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Feb 3, 2025, 3:42 PM Reply Quote 0
            • R Offline
              Richard238 @sdetweil
              last edited by Feb 3, 2025, 3:42 PM

              @sdetweil

              		{
              			module: 'weather',
              			header: 'Current zzzzzzzzzzzzz  weather: ',			
              			position: 'top_right',
              			config: {
              				weatherProvider: "openweathermap",
              				lat: 111111111111111, 
              				lon: 1111111111111111111111,
              				apiKey: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
              				type: 'current',
              				units: 'config.units'
              				//location: 'zzzzzzzzzzzzzzz',
              		}
              		},
              
              

              I must have had that API key for aeons, don’t ever remember it having a c/card behind it.
              Maybe it’s out-of-date.

              S 1 Reply Last reply Feb 3, 2025, 4:06 PM Reply Quote 0
              • S Away
                sdetweil @Richard238
                last edited by Feb 3, 2025, 4:06 PM

                @Richard238 yes they told us the old free api was being terminated. only the new api exists, so we changed the defaults

                but other users have reported the 2.5 apikey still works
                see the 1st post on this topic

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • S sdetweil referenced this topic on Feb 7, 2025, 6:31 PM
                • S sdetweil referenced this topic on Mar 5, 2025, 7:32 PM
                • R Offline
                  Rberry91 @sdetweil
                  last edited by Mar 7, 2025, 7:59 PM

                  @sdetweil hi Sam,

                  I have added a credit card and added the extra codes from the article and it doesn’t load.20250308_055711.jpg

                  S 1 Reply Last reply Mar 7, 2025, 8:43 PM Reply Quote 0
                  • S Away
                    sdetweil @Rberry91
                    last edited by Mar 7, 2025, 8:43 PM

                    @Rberry91 if you have the 3.0 apikey you dont add any extra parms

                    just type, apikey, lat and lon

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Mar 8, 2025, 10:06 PM Reply Quote 0
                    • R Offline
                      Rberry91 @sdetweil
                      last edited by Mar 8, 2025, 10:06 PM

                      @sdetweil
                      It still says invalid date

                      20250309_080117.jpg 20250309_080401.jpg

                      Sorry so many questions

                      S 1 Reply Last reply Mar 8, 2025, 10:28 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 3 / 5
                      3 / 5
                      • First post
                        24/43
                        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