Go to file
2017-08-18 23:43:39 +01:00
.gitignore updated gitignore 2017-08-18 23:43:39 +01:00
config.skeleton.json initial 2017-08-18 22:19:36 +01:00
lights-checker.go fixed time configuration 2017-08-18 22:25:42 +01:00
README.md initial 2017-08-18 22:19:36 +01:00

Hue Bulb Checker

Automatically check-up on bulb status at night and alert if unusual behaviour.

Potentially useful for knowing when lights were turned on when they're not supposed to be.

The program uses Mailgun to send email notifications. GoCron is used as an internal scheduler.

Features

  • Checks status of all bulbs connected to the specified Hue bridge every minute between specified hours.
  • If there is are bulbs turned on, then send an email notification to the specified address.
  • If bulbs are turned on for consecutive minutes, multiple emails will not be sent.

Preparing

  • Obtain a Hue bridge username for your bridge
  • Setup a Mailgun account, configure your domain for sending through Mailgun, and obtain your private and public key.
  • Create a config.json with the required information using the skeleton file supplied.

Using the program

Run go get to download the Mailgun and GoCron dependencies, and then go run light_checker.