diff --git a/README.md b/README.md index 5b1f483..8465a6f 100644 --- a/README.md +++ b/README.md @@ -122,7 +122,7 @@ echo "$BRIDGE_IP $USERNAME" ``` git clone https://github.com/mperlet/huevent.git && cd huevent -docker run --rm -v "$PWD":/huevent:Z -w /huevent -e GOOS=linux -e GOARCH=amd64 golang:1.12.4-stretch go build huevent.go +docker run --rm -v "$PWD":/huevent:Z -w /huevent -e GOOS=linux -e GOARCH=amd64 golang:1.15.2-buster go build huevent.go ``` ## Examples diff --git a/huevent.go b/huevent.go index b14b980..eec7488 100644 --- a/huevent.go +++ b/huevent.go @@ -88,10 +88,10 @@ func myUsage() { func pairBridge(configpath string) { if DEBUG { - fmt.Printf("pair bridge, ask https://www.meethue.com/api/nupnp\n") + fmt.Printf("pair bridge, ask https://discovery.meethue.com/\n") } - resp, err := http.Get("https://www.meethue.com/api/nupnp") + resp, err := http.Get("https://discovery.meethue.com/") if err != nil { panic(err) @@ -106,7 +106,7 @@ func pairBridge(configpath string) { } if DEBUG { - fmt.Printf("response from https://www.meethue.com/api/nupnp %s\n", body) + fmt.Printf("response from https://discovery.meethue.com/ %s\n", body) } var hueBridges = []hueBridgeResponse{}