<?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[WindyAPI: Start weatherforecast by default on page load?]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Is there a parameter I can set to start the forecast by default upon loading the page, rather than clicking the 'play' button? My project will be without a mouse/keyboard, that's the reason I want it to autostart/by timer etc...</p>
]]></description><link>https://community.windy.com/topic/7935/windyapi-start-weatherforecast-by-default-on-page-load</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 06:49:22 GMT</lastBuildDate><atom:link href="https://community.windy.com/topic/7935.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 08 Mar 2019 14:07:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WindyAPI: Start weatherforecast by default on page load? on Fri, 08 Mar 2019 16:06:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marekd" aria-label="Profile: marekd">@<bdi>marekd</bdi></a></p>
<p dir="auto">I actually solved it a different way; by calling</p>
<pre><code>document.getElementById('playpause').click()
</code></pre>
<p dir="auto">Thanks anyway for the quick replies :)</p>
]]></description><link>https://community.windy.com/post/19778</link><guid isPermaLink="true">https://community.windy.com/post/19778</guid><dc:creator><![CDATA[TheStigh]]></dc:creator><pubDate>Fri, 08 Mar 2019 16:06:49 GMT</pubDate></item><item><title><![CDATA[Reply to WindyAPI: Start weatherforecast by default on page load? on Fri, 08 Mar 2019 14:58:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/marekd" aria-label="Profile: marekd">@<bdi>marekd</bdi></a></p>
<p dir="auto">Did this:</p>
<pre><code>windyInit (options, windyAPI =&gt; {	
        const {store,map,overlays} = windyAPI;
	var overlay = store.get('overlay');
	var windMetric = overlays.wind.metric;
	store.set('overlay',this.config.showLayer);
	store.set('animation',true);
	overlays.wind.setMetric(this.config.windyMetric);
	map.setZoom(this.config.zoomLevel);
});
</code></pre>
<p dir="auto">I tried, but got:<br />
lib.js:6 Evented Failed to call animation TypeError: Cannot read property 'end' of undefined<br />
at w (lib.js:82)<br />
at lib.js:82<br />
at Object. (lib.js:82)<br />
at Object.emit (lib.js:16)<br />
at h (lib.js:47)<br />
at Object.i [as set] (lib.js:47)<br />
at windyAPI (MMM-WindyV2-dev.js:167)<br />
at m (lib.js:116)<br />
at lib.js:116</p>
]]></description><link>https://community.windy.com/post/19777</link><guid isPermaLink="true">https://community.windy.com/post/19777</guid><dc:creator><![CDATA[TheStigh]]></dc:creator><pubDate>Fri, 08 Mar 2019 14:58:27 GMT</pubDate></item><item><title><![CDATA[Reply to WindyAPI: Start weatherforecast by default on page load? on Fri, 08 Mar 2019 14:24:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/thestigh" aria-label="Profile: TheStigh">@<bdi>TheStigh</bdi></a> Try <code>store.set('animation', true);</code> when initialize API.</p>
]]></description><link>https://community.windy.com/post/19773</link><guid isPermaLink="true">https://community.windy.com/post/19773</guid><dc:creator><![CDATA[marekd]]></dc:creator><pubDate>Fri, 08 Mar 2019 14:24:50 GMT</pubDate></item></channel></rss>