gtkvnstat

Network

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

0
Become a Fan
5.0

Available as/for:
Description:
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
Last changelog:

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

elmodos

Traceback (most recent call last): File "/media/Data/DATA/debian/gtkvnstat/gtkvnstat.py", line 26, in <module> import appindicator ImportError: No module named appindicator

elmodos

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:~$

elmodos

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.

emanik

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.

emanik

...about the zero division error I'll check it tomorrow. until then use a value for the cost :-)

elmodos

ifconfig has the same permisions.

Pling
0 Affiliates
Details
license
version 0.2.2
updated
added
downloads 24h 0
mediaviews 24h 0
pageviews 24h 1

Other Network:

NzbPower
thejol
last update date: 19 years ago

Score 5.0

nzb
mnordstr
last update date: 13 years ago

Score 5.0

KNewz
ChaosWars
last update date: 17 years ago

Score 5.0

KLibido (Usenet binaries downloader)
bauno
last update date: 19 years ago

Score 5.0

Kwooty
kwooty
last update date: 11 years ago

Score 7.7

PANDO for Linux
Sephiroth6779
last update date: 18 years ago

Score 5.0



System Tags