https://github.com/mkj/tgiistat
Fetch statistics from a TGiiNet-1 modem
https://github.com/mkj/tgiistat
Last synced: about 1 year ago
JSON representation
Fetch statistics from a TGiiNet-1 modem
- Host: GitHub
- URL: https://github.com/mkj/tgiistat
- Owner: mkj
- Created: 2018-03-03T06:00:58.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:55:02.000Z (about 3 years ago)
- Last Synced: 2025-05-06T00:38:47.212Z (about 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TG-1 and TG-789 modem statistics
Fetches statistics from a tgiinet modem. These are made by Technicolor,
sold by Australian ISP iinet.
I've tested with 15.4 firmware (15.53.7004-V1-7-1-CRF557) in bridge mode.
Thanks to Shannon Wynter for his [nbntest](https://github.com/freman/nbntest/), some
details were found there.
Edit `tgiistat.toml` to set your modem's IP and password.
This requires python3.
## Install
```
python3 -m venv init venv
./venv/bin/pip install --upgrade pip
./venv/bin/pip install -r requirements.txt
```
## Usage
```
./venv/bin/python3 tgiistat.py
up_rate 1010
down_rate 4850
up_maxrate 1020
down_maxrate 5480
up_power 17.1
down_power 12.4
up_noisemargin 10.9
down_noisemargin 11.3
up_transferred 193.51
down_transferred 650.39
up_attenuation1 19.3
down_attenuation1 36.0
dsl_uptime 19565
dsl_mode Interleaved
dsl_type ADSL2+
dsl_status Up
```
```
./venv/bin/python3 tgiistat.py --json
{
"up_rate": 1010,
"down_rate": 4850,
"up_maxrate": 1020,
"down_maxrate": 5480,
"up_power": 17.1,
"down_power": 12.4,
"up_noisemargin": 10.9,
"down_noisemargin": 11.3,
"up_transferred": 193.51,
"down_transferred": 650.39,
"up_attenuation1": 19.3,
"down_attenuation1": 36.0,
"dsl_uptime": 19565,
"dsl_mode": "Interleaved",
"dsl_type": "ADSL2+",
"dsl_status": "Up"
}
```