SOLVED Weather one call reason for "onecall"
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!
@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
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:
@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.
@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
@mykle1 lol! you are my inspiration… you have more modules than I ever thought about!!
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.