One line
curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- \
--run --device 192.168.100.1
Open http://127.0.0.1:8000. No sudo, no system packages, nothing outside ~/.local/share/hitron.
Reverse-engineered from a signed CODA-60 firmware image
Every route, field, and quirk of the /1/Device console API — plus a
single exporter that speaks Prometheus, Telegraf, Grafana, and OpenTelemetry
for CODA6X, CODA-57, and HT-EM5.
curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- --run
GET /1/Device/CM/DsInfo
{
"errCode": "000",
"Freq_List": [
{
"portId": 25,
"frequency": "267000000",
"signalStrength": "8.098",
"snr": "43.377",
"channelId": "1",
"correcteds": "0",
"uncorrect": "0"
}
]
}
Field names and casing are the firmware's own.
From a clean checkout to a dashboard. The long version is in docs/GETTING-STARTED.md.
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
hitron coda60 192.168.100.1 | head
Read routes work without a login on the analyzed firmware. Writes need hitron coda60-… and --yes-really-do-this.
hitron-exporter --port 9877 \
--coda60 192.168.100.1 \
--ht-em5 192.168.0.212 \
--coda57 192.168.100.2
Also serves /healthz, /api/v1/samples, and /api/v1/logs.
scrape_configs:
- job_name: hitron
static_configs:
- targets: ["192.168.1.10:9877"]
A ready-made stack lives in deploy/compose.yaml.
curl -O https://raw.githubusercontent.com/Netquor/hitron/main/dashboards/hitron-coda6x.json
# Grafana → Dashboards → New → Import → upload
Or run hitron grafana --dir deploy/grafana for provisioning.
Pick an operation, fill the path, send it. When this page is served by hitron site, the base URL is /proxy and the browser never touches the device directly.
Static hosting (GitHub Pages) cannot call http://192.168.100.1 because of mixed content and CORS.
Run hitron site --device 192.168.100.1 locally and use /proxy.
Try GET /1/Device/CM/DsInfo to populate the RF charts below.
Send a request to see the response.
The published page is static, so it cannot call your modem. One line installs an isolated virtualenv, starts the site, and proxies /proxy to the gateway on the same origin.
curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- \
--run --device 192.168.100.1
Open http://127.0.0.1:8000. No sudo, no system packages, nothing outside ~/.local/share/hitron.
curl -fsSL https://hitron.netquor.dev/install.sh | bash -s -- \
--run --device 192.168.100.1 --read-only
The proxy answers GET/HEAD only and returns 403 for anything that could reboot the modem.
git clone https://github.com/Netquor/hitron
cd hitron && python3 -m venv .venv
. .venv/bin/activate && pip install -e .
hitron site --device 192.168.100.1
Charts fill from the responses you fetch, or from --once JSON pasted below. Nothing is uploaded anywhere; history is in localStorage.
Two dashboards ship in the repo and in the provisioning bundle. Panels cover RF, provisioning, wireless, hosts, MoCA, and exporter health.
Downstream/upstream power and SNR, corrected and uncorrectable codewords, OFDM/OFDMA locks, Wi-Fi clients, host count, MoCA, and scrape errors.
MoCA link, node inventory, PHY-rate matrix, Ethernet counters, and configured bands for every HT-EM5 bridge.
Prometheus rules for source down, provisioning failure, power out of spec, low SNR, uncorrectable errors, MoCA link down, and slow polls.
deploy/compose.yaml, adjust the device IPs in deploy/prometheus/prometheus.yml, then docker compose up -d.http://localhost:3000 (admin / admin on first boot).source template variable to your exporter target name.The same normalized series feed Prometheus, Telegraf, OpenTelemetry, and plain JSON. No second mapping table to rot.
hitron-exporter --port 9877 --coda60 192.168.100.1
curl -s http://127.0.0.1:9877/metrics | head
# modem_downstream_channel_power_dbmv{source="192.168.100.1",channel_id="1"} 8.098
# modem_downstream_channel_snr_db{source="192.168.100.1",channel_id="1"} 43.377
# modem_upstream_channel_power_dbmv{source="192.168.100.1",channel_id="10"} 31.0
# hitron_exporter_up{source="192.168.100.1",kind="coda60"} 1
# /etc/telegraf/telegraf.conf
[[inputs.exec]]
commands = ["/opt/hitron/bin/hitron-exporter --coda60 192.168.100.1 --once --format telegraf"]
data_format = "influx"
interval = "30s"
timeout = "25s"
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "$INFLUX_TOKEN"
organization = "home"
bucket = "hitron"
Telegraf consumes the Influx line protocol on stdout; no listener or plugin is required.
hitron-exporter --coda60 192.168.100.1 \
--otlp-endpoint http://otel-collector:4318/v1/metrics
# The exporter posts OTLP/HTTP JSON. Point an otlphttp exporter at your backend:
exporters:
otlphttp:
endpoint: https://otlp.example.com
service:
pipelines:
metrics:
receivers: [otlp]
exporters: [otlphttp]
hitron-exporter --coda60 192.168.100.1 --once --format json
hitron-exporter --coda60 192.168.100.1 --once --format otlp # inspect the payload
curl -s http://127.0.0.1:9877/api/v1/samples | jq '.[0]'
Two different logs: the device's own DOCSIS event log, and this page's request history. Both stay local.
| Time | Priority | Type | Event |
|---|---|---|---|
| Fetch to load. | |||
| Time | Method | Path | Status | ms |
|---|