Commit graph

12 commits

Author SHA1 Message Date
bcb221cc51 Add the dark_at condition
Use the EarthTools Webservices to determine when the sun sets and when it
rises.  Use these moment to determine when it's dark.
(See also: http://www.earthtools.org/webservices.htm#usage)
2015-01-01 16:56:52 +01:00
b676d6d3e6 Add the weekdays condition 2014-11-22 12:11:08 +01:00
5820e87af6 Fix error in a log message 2014-11-20 21:37:02 +01:00
1f1a40d176 Rescue and log failed rule executions 2014-11-20 09:01:42 +01:00
4d3f401459 Rescue and log a failed refresh 2014-11-20 08:47:47 +01:00
bc9f104d9b Mention the version in the starting log message 2014-11-16 11:55:30 +01:00
e712249458 Allow for bridge.yml to be absent 2014-11-16 11:53:58 +01:00
336abfc291 Prepend the config directory to the .yml file paths 2014-11-16 11:46:02 +01:00
8ffb5cf70a Log error messages when exceptions are rescued 2014-11-16 11:45:34 +01:00
d89d2e2c22 Rename options to config 2014-11-16 11:44:48 +01:00
5eb6ddb307 Move default configuration to the Hued module; add config_dir 2014-11-16 11:43:54 +01:00
e2921f9c2e Split up the code into separate files
* Rename the Hued class to Hued::Engine so that Hued can be the containing
  module
* Split off the version to lib/hued/version.rb
* Undo Rule being a nested class of Engine
2014-11-16 11:25:13 +01:00