diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-14 23:20:19 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-14 23:20:19 -0500 |
commit | 03d8d97ce9a3468b060e462f8480a36a76956415 (patch) | |
tree | 428f61823bb3e547e2f59d03349ab9c911e9d63e | |
parent | fb14bbfab6d23cac1fc987a6190c11b41fadc4d7 (diff) |
Documentation links for philips hue website to official docs added to all file headers.
-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 |