
WirelessScreenlet
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
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...
----------------------------------
9 years ago
25.3.2011
- added new themes
------------------
complete changelog in downloaded package
based on wireless screenlet 0.2 made by Patrik Kullman
9 years ago
25.3.2011
- added new themes
------------------
complete changelog in downloaded package
based on wireless screenlet 0.2 made by Patrik Kullman
saikas
9 years ago
Report
drxnele
9 years ago
can you run it via terminal and paste output here?
Report
jwbenford459
10 years ago
Report
jwbenford459
10 years ago
Help would be appreciated.
Report
drxnele
10 years ago
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
10 years ago
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
drxnele
10 years ago
you are free to add it (if you can), just leave my name in author section ;)
Report
boamaod
10 years ago
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
11 years ago
Report
drxnele
11 years ago
Report
mkisow
12 years ago
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
drxnele
12 years ago
Report
mkisow
12 years ago
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
12 years ago
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
drxnele
12 years ago
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
12 years ago
Report
vacadepollo
12 years ago
Report
drxnele
12 years ago
--- 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
12 years ago
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
drxnele
12 years ago
use this direct link
http://www.fileden.com/files/2007/8/23/1373806/download/Wireless.tar.gz
Report
xXUbuntuPcychoXx
12 years ago
Report
Sy0nid3
12 years ago
Report
drxnele
12 years ago
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
drxnele
12 years ago
i made type error
Report
aLdeCh
12 years ago
PS. im on ubuntu 8.10 32bit
Thank you.
Report