Page 1 of 1

<#isSunny>

Posted: Mon 01 Oct 2012 6:17 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. There is only sonne1.gif displayed, if it's sunny or not. :( Anyone here, who knows, what's wrong ?
I'm using a wh3080 weatherstation with solar sensor. Any help appreciated

Re: <#isSunny>

Posted: Wed 14 Nov 2012 8:37 pm
by William Grimsley

Code: Select all

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>
The

Code: Select all

};
needs to become

Code: Select all

;}
That might help. I'm not a genious on javascript coding. ;)

Hope this helps...

Will

Re: <#isSunny>

Posted: Wed 14 Nov 2012 10:06 pm
by steve
It was actually a problem with a typo in the web tag; answered here: https://cumulus.hosiene.co.uk/viewtopic.php?f=13&t=8370

Re: <#isSunny>

Posted: Sat 08 Dec 2012 6:16 pm
by William Grimsley
Sorry, my mistake I'd never seen the tag before! :D :lol: