• 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.5k 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 sdetweil Feb 2, 2025, 12:47 PM Feb 2, 2025, 12:46 PM

    @Richard238 two instances, type: as appropriate. NO endpoint setting. The v3 openweather api only supports /onecall (already set as default)
    https://forum.magicmirror.builders/post/123079
    The config.js.sample shows two instances

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • R Offline
      Richard238
      last edited by Feb 2, 2025, 2:57 PM

      @sdetweil said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:

      ionToHeader: false

      default config sample works, but that’s using openmeteo, not openweathermap, is that correct?

      		{
      			module: "weather",
      			position: "top_right",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "current",
      				lat: 40.776676,
      				lon: -73.971321
      			}
      		},
      		{
      			module: "weather",
      			position: "top_right",
      			header: "Weather Forecast",
      			config: {
      				weatherProvider: "openmeteo",
      				type: "forecast",
      				lat: 40.776676,
      				lon: -73.971321
      			}
      		},
      		{
      

      openweathermap.js I have as

      		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",
      
      S 1 Reply Last reply Feb 2, 2025, 4:11 PM Reply Quote 0
      • S Away
        sdetweil @Richard238
        last edited by sdetweil Feb 2, 2025, 4:22 PM Feb 2, 2025, 4:11 PM

        @Richard238 leave off those parms. Defaults to 3.0 etc

        Just put in your 3.0 apikey and lat/lon
        And of course set the provider

        Sam

        How to add modules

        learning how to use browser developers window for css changes

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

          @sdetweil said in Version 2.30.0 weather module, stuck loading, worked fine before upgrade:

          leave off those parms.

          Which ones, sorry?

          S 1 Reply Last reply Feb 2, 2025, 6:00 PM Reply Quote 0
          • S Away
            sdetweil @Richard238
            last edited by Feb 2, 2025, 6:00 PM

            @Richard238 all the openweather ones you showed

            Sam

            How to add modules

            learning how to use browser developers window for css changes

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

              @sdetweil

              This gives the ‘undefined, invalid date’ error on the MM

              		{
              			module: 'weather',
              			header: 'Current xxxxxxxxxxxxxxx  weather: ',			
              			position: 'top_right',
              			config: {
              				weatherProvider: "openweathermap",
              				lat: 11111111, 
              				lon:   2222222,
              				apiKey: "33333333333"
              
              			}
              		},
              
              S 1 Reply Last reply Feb 2, 2025, 10:33 PM Reply Quote 0
              • S Away
                sdetweil @Richard238
                last edited by sdetweil Feb 2, 2025, 10:38 PM Feb 2, 2025, 10:33 PM

                @Richard238 and you used real lat/lon

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 2 Replies Last reply Feb 3, 2025, 8:31 AM Reply Quote 0
                • R Offline
                  Richard238 @sdetweil
                  last edited by Feb 3, 2025, 8:31 AM

                  @sdetweil

                  Yes, real Lat:Lon used

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

                    @sdetweil

                    Do the L:L and API key live in the openweathermap.js file, or the config.js file? Or both?

                    S 1 Reply Last reply Feb 3, 2025, 12:11 PM Reply Quote 0
                    • 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
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 2 / 5
                      2 / 5
                      • First post
                        12/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