Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 4:38 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: <#IsSunny> Webtag
PostPosted: Sun Jan 30, 2011 11:22 pm 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
Hi Steve,

Cumulus help file says -<#IsSunny> returns 1 if the sun is shining, otherwise 0. Its returning 0 for me all the time. I have changed the time format in all my sun/moon/daylight tags. Would this break the <#IsSunny> tag?

Thanks

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 8:23 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17607
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
First question: Have you got a solar sensor?

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 9:14 am 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
No, no sensor.

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 9:26 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17607
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Cumulus can't tell whether the sun is shining or not unless you have a solar sensor.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 9:31 am 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
No Probs, That explains it. I thought it may have worked from the dawn / dusk or sunrise / sunset tags.

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 9:35 am 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
captzero wrote:
I thought it may have worked from the dawn / dusk or sunrise / sunset tags.
That wouldn't give Cumulus enough information, it could be cloudy? Although the Cloudbase webtag calculates cloudbase, it is just a calculation and can't be relied on.

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 9:46 am 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
No worries. I was thinking it was like - its day time or night time at the station location.

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:00 am 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
captzero wrote:
No worries. I was thinking it was like - its day time or night time at the station location.


There is a webtag for that, <#isdaylight>. It returns 1 if it is daylight, 0 for nighttime.

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:04 am 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
Thanks Paul, I thought there was but I must have missed it.

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:13 am 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
You're welcome. You probably already know, but you can use that webtag to display a day or night icon, some simple code like:

Code:
<img src="daynight_<#isdaylight>.png" title="Lamp off=daylight, Lamp on=darkness here">
You need two icons, daynight_0.png and daynight_1.png or whatever.

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:20 am 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
Yeah, I was using the other tag to display some simple text. Worked a treat until the sun came up and the script didn't change. lol :oops:

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:28 am 
Offline
User avatar

Joined: Thu Dec 17, 2009 2:03 pm
Posts: 787
Location: Hurstpierpoint, West Sussex, UK
Weather Station: WH1081
Operating System: Windows XP & 7 Pro
Synewave wrote:
You're welcome. You probably already know, but you can use that webtag to display a day or night icon, some simple code like:

Code:
<img src="daynight_<#isdaylight>.png" title="Lamp off=daylight, Lamp on=darkness here">
You need two icons, daynight_0.png and daynight_1.png or whatever.


I didn't know, that's quite neat :) Can you use <#.......> in any html code for this substitution?

_________________
Neil
Hurstpierpoint Weather

Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:33 am 
Offline

Joined: Mon Jan 25, 2010 1:55 pm
Posts: 623
Location: Brighton, UK
Weather Station: Watson W-8681
Operating System: Vista
nking wrote:
Synewave wrote:
You're welcome. You probably already know, but you can use that webtag to display a day or night icon, some simple code like:

Code:
<img src="daynight_<#isdaylight>.png" title="Lamp off=daylight, Lamp on=darkness here">
You need two icons, daynight_0.png and daynight_1.png or whatever.


I didn't know, that's quite neat :) Can you use <#.......> in any html code for this substitution?


Yes, that's how many display a forecast icon, i.e. have a set of 26 weather icons named weather_1.png to 26. Then just substitute the number with <#forecastnumber> .

_________________
Paul

http://www.greatcollegestreet.co.uk -Online
http://www.lehamel.eu - Online

Image Image


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:39 am 
Offline
User avatar

Joined: Wed Mar 03, 2010 10:20 am
Posts: 299
Location: Brisbane, Australia
Weather Station: Vantage Pro2 w/ daytime FARS
Operating System: Windows Vista SP2
I use a few webtags and javascript to change a few images on my pages.

I've just included the <#isdaylight> tag to display a simple text (day or night at my location). I use it under the world image on my front page.

<script type="text/javascript">
var sun = "<#isdaylight>";
if (sun==1)document.write('Day Time')
else document.write('Night Time')
</script>

You and use it to display a different image (or text) as your webtag changes the data. There is lots of info in the forum on how to do it.

Use an on line editor to test. There are lots but I use http://www.onlinehtmleditor.net/

Have fun.

_________________
Dan

http://www.brisbaneliveweather.com




A man with a thermometer always knows the temperature. A man with two thermometers, not so sure.


Top
 Profile  
 
 Post subject: Re: <#IsSunny> Webtag
PostPosted: Mon Jan 31, 2011 10:41 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17607
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
nking wrote:
Can you use <#.......> in any html code for this substitution?

You can use a web tag anywhere; it's just a simple textual substitution, the processor doesn't know anything about HTML etc.

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group