WINDY Block default

Post Reply
User avatar
BobW55
Forecaster
Forecaster
Posts: 111
Joined: Thu Sep 28, 2017 11:43 pm
Location: Michigan USA
Station model: Davis Pro2
Software: Cumulus
Contact:

WINDY Block default

Post by BobW55 » Thu Aug 29, 2019 9:36 pm

Is there a way to make the windy block default to display clouds?
Doing astrophotography, I care more about potential cloud cover.
http://melvinweather.com/template/indexDesktop.php
Davis Vantage Pro2 wired
Solar/UV sensors
Sky Cam
Ham radio K8pos

PCW
Observer
Observer
Posts: 41
Joined: Sat Mar 23, 2019 2:03 pm
Location: Covington, WA USA
Station model: Davis Pro2
Software: Meteobridge
Contact:

Re: WINDY Block default

Post by PCW » Fri Aug 30, 2019 3:02 pm

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
Image

User avatar
BobW55
Forecaster
Forecaster
Posts: 111
Joined: Thu Sep 28, 2017 11:43 pm
Location: Michigan USA
Station model: Davis Pro2
Software: Cumulus
Contact:

Re: WINDY Block default

Post by BobW55 » Fri Aug 30, 2019 5:48 pm

Awesome....
That did it thank you.
http://melvinweather.com/template/indexDesktop.php
Davis Vantage Pro2 wired
Solar/UV sensors
Sky Cam
Ham radio K8pos

User avatar
BobW55
Forecaster
Forecaster
Posts: 111
Joined: Thu Sep 28, 2017 11:43 pm
Location: Michigan USA
Station model: Davis Pro2
Software: Cumulus
Contact:

Re: WINDY Block default

Post by BobW55 » Fri Aug 30, 2019 5:50 pm

Opps.....
Spoke too soon, that changes it to lightning.
I'll have a closer look at the PHP.
http://melvinweather.com/template/indexDesktop.php
Davis Vantage Pro2 wired
Solar/UV sensors
Sky Cam
Ham radio K8pos

User avatar
BobW55
Forecaster
Forecaster
Posts: 111
Joined: Thu Sep 28, 2017 11:43 pm
Location: Michigan USA
Station model: Davis Pro2
Software: Cumulus
Contact:

Re: WINDY Block default

Post by BobW55 » Fri Aug 30, 2019 5:55 pm

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.
http://melvinweather.com/template/indexDesktop.php
Davis Vantage Pro2 wired
Solar/UV sensors
Sky Cam
Ham radio K8pos

Post Reply