LinuxMCE Forums
May 19, 2013, 06:23:17 am GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: [1]
  Print  
Author Topic: 0810: respond to events: definition of NIGHT and DAY and use of <>  (Read 1054 times)
johanr
Veteran
***
Posts: 144


View Profile
« on: February 23, 2010, 10:19:38 pm »

Hi!

1. maybe this is clear to everyone but not me  Embarrassed 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
Logged

tortho
Regular Poster
**
Posts: 45


View Profile
« 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.
Logged

johanr
Veteran
***
Posts: 144


View Profile
« 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
Logged

jimbodude
Guru
****
Posts: 372


View Profile
« Reply #3 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
Logged
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #4 on: October 09, 2012, 12:36:05 pm »


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

Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
posde
Administrator
LinuxMCE God
*****
Posts: 2620


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #5 on: October 09, 2012, 02:52:57 pm »

http://wiki.linuxmce.org/index.php/Event_criteria
Logged

brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #6 on: October 09, 2012, 05: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?
Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
posde
Administrator
LinuxMCE God
*****
Posts: 2620


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #7 on: October 09, 2012, 06:34:40 pm »

Sunset, sunrise, night and day are calculated based on your geolocation.
Logged

hari
Administrator
LinuxMCE God
*****
Posts: 2412



View Profile WWW
« Reply #8 on: October 09, 2012, 08: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.
Logged

rock your home - http://www.agocontrol.com home automation
brononius
Guru
****
Posts: 360


Trying to keep it simple and centralized...


View Profile WWW
« Reply #9 on: October 10, 2012, 06: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...  Wink
« Last Edit: October 10, 2012, 06:58:35 am by brononius » Logged

Version: linuxMCE 1004 (v 2012-07-01)
Extra's: Cacti, webmin, phpmyadmin, joomla

Server: MSI MS-7519 / E7400 2,8GB / 4GB / SSD 60GB / Radeon HD4350 / RTL8111 - 3C905C-TX
Orbiters: HTC Desire Z, HP PocketPC, Samsung Galaxy S, iPAD, ASUS eeePAD
Automation: EIB technology, KNX IP ROUTER 750
Phones: Cisco 7940, Cisco 7960
Camera's: IPCAM02
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!