Author Topic: [SOLVED] DAY/NIGHT = Time or 'timeframe'?  (Read 4336 times)

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
[SOLVED] DAY/NIGHT = Time or 'timeframe'?
« on: November 26, 2012, 07:53:17 am »
Hey,

I'm using several 'respond to events' where i choose DAY/NIGHT to happen different things. fe:
  • lights on when i come home at night
  • lights not on when i come home at day
This is working great btw

Now i was trying to make some things happen when night falls. But for one or the other reason, it seems to fail.
I added:
  • Timed events
  • Days of week: 1,2,3,4,5,6,7
  • Time: NIGHT
  • ...

I'm wondering if we can use the term NIGHT/DAY as actually time, or is this only for a kind of timeframe?
« Last Edit: December 04, 2012, 02:52:59 pm 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

mhorst

  • Veteran
  • ***
  • Posts: 72
    • View Profile
Re: DAY/NIGHT = Time or 'timeframe'?
« Reply #1 on: November 26, 2012, 12:14:58 pm »
Under Advanced, Configuration, Scenarios there is under "Scenarios for Event Handlers" the Sunset and Sunrise events.
I use the Sunset event to close my window shutters, works perfectly.
However, I haven't tried making such an event myself, or one that is specific for the the day of the week or something.

sambuca

  • Guru
  • ****
  • Posts: 462
    • View Profile
Re: DAY/NIGHT = Time or 'timeframe'?
« Reply #2 on: November 26, 2012, 12:16:27 pm »
There are events for sunset and sunrise, you can use those instead.

Also see http://wiki.linuxmce.org/index.php/Event_criteria#Time_of_Day.

br,
sambuca

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: DAY/NIGHT = Time or 'timeframe'?
« Reply #3 on: November 27, 2012, 08:44:20 am »
There are events for sunset and sunrise, you can use those instead.
http://wiki.linuxmce.org/index.php/Event_criteria#Time_of_Day.

I fail to understand it. :$

So i choose a 'respond to events' and in events, i add 'Time of Day = DAY'?
Doesn't this say that it will be triggerd the whole day? Or only at sunrise?

I've also tried to add an advanced event, and in 'New event' i've chosen 'general > sunrise'.
But when i check now the events, this is empty? Is this normal?
« Last Edit: November 27, 2012, 08:48:21 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

brononius

  • Guru
  • ****
  • Posts: 454
  • Trying to keep it simple and centralized...
    • View Profile
    • OnIrIa - linuxMCE blog
Re: DAY/NIGHT = Time or 'timeframe'?
« Reply #4 on: December 04, 2012, 02:52:43 pm »
OK, i figured it out...

  • Add a "Respond To Events"
  • Insert a description
  • Choose from dropdown 'New Event': Sunrise (or sunset)
  • Add you command

So in fact, when you look now at the event, you'll see that the "criteria" are empty.
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