News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

$$$ EVENTS BASED ON SUNRISE/SUNSET

Started by leiba2652, August 13, 2008, 11:50:57 PM

Previous topic - Next topic

leiba2652

Hi,

i'm willing to pay someone who develop the code to be able to set events based on sunrise/ sunset.

i think all that info can be pulled from a number of websites based on a zip code.

please contact me with your price at leiba2652_ at gmail dot_ _com

thanks

joseph

Zaerc

So how much are you planning to spend on this feature we already have?
"Change is inevitable. Progress is optional."
-- Anonymous

[url=http://petition.stopsoftwarepatents.eu/181001941347/][/url]

leiba2652

let me take a look again, and see if it works that way, and i'll be happy to contribute toward the project.

oh, and by the way, don't be nasty to a guy who's willing to pay to help the project along....

colinjones

geez man, he's already pointed you to that exact feature and you ignored him and posted again! BTW, what are you talking about setting a location - have you installed LMCE yet? Didn't you notice that it actually determines it location automatically and tells you on screen? It uses this (lat/long/etc) to determine your sunrise/set times automatically, and fires those events then ... just hook into the events and use them like he suggested...

bulek

Quote from: colinjones on August 14, 2008, 01:58:48 AM
geez man, he's already pointed you to that exact feature and you ignored him and posted again! BTW, what are you talking about setting a location - have you installed LMCE yet? Didn't you notice that it actually determines it location automatically and tells you on screen? It uses this (lat/long/etc) to determine your sunrise/set times automatically, and fires those events then ... just hook into the events and use them like he suggested...
Hi,

just quick related question: can those calculated times be checked or seen somewhere ?

Do we have some state (day/night) that could queried after those events (sometimes you must query current state without waiting for events to happen) ?

Thanks in advance,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

colinjones

Can I add a further question?! Is there any way the Sunrise/set events can be varied - eg <sunrise-30mins> or <sunset+60mins>? The actual point of sunrise and set is not necessarily the actual time you want to turn on/off lights, for instance. In many circumstances you will want to turn on lights long before actual sunset as it could be very dark in the house already, or perhaps in the higher latitudes you might want to delay this significantly because the sunset dusk period is very long...

tschak909

You can delay it by adding a DCERouter Delay command using the Advanced wizard... but you can't do a negative delay.

-Thom

nite_man

Quote from: colinjones on August 26, 2008, 08:07:07 AM
Can I add a further question?! Is there any way the Sunrise/set events can be varied - eg <sunrise-30mins> or <sunset+60mins>? The actual point of sunrise and set is not necessarily the actual time you want to turn on/off lights, for instance. In many circumstances you will want to turn on lights long before actual sunset as it could be very dark in the house already, or perhaps in the higher latitudes you might want to delay this significantly because the sunset dusk period is very long...

I also thought about that possibility. Sometimes it's needed to have some delay. Regarding Thom's replay it's possible to set positive delay. At least will use that :)
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

nite_man

Quote from: tschak909 on August 26, 2008, 07:53:49 PM
You can delay it by adding a DCERouter Delay command using the Advanced wizard... but you can't do a negative delay.

Is this #97 PK_Pipe (int)?
Michael Stepanov,
My setup: [url="http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup"]http://wiki.linuxmce.org/index.php/User:Nite_man#New_setup[/url]
Russian LinuxMCE community: [url="http://linuxmce.ru"]http://linuxmce.ru[/url]

tschak909

No.

If you use the Advanced Wizard, you can select the DCERouter device, and there is a command for Delay.

The delay value is in minutes.