You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,12 +8,11 @@ An extensive Philips Hue client library for [`Go`](https://golang.org/) with an
10
8
11
9
12
10
## Installation
13
-
Get the package
11
+
Get the package and import it in your code.
14
12
```
15
13
go get github.com/amimof/huego
16
14
```
17
-
18
-
Include it in your code. You may use [`New()`](https://godoc.org/github.com/amimof/huego#New) if you have already created an user and know the IP address to your bridge.
15
+
You may use [`New()`](https://godoc.org/github.com/amimof/huego#New) if you have already created an user and know the IP address to your bridge.
19
16
```Go
20
17
package main
21
18
@@ -33,8 +30,7 @@ func main() {
33
30
fmt.Printf("Found %d lights", len(l))
34
31
}
35
32
```
36
-
37
-
Discover a bridge on your network with [`Discover()`](https://godoc.org/github.com/amimof/huego#Discover) and create a new user with [`CreateUser()`](https://godoc.org/github.com/amimof/huego#Bridge.CreateUser).
33
+
Or discover a bridge on your network with [`Discover()`](https://godoc.org/github.com/amimof/huego#Discover) and create a new user with [`CreateUser()`](https://godoc.org/github.com/amimof/huego#Bridge.CreateUser).
38
34
```Go
39
35
funcmain() {
40
36
bridge, _:= huego.Discover()
@@ -49,10 +45,6 @@ func main() {
49
45
50
46
See [godoc.org/github.com/amimof/huego](https://godoc.org/github.com/amimof/huego) for the full package documentation.
51
47
52
-
## Testing
53
-
54
-
The tests requires an accessible Philips Hue Bridge IP address and a pre-configured username for authenticating. Before running the tests, make sure to set the environment variables `HUE_HOSTNAME` and `HUE_USERNAME`. If you don't have an username, you may create one using [`CreateUser()`](https://godoc.org/github.com/amimof/huego#Bridge.CreateUser) or refer to the official [Getting Started Guide](https://www.developers.meethue.com/documentation/getting-started).
55
-
56
48
## Contributing
57
49
58
-
All help in any form is highly appreciated and your are welcome participate in developing `Huego` together. To contribute, clone the `master` branch and create a `Pull Request`. If you want provide feedback, open up a `New Issue` or contact me personally.
50
+
All help in any form is highly appreciated and your are welcome participate in developing `Huego` together. To contribute submit a `Pull Request`. If you want to provide feedback, open up a Github `Issue` or contact me personally.
0 commit comments