2020-05-14 22:16:54 +02:00
2019-02-12 01:26:41 +01:00
2019-02-12 01:26:50 +01:00
2019-02-08 19:18:07 +01:00
2020-05-14 22:16:54 +02:00
2019-02-10 20:43:22 +01:00
bla
2019-02-09 16:56:58 +01:00
2020-05-14 22:16:54 +02:00
2020-05-14 22:16:54 +02:00
2020-05-14 22:16:54 +02:00
2019-02-09 16:13:31 +01:00
2019-02-08 19:18:07 +01:00
2019-02-14 11:58:16 +01:00
2020-05-14 22:16:54 +02:00
2019-02-14 11:58:36 +01:00
2019-02-20 15:14:52 +01:00
2020-05-14 22:16:54 +02:00
2019-02-11 23:01:08 +01:00
2019-02-20 15:14:30 +01:00
2019-02-10 20:43:22 +01:00

Go Report Card License: GPL v3

go-hue-interface

Connect to a hue bridge

In your code create a hue bridge instance

    func main() {
        // ...
        // create a bridge config
        bridgeConf := &Config{
            Username:         "YOUR_DEVICE_USERNAME", // check below for detailed instructions
            BridgeAddr:       "YOUR_BRIDGE_IP_ADDR", // check below where to find the ip address of the hue
            BridgeAddrScheme: "http",
	    }

        // create bridge
        bridge := NewBridge(config)

        // now do stuff with bridge
        // get ligts as a map of lights over ids
        lights, errLights := bridge.GetLights()
        if errLights {
            fmt.Println("Failed to get lights")
        }

        // Turn all lights on
        for id, _ := range lights {
            bridge.ToggleLight(id, true)
        }
    }
S
Description
No description provided
Readme GPL-3.0
144 KiB
Languages
Go 100%