-
Notifications
You must be signed in to change notification settings - Fork 9
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
Gateway polling gives cryptic error message when no API key is provided #8
Comments
Running mosquitto in Docker requires proper forwarding of ports, as does the "third option" ("HTTP pushing" from the gateway), so the issue with both of those is/was probably with your Docker setup regarding ports About the polling and the api key: the addition of an api key (bearer token) is a relatively new feature on the gateway, and the previous "recommended way" to run the setup was with authentication disabled on the gateway, since authentication would add an unnecessary amount of hassle without an api key. The same still works, you can run the gateway without authentication and in that case you don't have to copy the api key On top of that, there is a bug that causes rather confusing behavior Until that fix on the gateway is released, there are two options for the "polling mode":
|
Thanks for the quick response and summarizing both options. I stick with the second option and in hindsight, I know why it failed (but was successful with the browser). I still have the standard password protection on the gw, so it was no problem to access the history file by my broweser. But when I log-in to my server and try to download it with wget, it fails, since I don't use any verfication (I assumed only the setup process of the gw is password protected and not the history). In the end, the API key solved all the problems and RuuviBridge is running great 👍 |
Hi,
first of all thanks for the great program. My goal is to have my ruuvi gateway (firmware v1.12.4) collect the data from my 6 ruuvi pro sensors (firmware v.3.31.1) and send it to my local server, where I can display it with Grafana.
I was following the tutorial from ruuvi to set-up an installation for receiving the data, https://ruuvi.com/connecting-ruuvi-gateway-to-a-private-server/ but it failed at the glue logic.
Afterwards, I found your program which seems to be just the right fit. Unfortunately, neither of the 3 offered methods (to receive data from the gateway) seem to work at first.
I can access the gateway in the local network, and had it fully set-up
Ruuvi Gateway’s IP address:
192.168.1.144
Subnet mask:
255.255.255.0
Gateway:
192.168.1.1
DHCP server:
192.168.1.1
and can see the history under http://192.168.1.144/history
history.json.txt
Mosquitto also had problems (I guess this is a problem from Docker and how to forward ports, I don't have experience with Docker) and the third HTTP method stayed silent and never received data. So I went back to the first method, where RuuviBridge is polling the data.
Going back to the first HTTP/1.x error, I though that the data format from ruuvi maybe changed (since I had no problem to download the history data on the browser). It turns outs, that during setup of the Ruuvi gateway it should be not optional to take the API key, but is absolutely necessary to copy it and place it in the config.yml of RuuviBridge. Maybe I missed it in the description, but it would be great if you can add to the comment that it is necessary to add the API key.
The text was updated successfully, but these errors were encountered: