edirpedro / vnstat-dashboard

Data Visualization app for vnStat
MIT License
8 stars 1 forks source link
react typescript vnstat

vnStat Dashboard

Data Visualization app for vnStat.

vnStat Dashboard

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!

How to install?

Crontab

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.

Mac OS and Linux

Web Servers

PHP

Install the PHP Server.

cd path/to/your/folder
php -S localhost:8000

Node.js

Install the http-server.

cd path/to/your/folder
http-server

Other options

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.

Translations

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.

Themes

You can build themes for this tool, to create a custom theme follow these steps.

vnStat Dashboard

Credits

vnStat from Vergoh, Photos from kevin laminto and John Peters, wallpapers from the internet (couldn't find the authors).