beteljuice wrote:Why stop there ?robynfali wrote: I am going to take two exact same photos ... one during the day today, one sometime tonight,
... use those as the day/nightime picture ?
Why not day/night for each of the seasons
And why stop there, you could also have pictures that are nice and sunny, and some stormy, then also use the <#forecastnumber> tag, something like "picture-<#isdaylight>-<#forecastnumber>.jpg You could reuse a few images to cover a range of forecast numbers. I realise that the forecast isn't a 'nowcast', so you maybe you could use the <#rrate> and or <#beaufort> tags to select an image. The <#rrate> would have to converted using a bit of javascript to a 0/1 value.JacquesD wrote:The 'trick" could be applied to anything else, just by using <#isdaylight> webtag.
On your page you just have to insert something like that "picture<#isdaylight>.jpg"
and having 2 pictures named picture0.jpg and picture1.jpg! Switch will be automatic!
picture-<#isdaylight>-<#beaufort>
or something like (incomplete)...
<script .....>
var r = <#rrate> == 0 ? 0 : 1;
document.write('<img src="picture-<#isdaylight>-' + r.toString() + '.jpg" />');
</script>