xperimental / netatmo-exporter

Prometheus exporter for Netatmo sensor data.
MIT License
45 stars 18 forks source link

the exporter doesn't save the ID #32

Closed giuliomagnifico closed 1 year ago

giuliomagnifico commented 1 year ago

Hi, I don't know if it's my fault, since I know nothing about go but if I add the ID, then it asks for the client secret, I write it, and then again asks for the client ID

root@Grafana:~/netatmo-exporter# netatmo-exporter --client-id 6370....
FATA Error in configuration: need a NetAtmo client secret 
root@Grafana:~/netatmo-exporter# netatmo-exporter --client-secret Y98G...
FATA Error in configuration: need a NetAtmo client ID 

I also tried to manually add all the info to config.go then I compiled again all but the results is the same.

Thanks

giuliomagnifico commented 1 year ago

Okay, I'm an idiot... Sorry, solved simply by adding all in a single line:

root@Grafana:~# netatmo-exporter -s Y9... -i 6370... -p Ea... -u giuliomagnifico@gmail.com
INFO Login as giuliomagnifico@gmail.com           
INFO Listen on :9210...