• 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 Error 401

Scheduled Pinned Locked Moved Unsolved Troubleshooting
15 Posts 4 Posters 2.5k Views 4 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.
  • V Offline
    Vauxdvihl
    last edited by Jun 14, 2024, 8:40 AM

    Hi all,
    i am getting crazy to bring this module to work.
    I always get the Error Message
    “Request failed with status 401”

    What have i done so far:

    • check if the api code works
    api.openweathermap.org/data/2.5/weather?q=peshawar&appid=API_key
    

    Works perfect ( in meanwhile i have 3 api codes = > all of them works fine)

    • change in the “MMM-OpenWeatherForecast.js” the version from 2.5 to 3.0

    Is there sonthings else what i can do

    Thanks for your help
    BR

    S K 2 Replies Last reply Jun 14, 2024, 11:45 AM Reply Quote 0
    • S Online
      sdetweil @Vauxdvihl
      last edited by Jun 14, 2024, 11:45 AM

      @Vauxdvihl yes openweather announced that they have terminated support for the 2.5 api and keys

      you must now get a v3 key, which
      requires supplying a credit card.
      the 1st 1000 requests a day are not charged, according to their Web pages

      you must also use the /onecall endpoint.
      we will update the module for the July 1 release

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 1
      • V Offline
        Vauxdvihl
        last edited by Jun 14, 2024, 11:55 AM

        Ok
        Somehow strange
        The API key in the default weather module works
        Thx for your feedback

        S 1 Reply Last reply Jun 14, 2024, 11:59 AM Reply Quote 0
        • S Online
          sdetweil @Vauxdvihl
          last edited by Jun 14, 2024, 11:59 AM

          @Vauxdvihl 401 is access denied.

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • K Offline
            KristjanESPERANTO Module Developer @Vauxdvihl
            last edited by Jun 16, 2024, 10:48 AM

            @Vauxdvihl Are you using the fork from Tom-Hirschberger?

            V 1 Reply Last reply Jun 16, 2024, 5:42 PM Reply Quote 0
            • V Offline
              Vauxdvihl @KristjanESPERANTO
              last edited by Jun 16, 2024, 5:42 PM

              @KristjanESPERANTO
              No…hmm i don’t know
              Can you guide me?
              Thx

              K 1 Reply Last reply Jun 17, 2024, 10:38 AM Reply Quote 0
              • V Offline
                Vauxdvihl
                last edited by Jun 16, 2024, 6:03 PM

                For this is also really spuky
                Using the default weather module with my api key
                Config “OpenweatherMap”
                Everything runs fine
                Using the “MMM-OpenWeatherMapForecast” i get the error meassage 401
                Strange…

                K 1 Reply Last reply Jun 20, 2024, 4:41 AM Reply Quote 0
                • K Offline
                  KristjanESPERANTO Module Developer @Vauxdvihl
                  last edited by Jun 17, 2024, 10:38 AM

                  @Vauxdvihl said in MMM-OpenWeatherForecast Error 401:

                  Can you guide me?

                  Try git remote -v in the module’s directory.

                  V 1 Reply Last reply Jun 17, 2024, 6:15 PM Reply Quote 0
                  • V Offline
                    Vauxdvihl @KristjanESPERANTO
                    last edited by Jun 17, 2024, 6:15 PM

                    @KristjanESPERANTO
                    no change
                    Still error

                    S 1 Reply Last reply Jun 17, 2024, 6:24 PM Reply Quote 0
                    • S Online
                      sdetweil @Vauxdvihl
                      last edited by sdetweil Jun 17, 2024, 6:25 PM Jun 17, 2024, 6:24 PM

                      @Vauxdvihl that command will output which repo the module came from

                      please show the output

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      V 1 Reply Last reply Jun 17, 2024, 6:48 PM Reply Quote 1
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        1/15
                        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