Data Visualization app for vnStat.
This is an Application in development, intended to be a data visualization interface to read vnStat reports in the big screen. The app only shows the latest information from the reports, only consolidated values. Historic data is not available because there is no such data to be used on the vnStat database, but that's ok, the information you get is enough!
Check out the Demo!
/build
to your server folder /public_html
.Write a command at Crontab service to output the vnStat data every 5 minutes inside the /path/to/localhost/public_html/api/vnstat.json
file.
crontab -e
*/5 * * * * /path/to/bin/vnstat --json > /path/to/localhost/public_html/api/vnstat.json
changing the paths according to your vnstat and localhost instalattion.Install the PHP Server.
cd path/to/your/folder
php -S localhost:8000
Install the http-server.
cd path/to/your/folder
http-server
You can use any other web server like Laravel Valet, Mamp, Xampp, etc. Just host the app on your /public
folder and setup the Crontab service.
At /languages
folder you can write a file to translate the app. Just copy one the files and translate it. Don't forget to name your file with your language code, the app will load it automatically according to your browser language.
You can build themes for this tool, to create a custom theme follow these steps.
/static/themes
to the place you want to save it, like /custom/themes
./api/themes.json
and add it to the theme list to get it available on the dashboard.vnStat from Vergoh, Photos from kevin laminto and John Peters, wallpapers from the internet (couldn't find the authors).