jangala-dev / jangala-dev/devicecode-lua

Network stats (modem, wifi, wan rx_bytes, rx_packets etc) not being sent at the right intervals

Aperta
#297 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@rslater-cs ci sta già lavorando.

Dal 6/7/2026.

Lingua principale
Lua
Stelle
1
Fork
0
Merge medio
6g 8h
PR unite (30g)
6

Descrizione

There is a type of stat in config called network stat that sets up a diff trigger of 5% change to send stats such as modem.1 rx_bytes, wifi.hp.1.rd2.1 tx_bytes etc.

These stats in old devicecode would read the total values from the file descriptors and apply a 5% difference trigger, so before sending up the delta from the previous value.

I have been looking at the stats from my box which has been running all morning and there is only a single modem.1 rx_bytes sent up:
https://cloud.janga.la/grafana/d/e672a5bd-de9d-4b09-b681-7846b5d327dc/live-box-monitor?orgId=1&var-serial=BB7YJWP7LDUAGF&var-id=ffc72889-ebf1-49ea-8c07-b174623a3664&var-filter_keyword=mcu&from=1783298050440&to=1783338726988&editPanel=7

There are days when multiple stats are sent up, but it looks like it is waiting longer than it should to send up.
This requires further investigation.
A test would be to leave the box on without any connections (it will naturally idly consume small amounts of data) and observe the telemetry in grafana.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.