Page 1 of 1
looking for idea?
Posted: Mon 28 Nov 2011 1:18 am
by n9mfk
Hi All,
Im looking for ideas
i known <#IsSunny> only woks if you have a solar sensor on your weather
is the some other tag that can be used to tell if the sun is up with out a solar sensor?
Beau
Re: looking for idea?
Posted: Mon 28 Nov 2011 1:45 am
by captzero
Will <#isdaylight> work for you? - A flag to indicate if the location for the station is in daylight or not, based on the dawn and dusk times. Possible values are 0 or 1, where 1 notes that it is currently within the hours of daylight.
Re: looking for idea?
Posted: Mon 28 Nov 2011 3:36 am
by n9mfk
I was thinking that or <#CurrentSolarMax> if i can come up with a range
Beau
Re: looking for idea?
Posted: Mon 28 Nov 2011 10:00 am
by mcrossley
n9mfk wrote:I was thinking ... <#CurrentSolarMax> if i can come up with a range
Beau
Talk about doing it the hard way!

Re: looking for idea?
Posted: Mon 28 Nov 2011 10:35 am
by steve
<#IsSunny> isn't any use for telling you whether the sun is up anyway; it might be overcast. <#isdaylight> is the closest, but I guess a new tag is really needed - <#IsSunUp>. In the absence of that tag, you would need to compare the current time with <#sunrise> and <#sunset>. But testing for <#CurrentSolarMax> being non-zero would actually give you a reasonable approximation. It would be zero for a few minutes after sunrise and a few minutes before sunset, though.
Re: looking for idea?
Posted: Mon 28 Nov 2011 10:43 am
by mcrossley
Ahh, so <#isdaylight> includes (civil presumably) twilight, I'd forgotten that. Of course as an astronomer I'd base it on astronomical twilight which means that it would always = 1 during mid-summer in the UK.

Re: looking for idea?
Posted: Mon 28 Nov 2011 11:08 am
by steve
mcrossley wrote:Ahh, so <#isdaylight> includes (civil presumably) twilight
Yes, that's right.
I'm going to release a new build soon with a few fixes, I'll add the <#IsSunUp> tag as it's very easy to do.
Re: looking for idea?
Posted: Mon 28 Nov 2011 2:10 pm
by n9mfk
Hi all,
sound good Steve all wait for next build
Beau
Re: looking for idea?
Posted: Mon 28 Nov 2011 2:25 pm
by beteljuice
I suppose the time difference between <#isdaylight> and <#IsSunUp> could be significant for anyone living in eg. Orkney and T'North
