Linuxmce Hacks and Tips

Add intelligence to your home!

Posts Tagged ‘sunrise

Tip #2: Catch the sun

leave a comment »

LinuxMCE gives you an option to perform some action at sunset and sunrise time. To be able to catch those events you have to specify Longitude and Latitude. Go to Wizard -> Basic Info -> Installation and set your country, region and city. Longitude and Latitude will be defined according to those settings.

Now you may see in the DCERouter.log following messages:

08/19/07 17:59:37.508 tSunset: Sun Aug 19 19:30:31 2007
08/19/07 17:59:37.508 tSunsetTomorrow: Mon Aug 20 19:29:18 2007
08/19/07 17:59:37.508 tSunrise: Sun Aug 19 06:11:38 2007
08/19/07 17:59:37.508 tSunriseTomorrow: Mon Aug 20 06:12:22 2007

Go to Wizard –> Events Handler –> Respond to Events and add new one. You should specify a some useful description and choose events: Sunrise or Sunset. After that you will able to attach some actions to the created event: switch ON/OFF lighting, sparking system or something different.

Advertisements

Written by nite_man

August 20, 2007 at 1:47 pm