• 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.

MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast

Scheduled Pinned Locked Moved Utilities
256 Posts 55 Posters 427.8k Views 57 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
    sdetweil @bassin12
    last edited by Aug 29, 2022, 2:10 PM

    @bassin12 also the code block start (the 3 backtics) must be on the start of the line

    I edited your post to fix that

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    S 1 Reply Last reply Aug 29, 2022, 2:14 PM Reply Quote 0
    • S Offline
      sdetweil @sdetweil
      last edited by Aug 29, 2022, 2:14 PM

      @bassin12

      my config , both work (and the default weather module in both current and forecast mode)

      {
      		module: "MMM-OpenWeatherForecast",
      		position: "top_right",
      		header: "Wettervorschau Schama",
      		config: {
      			apikey: "xxxx",
      			latitude: 49.039349,
      			longitude: 11.847070,
      			units:"metric",
      			iconset: "4c",
      			colored: true,
      			concise: true
      		}
      },
      		{
      			module: "MMM-OpenWeatherMapForecast",
      			header: "Weather",
      			position: "top_left",
      			classes: "default everyone",
      			disabled: false,
      			config: {
      				apikey: "..",
      				latitude: "51.506130",
      				longitude: "-0.090270",
      				iconset: "4c",
      				concise: false,
      				forecastLayout: "table"
      			}
      		},
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Aug 29, 2022, 2:22 PM Reply Quote 0
      • B Offline
        bassin12 @sdetweil
        last edited by Aug 29, 2022, 2:22 PM

        @sdetweil
        When I try the code in the config.js I get this in the logs

        [29.08.2022 10:22.03.630] [LOG] [MMM-OpenWeatherMapForecast] 29-Aug-22 10:22 ** ERROR ** null
        [29.08.2022 10:22.03.639] [LOG] [MMM-OpenWeatherForecast] 29-Aug-22 10:22 ** ERROR ** Error: Request failed with status code 401

        S 1 Reply Last reply Aug 29, 2022, 2:24 PM Reply Quote 0
        • S Offline
          sdetweil @bassin12
          last edited by Aug 29, 2022, 2:24 PM

          @bassin12 said in MMM-OpenWeatherForecast - Replacement for MMM-DarkSkyForecast:

          [29.08.2022 10:22.03.630] [LOG] [MMM-OpenWeatherMapForecast] 29-Aug-22 10:22 ** ERROR ** null

          yes, bug in his code…

          use the code I posted on page one to extend the error reporting

          but it returns 401 as well…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • D Offline
            DDE12
            last edited by Nov 13, 2022, 5:42 AM

            Is there a solution for this error? Is it something I’ve done or something in the module code?

            [MMM-OpenWeatherForecast] 12-Nov-22 23:49 ** ERROR ** Error: Request failed with status code 401

            S 1 Reply Last reply Nov 13, 2022, 12:39 PM Reply Quote 0
            • S Offline
              sdetweil @DDE12
              last edited by Nov 13, 2022, 12:39 PM

              @DDE12 401 eror is unauthorized

              so the apikey you are using has expired

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 1 Reply Last reply Nov 13, 2022, 6:00 PM Reply Quote 0
              • D Offline
                DDE12 @sdetweil
                last edited by Nov 13, 2022, 6:00 PM

                @sdetweil
                I setup the default weather module with OpenWeather and it is working with the key I have. I obtained the key a few days ago. Is it the same key for MMM-OpenWeatherForecast?

                S 1 Reply Last reply Nov 13, 2022, 6:01 PM Reply Quote 0
                • S Offline
                  sdetweil @DDE12
                  last edited by sdetweil Nov 13, 2022, 6:08 PM Nov 13, 2022, 6:01 PM

                  @DDE12 no idea

                  the module says go here
                  https://home.openweathermap.org/users/sign_up
                  the default weather openWeathermap provide says
                  https://home.openweathermap.org/users/sign_in

                  so it would seem the same key

                  the module uses this path

                  https://api.openweathermap.org/data/2.5/onecall?"
                  

                  the default module uses this

                  		apiVersion: "2.5",
                  		apiBase: "https://api.openweathermap.org/data/"
                                          +apiVersion+"onecall?"
                  

                  so, they appear the same

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  D 1 Reply Last reply Nov 13, 2022, 6:35 PM Reply Quote 0
                  • D Offline
                    DDE12 @sdetweil
                    last edited by Nov 13, 2022, 6:35 PM

                    @sdetweil
                    I put in a new key just to see but still have the same 401 error. When I installed the module I got

                    npm WARN old lockfile
                    npm WARN old lockfile The package-lock.json file was created with an old version of npm,
                    npm WARN old lockfile so supplemental metadata must be fetched from the registry.
                    npm WARN old lockfile
                    npm WARN old lockfile This is a one-time fix-up, please be patient...
                    npm WARN old lockfile
                    
                    added 4 packages, and audited 391 packages in 50s
                    
                    1 package is looking for funding
                      run `npm fund` for details
                    
                    39 vulnerabilities (2 low, 15 moderate, 19 high, 3 critical)
                    
                    To address all issues, run:
                      npm audit fix
                    
                    Run `npm audit` for details.
                    

                    I did not run audit fix. Is there something that I need to do with the install?

                    S 1 Reply Last reply Nov 13, 2022, 6:49 PM Reply Quote 0
                    • S Offline
                      sdetweil @DDE12
                      last edited by Nov 13, 2022, 6:49 PM

                      @DDE12 NEVER run audit fix…

                      i don’t know why the MMM-OpenWeatherForecast is failing ,
                      other than it says unauthorized. i would open an issue for the author.

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 13
                      • 14
                      • 15
                      • 16
                      • 17
                      • 25
                      • 26
                      • 15 / 26
                      • 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