alexandermarston / vnstat-dashboard

A responsive web UI to view network traffic statistics provided by vnStat (with support for version 2.x)
https://alexandermarston.github.io/vnstat-dashboard/
144 stars 60 forks source link

No data displayed with vnStat2.1 #28

Open nicholascw opened 5 years ago

nicholascw commented 5 years ago

The project works fine until some time after my system upgrade. I checked the upgrade history seems it could be caused by the big version upgrade. Since poor on logging (seems) I have no idea how to report this issue in detail but let you know my guess. (P.S. Now I tasted the pain of bleeding-edge as an Arch Linux user ....)

vergoh commented 5 years ago

Based on a quick look, the implementation appears to be using the vnstat --json output but doesn't compare in any way the jsonversion field that is being provided. An upgrade of vnStat from versions 1.x to 2.x changes the json ouput slightly as there's more data available and jsonversion was also incremented from 1 to 2 as a result due to expected compatibility issues.

nicholascw commented 5 years ago

Any update for v2 could we expect? (or a new project?

vergoh commented 5 years ago

See #25 but note that it breaks compatibility with 1.x versions.

benjsc commented 5 years ago

34 should fix the hours display

alexandermarston commented 4 years ago

@nicholascw this should now be resolved - can you please confirm?