Skip to content

Cmd-line dashboard app for Tenda n301 V5.07.56.1 Routers.

Notifications You must be signed in to change notification settings

rayanfer32/tenda-cmd-dash

Repository files navigation

Simple Cmd-line dashboard app for Tenda n301 V5.07.56.1 Routers.

Cmd-line Dashboard

dash

Finding the login cookie (incase you cannot see stats)

finding_cookie

Run On Windows

run.bat

Make changes in config.py

ROUTER_IP = '192.168.0.1'
ROUTER_PASS = "admin"
TOTAL_BW = 100/8 * 1024  # KBps
MAX_BLOCKS = 32
WAIT_BEFORE_UPDATE = 1
REQ_COOKIE = None

Api

import api

resp = api.getAllStatsJson()
print(resp)

Response

{
  "devices":[
    {
      "ip":"192.168.0.100",
      "upKB":0.0,
      "downKB":0.0,
      "sentMsg":168380.0,
      "sentMB":26.5,
      "recievedMsg":334441.0,
      "recievedMB":352.0,
      "name":"*.100",
      "mac":"40:B0:76:71:F0:30",
      "jank":"0",
      "leaseTime":64944.0,
      "totalSpeed":0.0,
      "totalUsedMB":378.5
    },
    {
      "ip":"192.168.0.101",
      "upKB":0.0,
      "downKB":0.0,
      "sentMsg":647728.0,
      "sentMB":59.4,
      "recievedMsg":2436138.0,
      "recievedMB":3046.3,
      "name":"M2003J15SC-RedmiNote",
      "mac":"2A:52:73:F1:FE:53",
      "jank":"0",
      "leaseTime":78303.0,
      "totalSpeed":0.0,
      "totalUsedMB":3105.7
    },
    {
      "ip":"192.168.0.102",
      "upKB":0.0,
      "downKB":0.0,
      "sentMsg":229523.0,
      "sentMB":127.5,
      "recievedMsg":581197.0,
      "recievedMB":289.2,
      "name":"POCOM2Pro-POCOM2Pro",
      "mac":"E0:1F:88:23:C4:92",
      "jank":"0",
      "leaseTime":77659.0,
      "totalSpeed":0.0,
      "totalUsedMB":416.7
    },
    {
      "ip":"192.168.0.103",
      "upKB":1.4,
      "downKB":2.1,
      "sentMsg":791029.0,
      "sentMB":104.3,
      "recievedMsg":1834449.0,
      "recievedMB":620.3,
      "name":"rayanpc",
      "mac":"14:18:77:B2:69:F4",
      "jank":"0",
      "leaseTime":59203.0,
      "totalSpeed":3.5,
      "totalUsedMB":724.6
    },
    {
      "ip":"192.168.0.105",
      "upKB":0.0,
      "downKB":0.0,
      "sentMsg":156394.0,
      "sentMB":15.3,
      "recievedMsg":268227.0,
      "recievedMB":336.7,
      "name":"lg",
      "mac":"90:00:4E:91:54:5D",
      "jank":"0",
      "leaseTime":83542.0,
      "totalSpeed":0.0,
      "totalUsedMB":352.0
    },
    {
      "ip":"192.168.0.109",
      "upKB":0.0,
      "downKB":0.0,
      "sentMsg":25800.0,
      "sentMB":1.4,
      "recievedMsg":187897.0,
      "recievedMB":267.4,
      "name":"osmc",
      "mac":"B8:27:EB:DF:C9:F8",
      "jank":"0",
      "leaseTime":74897.0,
      "totalSpeed":0.0,
      "totalUsedMB":268.8
    }
  ],
  "metrics":{
    "totalDownKB":2.1,
    "totalUpKB":1.4,
    "totalSpeed":3.5,
    "totalSentMB":334.4,
    "totalRecievedMB":4911.9,
    "load":0.03,
    "totalUsedGB":5.12
  }
}

About

Cmd-line dashboard app for Tenda n301 V5.07.56.1 Routers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published