pbaehr
March 7th, 2006, 11:40 AM
Many of my lights are controlled via X10 by my Ubuntu machine. I use a program called bottlerocket to communicate with the X10 controller.
Currently, I use cron to trigger several scripts throughout the day. For example, at 6AM various lights begin to fade on for 45 minutes to assist me in getting my *** out of bed.
What I'd like to try to set up is a program that either calculates (seems hard) or looks up the time for sunset each day and triggers a shell script to begin fading in lights to compensate for the failing natural light.
Any thoughts on how it should be set up? It is proving a more complicated undertaking than I'd originally thought.
Currently, I use cron to trigger several scripts throughout the day. For example, at 6AM various lights begin to fade on for 45 minutes to assist me in getting my *** out of bed.
What I'd like to try to set up is a program that either calculates (seems hard) or looks up the time for sunset each day and triggers a shell script to begin fading in lights to compensate for the failing natural light.
Any thoughts on how it should be set up? It is proving a more complicated undertaking than I'd originally thought.