WirelessScreenlet

Conky

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

1
Score 55.0%
Description:

wireless screenlet is used to show current status of your wireless device...
it's showing signal quality in % and signal and noise level in dBm

if you have some new ideas for improve I would like to hear it... leave comments :)

note: If you want to vote bad, please let me know what you don't like so I can improve it...

important: if you have status:not connected please send me your ifconfig and iwconfig output


----------------------------------
***KNOWN BUG:
if you run from terminal and get this output:
Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown:
or this:
stats['percentage'] = self.get_percentage(int(stats['quality']), int(stats['quality_max']))
ValueError: invalid literal for int() with base 10: ''

--screenlet can't find your iwconfig and ifconfig

solution:
1) in terminaltype: locate ifconfig
2) again type: locate iwconfig
3) open WirelessScreenlet.py file and replace this line
ip = commands.getoutput("LANG="" ifconfig "+ interface)
with
ip = commands.getoutput("LANG="" STEP_1_OUTPUT "+ interface)

and this line
iwconfig = commands.getoutput("iwconfig "+ interface)
with
iwconfig = commands.getoutput("STEP_2_OUTPUT "+ interface)

note: STEP_1and2_OUTPUT should look something like this
/sbin/ifconfig
/sbin/iwconfig
or
/usr/sbin/ifconfig
/usr/sbin/iwconfig
or something similar depending on your distro...
----------------------------------
Last changelog:

7 years ago

25.3.2011
- added new themes

------------------
complete changelog in downloaded package

based on wireless screenlet 0.2 made by Patrik Kullman

saikas

7 years ago

I just downloaded this screenlet but in does not start.

Report

C

drxnele

7 years ago

how it doesn't start?
can you run it via terminal and paste output here?

Report

jwbenford459

8 years ago

Working now...thanx. One step closer to losing the panel.

Report

jwbenford459

8 years ago

Would be a great widget to have, but doesn't work for me. For some reason it displays an IP address different to that shown on the GNOME Network Manager Applet.

Help would be appreciated.

Report

C

drxnele

8 years ago

type ifconfig xxx0
where xxx0 is your wlan device..

example:

ifconfig wlan0

and in it's output will write your IP adress, same as screenlet shows.. maybee your Network Manager Applet is showing global IP, and this screelnet shows local

Report

boamaod

8 years ago

Since an older version of WirelessScreenlet is already available on Screenlets PPA, maybe you would be interested in developing your code directly under the project https://launchpad.net/indiv-screenlets.

There is some documentation on this as well as connected topics at http://www.screenlets.org/index.php/Documentation#Why_should_I_add_my_Screenlet_to_individual_Screenlets_project.

Report

C

drxnele

8 years ago

I am already on universal applets on launchpad, but I didn't submit or change anything for at least a year. I develope screenlets only when I have time, but I study and work and... blah blah..

you are free to add it (if you can), just leave my name in author section ;)

Report

boamaod

8 years ago

Well, just to let you know, since Universal Applets never got to a stable release, I took up the old Screenlets and added some parts from U-A and updated Screenlets a bit. The plan is to incorporate U-A step by step into the old Screenlets branch. There is no deadline though.

If you are member of U-A, then U-A is automatically a member of individual Screenlets.

I was just proposing that you can use the individual Screenlets branch for VCS of your projects, because it is published automatically on Screenlets PPA and gives possibility to translate individual Screenlets etc, but it's up to you of course. I do not plan to update your Screenlet at the repository myself, though. It's up to you as an original developer or whoever wishes to do it.

Report

bdoe

9 years ago

Tried downloading this screenlet, but the download link is dead.

Report

C

drxnele

9 years ago

maybe you're behind some proxy server or something, one guy was on university connection and he couldn't download too.. its hosted on fileden, and I just now downloaded and it works..

Report

mkisow

10 years ago

Command Line Error

Debian Lenny
Python
Screenlets 0.1.2
Gnome Desktop

DBUS ERROR

Other applets work fine, the Wireless applet 0.4.3 by Jovicic Nemjana fails with the following error:
python -u /home/<home dir>/.screenlets/Wireless/WirelessScreenlet.py
CachingBackend: Loading instances from cache
Found a running session of Wireless, adding new instance by service.
Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.Wireless was not provided by any .service files
Screenlet has already been added to /tmp/screenlets/screenlets.<home dir>.running
Loading instances in: /home/<home dir>/.config/Screenlets/Wireless/default/
No instance(s) found in session-path, creating new one.
/home/<home dir>/.config/Screenlets/Wireless/default/Wireless1
LOAD NEW THEME: default
FOUND: /home/<home dir>/.screenlets/Wireless/themes/default
theme.conf found! Loading option-overrides.
theme.conf loaded:
Name: Default
Author: Nemanja Jovicic
Version: 1.0
Info: Default glassy grey theme
Override: text_color
WARNING: Option 'text_color' not found or protected.
1
1
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
WARNING - add_default_menuitems and add_menuitems should be set in on_init ,menu values will be displayed incorrectly
Traceback (most recent call last):
File "/home/<home dir>/.screenlets/Wireless/WirelessScreenlet.py", line 258, in <module>
screenlets.session.create_session(WirelessScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 472, in create_session
session.start()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 246, in start
sl = self.screenlet(session=self, id=self.__get_next_id())
File "/home/<home dir>/.screenlets/Wireless/WirelessScreenlet.py", line 76, in __init__
self.interface = interfaces[0]
File "/home/<home dir>/.screenlets/Wireless/WirelessScreenlet.py", line 91, in __setattr__
self.update_stats()
File "/home/<home dir>/.screenlets/Wireless/WirelessScreenlet.py", line 98, in update_stats
self.__stats = self.get_wireless_stats(self.interface)
File "/home/<home dir>/.screenlets/Wireless/WirelessScreenlet.py", line 214, in get_wireless_stats
stats['percentage'] = self.get_percentage(int(stats['quality']), int(stats['quality_max']))
ValueError: invalid literal for int() with base 10: ':'

Report

C

drxnele

10 years ago

can you give me iwconfig and ifconfig?

Report

mkisow

10 years ago

iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11 ESSID:"COPERNICIUS"
Mode:Managed Frequency:2.462 GHz Access Point: 22:22:15:1C:D0:95
Bit Rate=36 Mb/s Tx-Power=14 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:DCD3-98F4-5DD1-71E8-DDBB-67EA-10
Link Quality=100/100 Signal level=-52 dBm Noise level=-94 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0


ifconfig
eth0 Link encap:Ethernet HWaddr 00:1a:80:57:d5:6b
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:16

eth0:avahi Link encap:Ethernet HWaddr 00:1a:80:57:d5:6b
inet addr:169.254.7.139 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:194 errors:0 dropped:0 overruns:0 frame:0
TX packets:194 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11648 (11.3 KiB) TX bytes:11648 (11.3 KiB)

wlan0 Link encap:Ethernet HWaddr 00:13:e8:d7:64:03
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::213:e8ff:fed7:6403/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3417 errors:0 dropped:0 overruns:0 frame:0
TX packets:3618 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2893956 (2.7 MiB) TX bytes:820324 (801.0 KiB)

wmaster0 Link encap:UNSPEC HWaddr 00-13-E8-D7-64-03-77-6C-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Report

bobmendon

10 years ago

I have the same problem as everybody else:

eth0 Link encap:Ethernet HWaddr 00:14:22:c3:71:dd
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:11

eth1 Link encap:Ethernet HWaddr 00:1e:e5:a9:d6:41
inet addr:192.168.105.4 Bcast:192.168.105.255 Mask:255.255.255.0
inet6 addr: fe80::21e:e5ff:fea9:d641/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:55275 errors:0 dropped:0 overruns:0 frame:13103
TX packets:34912 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:71552155 (71.5 MB) TX bytes:4696554 (4.6 MB)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:190 errors:0 dropped:0 overruns:0 frame:0
TX packets:190 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11052 (11.0 KB) TX bytes:11052 (11.0 KB)

bobw@bobw-laptop:~$ iwconfig
lo no wireless extensions.

eth1 IEEE 802.11 Nickname:""
Access Point: Not-Associated

eth0 no wireless extensions.

pan0 no wireless extensions.

Report

C

drxnele

10 years ago

it's not problem with screenlet...

look at your iwconfig...
it says

eth1 IEEE 802.11 Nickname:""
Access Point: Not-Associated



and it should be something like this

wlan0 IEEE 802.11g ESSID:"HALLSYS-NET-NRV"
Mode:Managed Frequency:2.432 GHz Access Point: 00:14:78:EE:F2:D8
Bit Rate=36 Mb/s Tx-Power:20 dBm Sensitivity=-109 dBm
RTS thr=2347 B Fragment thr=2346 B
Power Management:off
Link Quality:73/100 Signal level:-49 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

------------
do you see diference...
in your case screenlet has no data to read from command output so it doesn't work :S

Report

deltafee12

10 years ago

not sure how to install this.

Report

vacadepollo

10 years ago

http://www.njsoft.iz.rs it's out. Another site to upload, please??

Report

C

drxnele

10 years ago

hm... it works for me... look my ping result...

--- www.njsoft.iz.rs ping statistics ---
63 packets transmitted, 63 packets received, 0% packet loss
round-trip min/avg/max = 230.2/250.5/350.9 ms

Report

vacadepollo

10 years ago

ping: unknown host http://www.njsoft.iz.rs
what's the problem????

My connection works perfectly but i can't download your screenlet by njsoft since two month more or less....

I don't understand...

Report

C

drxnele

10 years ago

fck it if doesn't work... but... hm... I don't know why doesnt work for you...

use this direct link
http://www.fileden.com/files/2007/8/23/1373806/download/Wireless.tar.gz

Report

xXUbuntuPcychoXx

10 years ago

hey, i have no idea how to install this thing, i have it downloaded and extracted, thats as far as i got successfully, tell me what to do!

Report

Sy0nid3

10 years ago

hey, i have a new account, please help me because this will be very useful to me, thankyou

Report

C

drxnele

10 years ago

1)open terminal
2)sudo apt-get install-screenlets
3) mkdir .screenlets
4)tar - xvzf Desktop/Wireless.tar.gz
(i assumed that you downloaded it to Desktop)
5)cp Desktop/Wireless .screenlets

Report

C

drxnele

10 years ago

sudo apt-get install screenlets
i made type error

Report

aLdeCh

10 years ago

I managed to get it working as root, it works just fine as root but nothing as a user, im sure it has something to do with the path "/sbin/iwconfig" instead of just iwconfig or something like that, where do i change the path in WirelessScreenlet.py?? if somebody just tell me so i can get this to work normally.

PS. im on ubuntu 8.10 32bit

Thank you.

Report

7 years ago

25.3.2011
- added new themes

------------------
complete changelog in downloaded package

based on wireless screenlet 0.2 made by Patrik Kullman

12345678910
22
product-maker xeng Apr 05 2012 3 bad
product-maker boamaod Aug 13 2011 3 bad
product-maker D4v3 Dec 28 2010 9 excellent
product-maker mixalns Dec 04 2010 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.4.4
updated Apr 04 2012
added Dec 16 2007
downloads 24h
0
page views 24h 2