Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate in latest arm docker does not work #2

Open
sbkg0002 opened this issue Jun 29, 2019 · 1 comment
Open

generate in latest arm docker does not work #2

sbkg0002 opened this issue Jun 29, 2019 · 1 comment

Comments

@sbkg0002
Copy link

Hi,

First of all; many thanks for creating this exporter!

The generate function of armv7 docker build crashes:

$ docker run -it --rm --entrypoint /bin/hue_exporter mitchellrj/hue_exporter:latest-arm7 generate
INFO[0000] Starting hue_exporter (version=0.2.2, branch=master, revision=cea677bb6afc96e50885cc6d347ca0faf165a939)  source="main.go:117"
INFO[0000] Build context (go=go1.12, user=root, date=20190319-22:02:00)  source="main.go:118"
panic: Error while searching for Hue bridges on the local network: unable to locate bridge


goroutine 1 [running]:
main.generateConfig(0x1c0e200)
	/go/src/github.com/mitchellrj/hue_exporter/generate.go:16 +0x500
main.main()
	/go/src/github.com/mitchellrj/hue_exporter/main.go:123 +0x428

Any ideas? I cant do Go, so cant fix it :(

@gpkvt
Copy link

gpkvt commented Jul 3, 2020

Seems to be a general problem. But you can create the config by hand, just execute the following command during the first 30 seconds after you pressed the button on your hue bridge:

curl --data "{\"devicetype\": \"hue_exporter#hue_exporter\"}" http://<YOUR_BRIDGE_IP>/api

You will get an username in return. Use this as API-Key in your hue_exporter.yml (see hue_exporter.example.yml for details).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants