Page 1 of 1
#<isSunny>
Posted: Mon 01 Oct 2012 5:56 pm
by JR1234
I wonder, why this
<script>type="text/javascript">
sun = '<#isSunny>';
if (sun == '0') {sun = '<img src="images/sonne0.gif" width="80" align="center" border="0" height="85" hspace="10">';}
else {sun = '<img src="images/sonne1.gif" width="80" align="center" border="0" height="85" hspace="10">'};
document.write(sun);
</script>
doesn't work on my homepage. I'm using a wh3080 weather station. It's only sonne1.gif displayed, if the sun is shining or not.

.
I would appreciate any help.
Re: #<isSunny>
Posted: Mon 01 Oct 2012 6:17 pm
by steve
Does your station have a solar sensor? Is this just a web site issue, or does Cumulus also show that it's sunny (the yellow LED)? Have you adjusted the solar settings (threshold etc) in Cumulus so that the calculation for whether it's sunny or not gives reasonable results? Can you give a link to your web site, please?
Re: #<isSunny>
Posted: Mon 01 Oct 2012 6:23 pm
by JR1234
steve wrote:Does your station have a solar sensor? Is this just a web site issue, or does Cumulus also show that it's sunny (the yellow LED)? Have you adjusted the solar settings (threshold etc) in Cumulus so that the calculation for whether it's sunny or not gives reasonable results? Can you give a link to your web site, please?
It's only a website issue, Cumulus works fine with the sun LED. Well my webpage is at
http://www.myway.de/roemer
Re: #<isSunny>
Posted: Mon 01 Oct 2012 7:19 pm
by steve
Looks like a problem with your web tag:
On your page:
sun = '';
sun = '<#isSunny>';
The correct tag is <#IsSunny>
Re: #<isSunny>
Posted: Mon 01 Oct 2012 8:29 pm
by JR1234
steve wrote:Looks like a problem with your web tag:
On your page:
sun = '';
sun = '';
The correct tag is
Thanks steve,
I changed <#isSunny> to <#IsSunny>, but the sun is still shining (evenin the deepest night

)
Re: #<isSunny>
Posted: Mon 01 Oct 2012 9:11 pm
by steve
Looks OK to me:
sun = '0';
2012-10-01 22_11_15-JR Amberg Wetter.png
Re: #<isSunny>
Posted: Mon 01 Oct 2012 9:24 pm
by Spider-Vice
Also working here. Try Ctrl+F5 for a hard refresh.
Re: #<isSunny>
Posted: Tue 02 Oct 2012 7:00 am
by JR1234
Spider-Vice wrote:Also working here. Try Ctrl+F5 for a hard refresh.
Yes, thank you. It's working fine here too. Must have loaded a cached page.