
gtkvnstat
Source (link to git-repo or to original if based on someone elses unmodified work):
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
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...
Ratings & Comments
6 Comments
Traceback (most recent call last): File "/media/Data/DATA/debian/gtkvnstat/gtkvnstat.py", line 26, in <module> import appindicator ImportError: No module named appindicator
I found ubuntu packages for it. But now application tries to run ifconfig. I use debian, so: elmodos@modo-laptop:~$ which ifconfig elmodos@modo-laptop:~$ sudo which ifconfig [sudo] password for elmodos: /sbin/ifconfig elmodos@modo-laptop:~$
Do not work under user in Debian. Also I've got a zerodivision error... I do not pay for traffic, so I leave it zeros.
check the permissions of ifconfig: 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.
...about the zero division error I'll check it tomorrow. until then use a value for the cost :-)
ifconfig has the same permisions.