LinuxMCE Forums

General => Users => Topic started by: johanr on February 23, 2010, 10:19:38 PM

Title: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: johanr on February 23, 2010, 10:19:38 PM
Hi!

1. maybe this is clear to everyone but not me  :-[ what is the correct definition of night and day? i.e. when does night begin and day begin?

2. been trying to get the respond to events working like " media on before 17:30 do not turn ambient lights on" and off course another even for "after 17:30 turn them on" by using the ">" "<"

tried in 0710 but never managed to get it working with the >17:30 or the <17:30.
And from what I have been reading in different posts it seems like this will not work in 0810 either.
If this is the case also in 0810 is there another way of making this?



-johan
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: tortho on February 23, 2010, 10:28:46 PM
Hi,

Can answer partly:

Day & Night:
Assume this is the same as sunset and sunrise which it controls by your location settings in Webadmin.
See: Wizard -> Basic Info -> Installation.

I did have an issue with a zwave device which did turn on without me telling it to do so. Discovered I had set it's location for the device to "Outside Area" (See room setup)
This device where then automatically added to a scenario and turned automatically on / off based on sunrise/sunset.
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: johanr on February 23, 2010, 11:07:55 PM
Ahh!

That does partly answer my question and also help if it's like that, which I would assume it is.
Hmm.. Need to test that DAY and NIGHT thingy then (just read about it today)

if it works like that well then there is no need for no.2 in my case.


-johan
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: jimbodude on February 23, 2010, 11:14:27 PM
See also - recent developments with that rule:
http://wiki.linuxmce.org/index.php/Event_criteria#Time_of_Day
http://svn.linuxmce.org/trac.cgi/ticket/605
http://wiki.linuxmce.org/index.php/LinuxMCE-0810_beta#Update_2010-02-16_22777
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: brononius on October 09, 2012, 01:36:05 PM

I was wondering if there's a command to check the current DAY/NIGHT status...

Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: Marie.O on October 09, 2012, 03:52:57 PM
http://wiki.linuxmce.org/index.php/Event_criteria
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: brononius on October 09, 2012, 06:07:31 PM
Hey,

Couldn't find the info on that wiki (or i'm misreading it).


I was just wondering how this DAY/NIGHT works.
It depends on your timezone, right? Also with sun up, sun down?
Is this somewhere a status that he downloads from a site?

And is there somewhere a command/log i can check in what state the server is right now?
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: Marie.O on October 09, 2012, 07:34:40 PM
Sunset, sunrise, night and day are calculated based on your geolocation.
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: hari on October 09, 2012, 09:58:37 PM
the event plugin tracks sunrise and sunset events and sets the NIGHT/DAY state from that which can be used as event criteria.
Title: Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
Post by: brononius on October 10, 2012, 07:51:35 AM
Ok, found out how i could check the actual status/timing for it:

sudo grep tSun /var/log/pluto/DCERouter.log
QuoteDCERouter.log:10   10/09/12 20:48:39.962      tSunrise: Tue Oct  9 08:00:44 2012
DCERouter.log:10   10/09/12 20:48:39.962      tSunset: Tue Oct  9 19:02:49 2012
DCERouter.log:10   10/09/12 20:48:39.962      tSunriseTomorrow: Wed Oct 10 08:02:22 2012
DCERouter.log:10   10/09/12 20:48:39.962      tSunsetTomorrow: Wed Oct 10 19:00:40 2012

ps this quest gave me an idea (http://forum.linuxmce.org/index.php/topic,12912.0.html)...  ;)