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

0810: respond to events: definition of NIGHT and DAY and use of <>

Started by johanr, February 23, 2010, 10:19:38 PM

Previous topic - Next topic

johanr

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
[url="http://wiki.linuxmce.org/index.php/Johanr_materials"]http://wiki.linuxmce.org/index.php/Johanr_materials[/url]

tortho

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.
My setup: [url="http://wiki.linuxmce.org/index.php/User:Tortho#Setup"]http://wiki.linuxmce.org/index.php/User:Tortho#Setup[/url]

johanr

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
[url="http://wiki.linuxmce.org/index.php/Johanr_materials"]http://wiki.linuxmce.org/index.php/Johanr_materials[/url]


brononius


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

Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

brononius

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?
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE

Marie.O

Sunset, sunrise, night and day are calculated based on your geolocation.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]

hari

the event plugin tracks sunrise and sunset events and sets the NIGHT/DAY state from that which can be used as event criteria.
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

brononius

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...  ;)
Version: linuxMCE 1404, running virtual on ESXi

Orbiters: ASUS eeePAD, Nexus 5, Huwai, web
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7912-7940-7960
Camera's: Foscam POE