diff options
-rw-r--r-- | bridge.go | 4 | ||||
-rw-r--r-- | group.go | 1 | ||||
-rw-r--r-- | light.go | 5 | ||||
-rw-r--r-- | scene.go | 3 | ||||
-rw-r--r-- | schedule.go | 1 |
5 files changed, 10 insertions, 4 deletions
@@ -4,6 +4,10 @@ * Copyright (C) 2016 Collin Guarino (Collinux) collin.guarino@gmail.com * License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html */ +// All things start with the bridge. You will find many Bridge.Func() items +// to use once a bridge has been created and identified. +// See the getting started guide on the Philips hue website: +// http://www.developers.meethue.com/documentation/getting-started package hue @@ -4,6 +4,7 @@ * Copyright (C) 2016 Collin Guarino (Collinux) collin.guarino@gmail.com * License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html */ +// http://www.developers.meethue.com/documentation/groups-api package hue @@ -4,8 +4,8 @@ * Copyright (C) 2016 Collin Guarino (Collinux) collin.guarino@gmail.com * License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html */ - // http://www.developers.meethue.com/documentation/lights-api + package hue import ( @@ -113,7 +113,8 @@ func (self *Light) Blink(seconds int) error { blinkMax := LightState{On: true, Bri: uint8(200)} blinkMin := LightState{On: true, Bri: uint8(50)} - // Toggle the light on and off + // Start with near maximum brightness and toggle between that and + // a lesser brightness to create a blinking effect. err := self.SetState(blinkMax) if err != nil { return err @@ -4,6 +4,7 @@ * Copyright (C) 2016 Collin Guarino (Collinux) collin.guarino@gmail.com * License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html */ +// http://www.developers.meethue.com/documentation/scenes-api package hue @@ -37,8 +38,6 @@ func (bridge *Bridge) GetAllScenes() ([]Scene, error) { return []Scene{}, err } - fmt.Sprintf("GET SCENES BODY: ", string(body)) - scenes := map[string]Scene{} err = json.Unmarshal(body, &scenes) if err != nil { diff --git a/schedule.go b/schedule.go index fb0b4d3..5097c79 100644 --- a/schedule.go +++ b/schedule.go @@ -4,6 +4,7 @@ * Copyright (C) 2016 Collin Guarino (Collinux) collin.guarino@gmail.com * License: GPL version 2 or higher http://www.gnu.org/licenses/gpl.html */ +// http://www.developers.meethue.com/documentation/schedules-api-0 package hue |