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

[SOLVED] DAY/NIGHT = Time or 'timeframe'?

Started by brononius, November 26, 2012, 07:53:17 AM

Previous topic - Next topic

brononius

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?
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

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

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

#3
Quote from: sambuca on November 26, 2012, 12:16:27 PM
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?
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

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