From 03d8d97ce9a3468b060e462f8480a36a76956415 Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Sun, 14 Feb 2016 23:20:19 -0500 Subject: Documentation links for philips hue website to official docs added to all file headers. --- bridge.go | 4 ++++ group.go | 1 + light.go | 5 +++-- scene.go | 3 +-- schedule.go | 1 + 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 -- cgit v1.2.3