
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Based on Qvnstat 0.1 originaly written in 2008 by Diamantis Dimitris. All the ui code is rewritten from scratch in GTK, the code altered from script to OOP and many modifications have been made to conform with the recent vnstat version (1.10) either using the daemon mode or not. I've used glade3, pyGTK and jeany editor. The app is an indicator app that sits on gnome panel and make use of gnome's notification system to show the network traffic info, the free remaining data and the cost.
ATTENTION: The cost is calculated per KB or MB but not in steps e.g per 10kb!!! The program should be considered as a beta version regarding it's info.
USE THE PROGRAM AT YOUR OWN RISK!
With vnstat you have 2 options to monitor your traffic. You could change the MonthRotate? * Option in /etc/vnstat.conf to match your monthly billing period, or you can manually schedule data counter resets ** EVERY x days! If you run vnstat as a daemon (default), you should have sudo privileges to manual reset!
*Using Monthrotate you also keep a history off all your data as none of it gets deleted!
**Every time you do a manual reset, scheduled or not (via the menu), ALL your data get's deleted and everything starts to count from the beginning.
REQUIREMENTS
vnstat, python, python-notify
TO INSTALL
just extract somewhere, EDIT gtkvnstat.py AND CHANGE BINDIR to the extraction path.¶
More images at http://picasaweb.google.com/nikiforakis.m/Gtkvnstat
10 years ago
version 0.1
make a gkt version of the gui, use appindicator and notify OSD
version 0.2 --initial public version--
many changes in the code to handle both cases (vnstat daemon or vnstat cron)
version 0.2.1
minor fixes when free limit is set on GBs
version 0.2.2
+ Added Nice Mono Icons from Giannis Perrakis
+ Fixed Zero Division Error when Free Limit was set to zero!
+ Fixed Info when free limit was set in GBs and we have downloaded Kbs.
+ Added DEB. Tested in ubuntu. It should work also in debian...
10 years ago
version 0.1
make a gkt version of the gui, use appindicator and notify OSD
version 0.2 --initial public version--
many changes in the code to handle both cases (vnstat daemon or vnstat cron)
version 0.2.1
minor fixes when free limit is set on GBs
version 0.2.2
+ Added Nice Mono Icons from Giannis Perrakis
+ Fixed Zero Division Error when Free Limit was set to zero!
+ Fixed Info when free limit was set in GBs and we have downloaded Kbs.
+ Added DEB. Tested in ubuntu. It should work also in debian...
elmodos
10 years ago
File "/media/Data/DATA/debian/gtkvnstat/gtkvnstat.py", line 26, in <module>
import appindicator
ImportError: No module named appindicator
Report
elmodos
10 years ago
elmodos@modo-laptop:~$ which ifconfig
elmodos@modo-laptop:~$ sudo which ifconfig
[sudo] password for elmodos:
/sbin/ifconfig
elmodos@modo-laptop:~$
Report
elmodos
10 years ago
Also I've got a zerodivision error... I do not pay for traffic, so I leave it zeros.
Report
emanik
10 years ago
Mine are:
manos@manos-desktop:~$ ls -la /sbin/ifconfig
-rwxr-xr-x 1 root root 72608 2010-02-12 03:15 /sbin/ifconfig
manos@manos-desktop:~$
the zero division error must be because of this.
Report
emanik
10 years ago
Report
elmodos
10 years ago
Report