<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money.]]></title><description><![CDATA[<p dir="auto">I must have done something <em>really</em> wrong because I’m paying a good bit of coin to DarkSky for API calls. This is for the MMM-NOAA3 module.</p>
<pre><code>updateInterval: 15 * 60 * 1000, //every 15 minutes or whatever you choose
</code></pre>
<p dir="auto">that’s the original ^ and I updated the <em>15</em> to <em>60</em>.</p>
<p dir="auto">I guess I don’t understand what each number represents. Milliseconds, Seconds, Minutes?</p>
<p dir="auto">I don’t know how, but I had 25k API calls to DarkSky yesterday. Trying to cut this number down. I’d just like to have it update twice hourly if at all possible (it’s current temps / extended weather forecast).</p>
]]></description><link>https://forum.magicmirror.builders/topic/13630/can-someone-help-me-understand-updateinterval-darksky-is-charging-me-a-lot-of-money</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 08:21:36 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/13630.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Sep 2020 03:34:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Mon, 25 Apr 2022 19:41:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cotxwx" aria-label="Profile: cotxwx">@<bdi>cotxwx</bdi></a> There is some new info about it and how it goes?</p>
]]></description><link>https://forum.magicmirror.builders/post/101477</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/101477</guid><dc:creator><![CDATA[Amninnar]]></dc:creator><pubDate>Mon, 25 Apr 2022 19:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Sun, 13 Sep 2020 10:31:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cotxwx" aria-label="Profile: cotxwx">@<bdi>cotxwx</bdi></a> maybe you just want to switch the module…</p>
<p dir="auto">The fork<br />
<a href="https://github.com/gerjomarty/MMM-DarkSkyForecast" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/gerjomarty/MMM-DarkSkyForecast</a></p>
<p dir="auto">uses the openweather API. Works like charm.</p>
]]></description><link>https://forum.magicmirror.builders/post/81682</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81682</guid><dc:creator><![CDATA[taikonaut]]></dc:creator><pubDate>Sun, 13 Sep 2020 10:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Fri, 11 Sep 2020 07:30:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cotxwx" aria-label="Profile: cotxwx">@<bdi>cotxwx</bdi></a> You mentioned MMM-NOAA3.<br />
The <a href="https://github.com/cowboysdude/MMM-NOAA3" target="_blank" rel="noopener noreferrer nofollow ugc">readme</a> gives the possibility to choose other APIs.<br />
I would suggest to do that.</p>
]]></description><link>https://forum.magicmirror.builders/post/81564</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81564</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Fri, 11 Sep 2020 07:30:52 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Fri, 11 Sep 2020 01:47:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/raymondjspigot" aria-label="Profile: raymondjspigot">@<bdi>raymondjspigot</bdi></a> these should all be adjusted to minutes for the user, and multiply under the covers to avoid this unnecessary confusion</p>
]]></description><link>https://forum.magicmirror.builders/post/81561</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81561</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 11 Sep 2020 01:47:24 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Fri, 11 Sep 2020 01:03:02 GMT]]></title><description><![CDATA[<blockquote>
<pre><code>updateInterval: 15 * 60 * 1000, //every 15 minutes or whatever you choose
</code></pre>
<p dir="auto">that’s the original ^ and I updated the <em>15</em> to <em>60</em>.</p>
<p dir="auto">I guess I don’t understand what each number represents. Milliseconds, Seconds, Minutes? &gt;</p>
</blockquote>
<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/cotxwx" aria-label="Profile: cotxwx">@<bdi>cotxwx</bdi></a>  - 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</p>
<p dir="auto">1000 (milliseconds per second) x 60 (seconds per minute) x 15 = a 15 minute interval</p>
<p dir="auto">which I think ends up being clearer than just giving a sort of anonymous/unit-free total (e.g. 900000 or something like that)</p>
<p dir="auto">hope this helps anyway</p>
]]></description><link>https://forum.magicmirror.builders/post/81558</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81558</guid><dc:creator><![CDATA[raymondjspigot]]></dc:creator><pubDate>Fri, 11 Sep 2020 01:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Wed, 09 Sep 2020 13:50:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cotxwx" aria-label="Profile: cotxwx">@<bdi>cotxwx</bdi></a> 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 <em>per day</em>. Here’s my config:</p>
<pre><code>		{
			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"
 		 	}
		},
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/81508</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81508</guid><dc:creator><![CDATA[sonicgoose]]></dc:creator><pubDate>Wed, 09 Sep 2020 13:50:07 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Wed, 09 Sep 2020 09:11:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cotxwx" aria-label="Profile: cotxwx">@<bdi>cotxwx</bdi></a><br />
Also,</p>
<pre><code>scheduleUpdate: function() {
        setInterval(() =&gt; {
            this.getNOAA();
        }, this.config.updateInterval);
        this.getNOAA(this.config.initialLoadDelay);
    },
</code></pre>
<p dir="auto">this code shows that the API calls really are determined by updateInterval (as you thought).<br />
Here something comes into play that I stumbled upon.</p>
<p dir="auto">If you have several entities of the mirror open, let’s say you are also using a browser e.g. to develop, the main.js (and hence the setInterval function) will be started a second, third, fourth etc. time.<br />
In that case you would have SEVERAL interval cycles asking for an API call every x minutes.<br />
That can blow the API call ratio.<br />
Don’t know if that’s the case with you.</p>
<p dir="auto">That’s why I try to keep an API call cycle always inside the node_helper.js and have it start only once in my modules.</p>
]]></description><link>https://forum.magicmirror.builders/post/81496</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81496</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Wed, 09 Sep 2020 09:11:52 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Wed, 09 Sep 2020 09:07:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lavolp3" aria-label="Profile: lavolp3">@<bdi>lavolp3</bdi></a></p>
<blockquote>
<p dir="auto">"Your trial account allows up to 1,000 free calls per day to evaluate the Dark Sky API. If you would like &gt; to make more than 1,000 calls per day, simply enter billing information to upgrade to a full account. "</p>
</blockquote>
<p dir="auto">So you need to stay below 1,000 calls/day.<br />
I have seen that MMM-NOAA uses a new API provider, weatherbit.</p>
<p dir="auto">You might want to do an update.</p>
]]></description><link>https://forum.magicmirror.builders/post/81495</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81495</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Wed, 09 Sep 2020 09:07:08 GMT</pubDate></item><item><title><![CDATA[Reply to Can someone help me understand &quot;updateInterval&quot;? DarkSky is charging me a lot of money. on Wed, 09 Sep 2020 08:56:24 GMT]]></title><description><![CDATA[<p dir="auto">the updateInterval is not necessarily the API fetch interval. Usually it is used as an update Interval for your content.</p>
<p dir="auto">DarkySky have changed their API billing for new subscribers and I believe there are no free plans available anymore.<br />
Did you subscribe just recently?<br />
What is your tier/plan?<br />
Do you know which interval you’d need to get free API calls?</p>
<p dir="auto">Before you throw money at them, there are many free weather services out there and someone may have already reprogrammed your module to use another (free) API provider.</p>
]]></description><link>https://forum.magicmirror.builders/post/81494</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/81494</guid><dc:creator><![CDATA[lavolp3]]></dc:creator><pubDate>Wed, 09 Sep 2020 08:56:24 GMT</pubDate></item></channel></rss>