Read the statement by Michael Teeuw here.
Can someone help me understand "updateInterval"? DarkSky is charging me a lot of money.
-
@cotxwx I’m using the MMM-DarkSkyForecast module on two different mirrors, both using the same API key for DarkSky, and the total number of API calls made on my account averages 96 per day. Here’s my config:
{ module: "MMM-DarkSkyForecast", //header: "Weather", position: "top_right", classes: "default everyone", disabled: false, config: { apikey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", latitude: "43.XXXXXX", longitude: "-79.XXXXXX", updateInterval: "30", //this is in minutes, so every 30 minutes iconset: "3c", showCurrentConditions: true, showExtraCurrentConditions: false, showSummary: true, showForecastTableColumnHeaderIcons: false, concise: true, forecastLayout: "table", //other option is "table" } },
-
updateInterval: 15 * 60 * 1000, //every 15 minutes or whatever you choose
that’s the original ^ and I updated the 15 to 60.
I guess I don’t understand what each number represents. Milliseconds, Seconds, Minutes? >
Hi @cotxwx - I think the updateInterval in the original is currently set to 15 minutes. The time will be based in milliseconds, so reading it right-to-left that gives you
1000 (milliseconds per second) x 60 (seconds per minute) x 15 = a 15 minute interval
which I think ends up being clearer than just giving a sort of anonymous/unit-free total (e.g. 900000 or something like that)
hope this helps anyway
-
@raymondjspigot these should all be adjusted to minutes for the user, and multiply under the covers to avoid this unnecessary confusion
-
-
@cotxwx maybe you just want to switch the module…
The fork
https://github.com/gerjomarty/MMM-DarkSkyForecastuses the openweather API. Works like charm.
-
@cotxwx There is some new info about it and how it goes?