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

Update ROUTER_IP env #7

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ services:
- INFLUX_DB=modem-stats
- PING_TARGETS=1.1.1.1,8.8.8.8,bbc.co.uk
- ROUTER_TYPE=superhub3
- IP_ADDRESS=192.168.100.1
- ROUTER_IP=192.168.100.1
restart: unless-stopped
```

Expand Down Expand Up @@ -158,45 +158,46 @@ Additional information depends on the model.
**Virgin Media Superhub 3<br/>
Ziggo Connectbox:**
* `ROUTER_TYPE=superhub3` or `--modem=superhub3`
* `IP_ADDRESS` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)
* `ROUTER_IP` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)

**Virgin Media Superhub 4:**
> **:warning: Warning:** Despite this statistics parser being fully functional, after some time the Superhub 4 fails to provide valid statistics until the device is rebooted. This is not an issue with the parser, but is an issue with the Superhub itself. [Issue](https://github.com/msh100/modem-stats/issues/2).
* `ROUTER_TYPE=superhub4` or `--modem=superhub4`
* `IP_ADDRESS` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)
* `ROUTER_IP` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)

**Virgin Media Superhub 5:**
* `ROUTER_TYPE=superhub5` or `--modem=superhub5`
* `IP_ADDRESS` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)
* `ROUTER_IP` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)

**Com Hem WiFi Hub C2:**
(This is likely to work on any Sagemcom DOCSIS modem)
* `ROUTER_TYPE=comhemc2` or `--modem=comhemc2`
* `IP_ADDRESS` or `--ip=x.x.x.x` (defaults to `192.168.10.1`)
* `ROUTER_IP` or `--ip=x.x.x.x` (defaults to `192.168.10.1`)
* `ROUTER_USER` or `--username=admin` (defaults to `admin`)
* `ROUTER_PASS` or `--password=password` (defaults to `admin`)

**Sky Hub 2:**
* `ROUTER_TYPE=skyhub2`
* `IP_ADDRESS` or `--ip=x.x.x.x` (defaults to `192.168.0.1`)
* `ROUTER_IP` or `--ip=x.x.x.x` (defaults to `192.168.0.1`)
* `ROUTER_USER` or `--username=admin` (defaults to `admin`)
* `ROUTER_PASS` or `--password=password` (defaults to `sky`)

**Ubee UBC1318:**
* `ROUTER_TYPE=ubee`
* `IP_ADDRESS` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)
* `ROUTER_IP` or `--ip=x.x.x.x` (defaults to `192.168.100.1`)


### Example Usage

```
$ ROUTER_TYPE=superhub3 IP_ADDRESS=192.168.100.1 go run sh-stats/*.go
downstream,channel=3,id=10,modulation=QAM256,scheme=SC-QAM frequency=211000000,snr=403,power=71,prerserr=300,postrserr=0
downstream,channel=9,id=16,modulation=QAM256,scheme=SC-QAM frequency=259000000,snr=409,power=68,prerserr=72,postrserr=0
...
$ go run sh-stats/*.go --modem=superhub3 --ip=192.168.100.1
downstream,channel=3,id=10,modulation=QAM256,scheme=SC-QAM frequency=211000000,snr=403,power=71,prerserr=300,postrserr=0
downstream,channel=9,id=16,modulation=QAM256,scheme=SC-QAM frequency=259000000,snr=409,power=68,prerserr=72,postrserr=0
$ docker run --rm -it \
-e ROUTER_TYPE=comhemc2 \
-e ROUTER_IP=10.0.1.1 \
-e ROUTER_PASS=SuperSecure \
-e INFLUX_URL=http://influxdb:8086 \
-e INFLUX_DB=modem-stats \
-e FETCH_INTERVAL=1 \
msh100/modem-stats
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not change this, but instead, make it work again.

It should be something like

go run main.go --modem=superhub3 --ip=192.168.100.1

...
```

Expand Down