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.

    Openweathermap api works for 2 of my modules but not for Hourly

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    9 Posts 2 Posters 622 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.
    • H Offline
      hengy
      last edited by

              module: "weather",
              position: "top_right",
              header: "Hourly",
              config: {
                      weatherProvider: "openweathermap",
                      type: 'hourly',
                      apiKey: "new api key",
                      units: "imperial",
                      maxEntries: 10,
                      fadePoint: 0.12,
      	    showPrecipationAmount: true,
      	    AnimationSpeed: 1000,
                      ignoreToday: true,
                      colored: true,
                      fade: false,
                      timeFormat: 12,
                      showFeelsLike: true,
                      lat: 40.7128,
                      lon: -74.0060,
      	}
      

      I’ve got a new api key, just replaced the old one. It was working fine. Any ideas why this might not be working?

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

        @hengy hourly uses the /onecall endpoint, and I think the new apikey ONLY works with the v3.0 api on onecall

        SO,

        in config for hourly set

        apiVersion :'3.0'
        

        it defaults to 2.5 til next release

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        H 1 Reply Last reply Reply Quote 0
        • H Offline
          hengy @sdetweil
          last edited by sdetweil

          @sdetweil

          I’ve added it here. No luck.

          {
          module: "weather",
                  position: "top_right",
                  header: "Hourly",
                  config: {
                          weatherProvider: "openweathermap",
                         type: 'hourly',
                           apiVersion :'3.0',
                          apiKey: "new api key",
                          units: "imperial",
                          maxEntries: 10,
                          fadePoint: 0.12,
          	    showPrecipationAmount: true,
          	    AnimationSpeed: 1000,
                          ignoreToday: true,
                          colored: true,
                          fade: false,
                          timeFormat: 12,
                          showFeelsLike: true,
                          lat: 40.7128,
                          lon: -74.0060,
          	}
          }
          
          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @hengy
            last edited by

            @hengy I took your config (edited and added the code block and start/end {} in your post)
            and my apikey
            on version 2.27

            and got this

            Screenshot at 2024-05-21 07-57-53.png

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            H 1 Reply Last reply Reply Quote 0
            • H Offline
              hengy @sdetweil
              last edited by

              @sdetweil Maybe my mistake. I’m using the new ver 3 api. Should I be using the previous version I had running with no issues?

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

                @hengy I don’t know. I am using my 3.0 apikey

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                H 1 Reply Last reply Reply Quote 0
                • H Offline
                  hengy @sdetweil
                  last edited by

                  @sdetweil possible they changed the plan. I’m using free.

                  41d4c485-3cdb-45ba-9ad6-89053529d1ab-image.png

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

                    @hengy yes that doesnt provide hourly, says so right there.

                    that is the plan that is going away. 2.5

                    you must provide a credit card for 3.0 onecall
                    first 1000 calls per day are no charge

                    note: 3 module instances is 3 calls
                    so only 333/ day. only 4 calls per minute each module

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    H 1 Reply Last reply Reply Quote 0
                    • H Offline
                      hengy @sdetweil
                      last edited by

                      @sdetweil
                      Thanks for your help, will do.

                      1 Reply Last reply Reply Quote 0
                      • 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