Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spookey/gatestats
utilize pelican to get your daily vnstat graph!
https://github.com/spookey/gatestats
Last synced: about 1 month ago
JSON representation
utilize pelican to get your daily vnstat graph!
- Host: GitHub
- URL: https://github.com/spookey/gatestats
- Owner: spookey
- Created: 2014-03-21T22:34:31.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-05-27T18:04:58.000Z (over 10 years ago)
- Last Synced: 2024-10-19T17:29:25.313Z (3 months ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
#gatestats
Uses [pelican](http://getpelican.com), [vnstat](http://humdi.net/vnstat/) and [some weird python code](https://github.com/spookey/vnstat-pelican-control) to generate a daily traffic overview.
See it in action [here](http://gatestats.freifunk-wiesbaden.de/).
See [vnstat-pelican-control](https://github.com/spookey/vnstat-pelican-control) for a list of command-line flags and how to use them.
* install and setup vnstat correctly at your gateway ([ArchLinux wiki article](https://wiki.archlinux.org/index.php/Vnstat))
* create a passwordless ssh-key for your gateway
* place it in `~/.ssh/` on your webserver
* clone this repo to your webserver
* you do not need to run `pelican-quickstart`
* all necessary files for pelican are in this repo (and their submodules)
* update all submodules
* symlink your webserver's document folder to pelican's output folder:e.g.:
ln -s /var/www/gatestats ~/software/gatestats/output
* add your gateway to the `config.py`
* setup a crontab entryonce daily, e.g.:
23 23 * * * /usr/local/bin/python3.3 $HOME/software/gatestats/vnstat-pelican-control/main.py >> $HOME/software/gatestats/_cronjob.log 2>&1
There are no deploy-options from pelican used, the site is generated directly at the webserver.