Page 1 of 1

WINDY Block default

Posted: Thu Aug 29, 2019 9:36 pm
by BobW55
Is there a way to make the windy block default to display clouds?
Doing astrophotography, I care more about potential cloud cover.

Re: WINDY Block default

Posted: Fri Aug 30, 2019 3:02 pm
by PCW
HI Bob,

I was given the following script change the default presentation in windy:
<iframe src="https://embed.windy.com/embed2.html?lat=<?php echo $stationLat?>&lon=<?php echo $stationLon?>&zoom=7&level=surface&overlay=radar&menu=&message=true&marker=&forecast=12&calendar=now&location=coordinates&type=map&actualGrid=&metricWind=kt&metricTemp=%C2%B0<?php echo $displayTempUnits?>" style="border:none;width:98%;height:400px;margin:0 auto"></iframe>
Change "surface&overlay" to "clouds&menu" .
Replace line 28 in your "windyBlock.php file in blocks folder. Do not use a txt editor. I use "Notepad++"
Hope this helps.
Paul

Re: WINDY Block default

Posted: Fri Aug 30, 2019 5:48 pm
by BobW55
Awesome....
That did it thank you.

Re: WINDY Block default

Posted: Fri Aug 30, 2019 5:50 pm
by BobW55
Opps.....
Spoke too soon, that changes it to lightning.
I'll have a closer look at the PHP.

Re: WINDY Block default

Posted: Fri Aug 30, 2019 5:55 pm
by BobW55
Found it...

<iframe src="https://embed.windy.com/embed2.html?lat=<?php echo $stationLat?>&lon=<?php echo $stationLon?>&zoom=7&level=surface&overlay=clouds&menu=&message=true&marker=&forecast=12&calendar=now&location=coordinates&type=map&actualGrid=&metricWind=kt&metricTemp=%C2%B0<?php echo $displayTempUnits?>" style="border:none;width:98%;height:400px;margin:0 auto"></iframe>

Had to change RADAR to clouds

Works fine now.