MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.24.0 is available! For more information about this release, check out this topic.

    SOLVED Weather one call reason for "onecall"

    Requests
    4
    8
    709
    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
      hango last edited by hango

      Could the weather module make a one time API call for current, hourly and daily? If I use onecall endpoint, I have 1000 calls per a day, if I load the module 3 times every 10 minutes I already have 432 calls, if I use the server mode with 3 devices I have 1296 calls which blocks my API. One solution would be to increase the time or use different APIs, but it could be a one call for all three cases, I supose that’s why it was designed for.

      P.S. If you want you can do it, just keep your mind open.
      As the name suggests my module call only once appid no matter how many instances are loaded, for current, hourly, daily and AQI, it uses the onecall endpoint for which reason it was designed for. Also with several accounts I can use several APIs by rotation. Issue resolved for personal use but my Github repository is private!

      I am no longer interested in this project which is increasingly buggy and heavy.
      I have my own personal light version which works perfectly on line and local without electron shit and node.js.

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

        @hango not the way the API works. choose which data u want. can’t get all in one call

        one call means one endpoint instead of multiple

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • cowboysdude
          cowboysdude Module Developer last edited by cowboysdude

          I say look for another module that’ll give you what you want. This isn’t going to do what you want it to do. The ONLY way you can get this to work is use your original mirror as your main mirror and clone that on other mirrors that way you’re only making ‘onecall’.

          BUT as far as getting ALL the info that’s not how it’s built. It’s built to pick onecall to get the info you need. There are 3 options:

          Current weather
          Daily forecast
          Hourly forecast

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

            @cowboysdude no. the only way to get this to work is to have multiple userids with different API keys

            three mirrors w the same apikey counts against the requests for that apikey ( ask me how I know!)

            I added the Climacell support to the smart-mirror weather plugin, after @Mykle1 showed me how easy it could be.

            Sam

            Create a working config
            How to add modules

            Mykle1 1 Reply Last reply Reply Quote 1
            • S
              sdetweil last edited by

              @hango you can increase the time, every module has some update interval

              currently the node_helper does not cache or share data between modulename.js callers

              Sam

              Create a working config
              How to add modules

              1 Reply Last reply Reply Quote 0
              • Mykle1
                Mykle1 Project Sponsor Module Developer @sdetweil last edited by

                @sdetweil said in Weather one call reason for "onecall":

                I added the Climacell support to the smart-mirror weather plugin, after @Mykle1 showed me how easy it could be.

                Huh? What?

                Don’t accuse me of doing something correctly.

                Create a working config
                How to add modules

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

                  @mykle1 lol! you are my inspiration… you have more modules than I ever thought about!!

                  Sam

                  Create a working config
                  How to add modules

                  Mykle1 1 Reply Last reply Reply Quote 0
                  • Mykle1
                    Mykle1 Project Sponsor Module Developer @sdetweil last edited by

                    @sdetweil

                    Well, thanks to you and John I had the best help available when I got stuck (which was quite often). John gets the lion’s share of credits in my readMe files. I am indebted to you both and am forever in your debt.

                    Create a working config
                    How to add modules

                    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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy