
Net Monitor Screenlet
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
displays net traffic and month totals
by Helder Fraga aka Whise
12 years ago
0.6 when you shutdown your system your downloads are still stored
0.5 fixed a couple of bugs
0.4 - shows month totals
added list of devices in properties
12 years ago
0.6 when you shutdown your system your downloads are still stored
0.5 fixed a couple of bugs
0.4 - shows month totals
added list of devices in properties
scr34mb07
12 years ago
Report
maman
13 years ago
And it's not really accurate, since it only measures what it 'sees'. If it's closed, it don't measure any traffic. But still, overall it's good. :)
PS: sorry for my bad English.
Report
frigga
13 years ago
from: can't read /var/mail/screenlets.options
from: can't read /var/mail/screenlets.options
import: unable to grab mouse `Success'.
import: unable to read X window image `'.
import: unable to read X window image `'.
import: missing an image filename `gobject'.
bash: DiskusageScreenlet.py: line 16: syntax error near unexpected token `('
bash: DiskusageScreenlet.py: line 16: `class DiskusageScreenlet(screenlets.Screenlet):'
whats the prob?
Report
IBBoard
13 years ago
Report
mrmorris
13 years ago
Change the line in NetmonitorScreenlet.py which says:
data = data[data.find(self.dev + ":")+5:]
...to:
data = data[data.find(self.dev + ":"):]
data = data.split(':')[1];
The problem is that the screenlet is not capable of handling devices with names larger than 4 characters. This should be handled by searching for the position of the ":" rather than hardwiring the offset. Note that I just corrected it to work for me, it is not tested and I can not say how this fix will work for you!
Report
azulmarino
12 years ago
Report
IBBoard
13 years ago
For future reference for the developer, it migh
t also be best not to try to process the data when self.dev isn't set as it just leads to exceptions.
Report
ryke
13 years ago
If it's possible, could you decrease the letter size for totals ? (when the number of MB is high, it doesn't fit into the screenlet)
Thanx for your screenlets ;-)
Report
Stogu
13 years ago
Quote:self.add_option(StringOption('Options', 'download_total', self.download_total,'Download total this month', '',))
self.add_option(StringOption('Options', 'upload_total', self.upload_total,'Upload total this month', '',))
must be replaced with this:
Quote:self.add_option(StringOption('Options', 'download_total', str(self.download_total),'Download total this month', '',))
self.add_option(StringOption('Options', 'upload_total', str(self.upload_total),'Upload total this month', '',))
Report
drxnele
13 years ago
and add this 2 lines to file called Netmonitor.ini
download_total=0
upload_total=0
Report
N-drew
13 years ago
The other is someway it goes to negative and start counting KBs with MB text.
BTW if you're using 1024 for change you should use KiB, MiB etc.
Report
drxnele
13 years ago
Report
geppo
13 years ago
Instead it works with "dev = 'lan0' " (I do not know why... :D ).
Please check and correct this bug.
Thanks
Report
drxnele
13 years ago
Report
foosball
13 years ago
Report
KenJutsu79
13 years ago
If that won't work, you could try to go to the "Netmonitor" folder which you created, and edit the "NetmonitorScreenlet.py" manually : look for "dev = 'eth0'" , line 45 for me, and put in your interfaces name and reload the screenlet.
PS: Thanks for fixing the memory leek ( it was hundreds of MB ^^ ) and the 0.3 default theme looks neat too !
Keep it up
Report
lstanio
13 years ago
Report
bugjargal
13 years ago
I have the same pb. My wlan card using name wlan0 (Wg311 with ndiswrapper)doesn't show any info in the screenlet, though eth0 seems to show ok.
Any clue about waht could be going wrong?
Thanks.
Report
badluckbrand
13 years ago
Thought it wasn't recognizing eth0 however it did show 1 refresh of the the statistics, however im not sure what i did to get it to show that, is there a way to set the update speed ? Im using screenlets 10, is that possibly a problem ?
Report
meto221
13 years ago
Report
etiennealaurent
13 years ago
So don't think to install it with gdesklet.
Report