LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-13-2005, 10:03 PM   #1
novacrasher
Member
 
Registered: Aug 2004
Posts: 91

Rep: Reputation: 15
karamba wireless monitor


Hello everyone. I am having trouble getting my wireless monitor widget thing to work in karamba on my gentoo computer. Here is my code:
Code:
# Sensor network download
# range is up to 100 kb. change 'max' value if needed.
image x=10 y=20 path="img/netgrid-up.png"
graph x=10 y=19 w=200 h=28 color=185,36,36 sensor=network format="%in" interval=1000 ma
x=1800
text  x=40 y=48 sensor=network color=0,0,0 format="%in Kb"  fontsize=10 font="nimbus sa
ns l" decimals=1
text  x=100 y=48 value="(incoming)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMA
LS=1

################################################################################
# Sensor network upload
# range is up to 16 kb. change 'max' value if needed.
image x=10 y=65 path="img/netgrid-down.png"
graph x=10 y=64 w=200 h=28 color=185,36,36 sensor=network format="%out" interval=1000 m
ax=1000
text  x=40 y=93 sensor=NETWORK color=0,0,0 format="%out kb" fontsize=10 font="nimbus sa
ns l" DECIMALS=1
text  x=100 y=93 value="(outgoing)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMALS=1
I have a wireless card named wlan0 configured with ndiswrapper. I was able to get all of my other widgets working including fan speed, cpu temp, cpu load, and also memory but I am stuck on the internet part. Thanks so much for all of the help in advance.
 
Old 11-14-2005, 07:26 AM   #2
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
Try this:

# Sensor network download
# range is up to 100 kb. change 'max' value if needed.
image x=10 y=20 path="img/netgrid-up.png"
graph x=10 y=19 w=200 h=28 color=185,36,36 sensor=network format="%in" interval=1000 ma
x=1800 device=wlan0
text x=40 y=48 sensor=network color=0,0,0 format="%in Kb" fontsize=10 font="nimbus sa
ns l" decimals=1 device=wlan0
text x=100 y=48 value="(incoming)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMA
LS=1

################################################################################
# Sensor network upload
# range is up to 16 kb. change 'max' value if needed.
image x=10 y=65 path="img/netgrid-down.png"
graph x=10 y=64 w=200 h=28 color=185,36,36 sensor=network format="%out" interval=1000 m
ax=1000 device=wlan0
text x=40 y=93 sensor=NETWORK color=0,0,0 format="%out kb" fontsize=10 font="nimbus sa
ns l" DECIMALS=1 device=wlan0
text x=100 y=93 value="(outgoing)" color=0,0,0 fontsize=10 font="nimbus sans l" DECIMALS=1

You can also use

/sbin/ifconfig wlan0 | grep 'RX bytes' | awk '{print $3 $4}' to get total downloaded and /sbin/ifconfig wlan0 | grep 'RX bytes' | awk '{print $7 $8}' to get total uploaded.
 
Old 11-14-2005, 10:56 PM   #3
novacrasher
Member
 
Registered: Aug 2004
Posts: 91

Original Poster
Rep: Reputation: 15
Sorry for the late reply. I tried your code and it didn't seem to work. Thanks anyway though. I will keep messing around with it until I finally figure it out or maybe just get rid of it Thanks again for the help.
 
Old 11-16-2005, 03:16 AM   #4
mickyg
Member
 
Registered: Oct 2004
Location: UK
Distribution: Ubuntu/Kubuntu
Posts: 249

Rep: Reputation: 30
Sorry, that should be device="wlan0" not device=wlan0

Here's a link to my thread on the same subject.

Last edited by mickyg; 11-16-2005 at 03:17 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Monitor my wireless interface n00blar Linux - Laptop and Netbook 3 01-15-2005 09:19 PM
Wireless Monitor Utility majoritywhip Linux - Wireless Networking 9 11-10-2004 11:42 AM
karamba *not super karamba* whishkah Linux - Software 1 09-28-2004 09:59 AM
wireless monitor mode tgkspike Linux - Hardware 0 05-07-2004 09:20 PM
Wireless Monitor Program -=Sabin=- Linux - Software 1 07-27-2003 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration