Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vnstat json does not have an id field #53

Open
jeffbrissette opened this issue Apr 23, 2021 · 2 comments
Open

vnstat json does not have an id field #53

jeffbrissette opened this issue Apr 23, 2021 · 2 comments

Comments

@jeffbrissette
Copy link

More an FYI, my version of vnstat does not dump the interface name as an id , rather it is name.

my version is
vnStat 2.6

@tomangert
Copy link

I don't think this branch works well with vnstat 2.x yet.

I have a version here that works for me:
https://github.com/tomangert/vnstat-dashboard

Feel free to try it

@jeffbrissette
Copy link
Author

I actually got it work no problem with a few tweaks to the code for name instead id and changing the date format to something more ISO. Personally, I might write something for myself. The version of vnstat I have uses an SQLite db, which is pretty easy for PHP to read and do queries against.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants