gtkvnstat

Network

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

0
Score 50.0%
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:

8 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

9 years ago

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

Report

elmodos

9 years ago

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

Report

elmodos

9 years ago

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.

Report

C

emanik

9 years ago

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.

Report

C

emanik

9 years ago

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

Report

elmodos

9 years ago

ifconfig has the same permisions.

Report

8 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...

12345678910
product-maker Base: 4 x 5.0 Ratings
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2.2
updated Jan 28 2011
added Oct 15 2010
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0
System Tags app software