jamesnetherton/homehub-metrics-exporter

Cannot login to Smarthub 2

zokolabs opened this issue · 2 comments

the username admin and the password is not accepted by the router always defaults to error message
Home Hub login failed. Unable to collect metrics

SmartHub 2 is not supported. It uses a completely different set of APIs.

SmartHub 2 exposes some data via a single xml file that can be pulled with no authentication.

I found the info here: https://blog.habets.se/2015/03/Scraping-data-from-a-BT-home-hub-5.html

I wrote a crass mini exporter as a perl script (fired using netcat) that exposes the up/down speeds and byte counters and that was enough for Prometheus/Grafana. Can't get anything more useful I don't think.

If I get a chance I'll see if I can submit a PR to extend James' code to handle a SmartHub 2 but I'm just getting used to Go and Prometheus.