Giter Site home page Giter Site logo

Comments (3)

naofireblade avatar naofireblade commented on June 9, 2024

The interval currently needs to be an integer (so 1.5 is not possible). This parameter was designed to increase the value if you want to save data volume.

When lowering the interval for dark sky please consider that I have to make about 200 additional api calls per day to calculate the accumulated rain per hour for today and the upcoming 7 days. I do this request every 60 minutes for all 8 days = 192 calls.

As a result you have about 800 api calls per day for the "normal" update. Lowering the interval to 2 should fit the 1000 calls perfectly.

In the end please keep in mind that dark sky provides the api service for free and every update is associated with some costs for them and we shouldn't make more calls then necessary :) .

from homebridge-weather-plus.

RGSMA avatar RGSMA commented on June 9, 2024

If my math is correct, I figure it would cost me about $5 per month if I wanted to upgrade my API account and call every minute.

60*24
+192
*365
/12
/10000
=$4.97

Thanks for the info.

from homebridge-weather-plus.

naofireblade avatar naofireblade commented on June 9, 2024

I think 1000 calls per day are free even if you exceed the limit. So you should be charged for about 1.97$ per month.

from homebridge-weather-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.