Bitcoin and cryptocurrency statistics developed for http://bitcoinexchangerate.org
- GNU/Linux with Webmin installed.
- Bandwidth monitoring enabled in Webmin.
- Mysql database
- sudo apt-get install python-mysql.connector
- Create a user and make /var/log/bandwidth readable by that user.
- Copy default_settings.py to settings.py and set your database credentials.
- Import create_table.sql with
mysql -u user -p database < create_table.sql
- Run bandwidth monitor script in background with
python tail_bandwidth.py &
- Add to crontab
*/5 * * * * cd /path/to/bitstats && python cron.py