Vaskivskyi / asusrouter

API wrapper for communication with ASUSWRT-powered routers using HTTP protocol
Apache License 2.0
66 stars 8 forks source link

Traffic analyzer info #478

Open csm10495 opened 7 months ago

csm10495 commented 7 months ago

Hi,

Is there a way to use this to fetch usage information? This is the type of things in the "Traffic Analyzer" section of the webui:

image

Right now I'm doing some sketchy logic where I ssh to the router, fetch the /jffs/.sys/TrafficAnalyzer/TrafficAnalyzer.db file then locally fudge with it. Though was wondering if a more legit API exists.

Thanks!

Vaskivskyi commented 6 months ago

Hello. Sorry for such a long delay. I completely missed your issue.

Yes, the traffic info can potentially be added to AsusRouter (and even planned already), but is not yet implemented. Unfortunately, I don't have any free time lately (and will probably not have it for 1-2 more months), so I cannot yet guarantee any timeframe.

Meanwhile, which exactly part of the info from the router are you interested in? Total traffic per device (or including types of traffic) or apps?

csm10495 commented 6 months ago

Hi! For me it's really just total download/upload usage per device in the calendar month.

I use it to keep an eye on my data cap (and figure out what is using a lot of data when running low).

There is another process that notifies me at data cap percentages based on this info.