No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
config.skeleton.json
lights-checker.go

README.md

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.