[DEV] wifi manager - call for GUI developer

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #1
This version for wicd is for the moment put to rest.
The reason is that XBMCbuntu comes with nm not wicd.

I leave it on githib with downloads for dharma and eden
https://github.com/vikjon0/xbmc.script.l.../downloads

I have created a new version that works with nm
http://forum.xbmc.org/showthread.php?tid=123889


[Image: wireless2.png]
(This post was last modified: 2012-02-25 11:36 by vikjon0.)
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #2
I have upgraded to Eden.
https://github.com/downloads/vikjon0/xbm...11.0.0.zip

You need to remove network manager and install wicd curses otherwise it does not work.
Quote:sudo apt-get purge network-manager network-manager-gnome
sudo apt-get install wicd-curses

It is working fine but the GUI could do with some improvement and further testing with ubuntu 11.10 is needed. Some of the workarounds may not be needed anymore.
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #3
I am scratching the wicd version since network-manager is pre-installed in xbmcbuntu b3.

I have done some work on a python script to control nm.
http://dl.dropbox.com/u/17892827/xbmc/vikjon0-py-nm.py

It is a bit more complicated than wicd...
I have found a few library but they do not seem to work very good.
http://mvidner.blogspot.com/2009/07/hack...brary.html
http://packages.python.org/python-networkmanager/
http://code.google.com/p/pynetworkmanager/

These examples works but are very basic.
http://cgit.freedesktop.org/NetworkManag...les/python
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #4
c code to determince the encryption
Quote: security_str = g_string_new (NULL);
if ( !(flags & NM_802_11_AP_FLAGS_PRIVACY)
&& (wpa_flags != NM_802_11_AP_SEC_NONE)
&& (rsn_flags != NM_802_11_AP_SEC_NONE))
g_string_append (security_str, _("Encrypted: "));

if ( (flags & NM_802_11_AP_FLAGS_PRIVACY)
&& (wpa_flags == NM_802_11_AP_SEC_NONE)
&& (rsn_flags == NM_802_11_AP_SEC_NONE))
g_string_append (security_str, _("WEP "));
if (wpa_flags != NM_802_11_AP_SEC_NONE)
g_string_append (security_str, _("WPA "));
if (rsn_flags != NM_802_11_AP_SEC_NONE)
g_string_append (security_str, _("WPA2 "));
if ( (wpa_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X)
|| (rsn_flags & NM_802_11_AP_SEC_KEY_MGMT_802_1X))
g_string_append (security_str, _("Enterprise "));
from
http://cgit.freedesktop.org/NetworkManag.../devices.c
detail_access_point
find quote
zeroinf Offline
Junior Member
Posts: 4
Joined: Feb 2012
Reputation: 0
Post: #5
a new to python (i usually code in java, c++), thus a noobish question:

how do you debug your xbmc python code (like gui etc)?

your eden wireless manager gives me a script error in beta3. qf_wicd_wrapper.py seems to do fine, at least in terminal...
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #6
You use the latest version 11.0.0 or 11.0.1? The first test version had a few errors that I fixed. Other than that I have not tested a lot will not unless wicd is included in live instead of nm.

I dont think it is possible to debug the gui. You need to check the xbmc log for errors and add print "trace text" in the code to see where it goes wrong.
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #7
Actually, I will use the same GUI if I ever test the nm version. Please let me know if you find any issues or even better if you want to improve it. It should be possible to use the same GUI for both wicd and nm. In case anyone wants to use wicd that is. NM is fine, it is just hell to code compared to wicd.
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #8
BTW: In case anyone is interested, I have put together the code to list wireless network and connect to one of them. To get to the same level as wicd is going to be a lot of work though as it is pretty complicated.
find quote
zeroinf Offline
Junior Member
Posts: 4
Joined: Feb 2012
Reputation: 0
Post: #9
Quote:Please let me know if you find any issues or even better if you want to improve it.

issue 11.0.1:
- ui don't load - as said: script error
- xbmc eden beta 3, ubuntu hardy

improvement:
in long term, i might be able to help. right know, i'll have to learn python first.
find quote
vikjon0 Offline
---
Posts: 2,429
Joined: Apr 2009
Reputation: 7
Location: Sweden
Post: #10
I am concerned about the hardy part. I would test it 11.10 if I were you. If not possible make sure you have the same version of python installed as 11.10... look it up should be 2.6 or higher.
find quote