Author Topic: 0810: respond to events: definition of NIGHT and DAY and use of <>  (Read 6061 times)

johanr

  • Veteran
  • ***
  • Posts: 144
    • View Profile
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

tortho

  • Regular Poster
  • **
  • Posts: 45
    • View Profile
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #1 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.

johanr

  • Veteran
  • ***
  • Posts: 144
    • View Profile
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #2 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


brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #4 on: October 09, 2012, 01:36:05 pm »

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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #6 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?
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

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #7 on: October 09, 2012, 07:34:40 pm »
Sunset, sunrise, night and day are calculated based on your geolocation.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #8 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.
rock your home - http://www.agocontrol.com home automation

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: 0810: respond to events: definition of NIGHT and DAY and use of <>
« Reply #9 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
Quote
DCERouter.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...  ;)
« Last Edit: October 10, 2012, 07:58:35 am by brononius »
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