Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

<#isSunny>

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
JR1234
Posts: 5
Joined: Sat 14 Jul 2012 9:45 am
Weather Station: WH3080
Operating System: Windows7
Location: Amberg

<#isSunny>

Post 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
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: <#isSunny>

Post 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
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: <#isSunny>

Post 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
Steve
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: <#isSunny>

Post by William Grimsley »

Sorry, my mistake I'd never seen the tag before! :D :lol:
Post Reply