aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-14 23:20:19 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-14 23:20:19 -0500
commit03d8d97ce9a3468b060e462f8480a36a76956415 (patch)
tree428f61823bb3e547e2f59d03349ab9c911e9d63e
parentfb14bbfab6d23cac1fc987a6190c11b41fadc4d7 (diff)
Documentation links for philips hue website to official docs added to all file headers.
-rw-r--r--bridge.go4
-rw-r--r--group.go1
-rw-r--r--light.go5
-rw-r--r--scene.go3
-rw-r--r--schedule.go1
5 files changed, 10 insertions, 4 deletions
diff --git a/bridge.go b/bridge.go
index 5d1ea35..01dd98c 100644
--- a/bridge.go
+++ b/bridge.go
@@ -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
diff --git a/group.go b/group.go
index 3c99074..e844603 100644
--- a/group.go
+++ b/group.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/groups-api
package hue
diff --git a/light.go b/light.go
index 6866b38..05e270a 100644
--- a/light.go
+++ b/light.go
@@ -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
diff --git a/scene.go b/scene.go
index 06b754a..da26718 100644
--- a/scene.go
+++ b/scene.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/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