Package: wifihood-scanner
Architecture: any
-Depends: python-osso, ${shlibs:Depends}, ${misc:Depends}
+Depends: python-osso, wifiscand (>= 1.1), ${shlibs:Depends}, ${misc:Depends}
Description: WifiHood Scanner
#Package: wifihood-mapper
def __init__ ( self , widget=None , ifname="wlan0" ) :
gps.GPSObject.__init__( self , widget )
self.osso_context = osso.Context("wifi_scanner", "2.0", False)
+ osso_rpc = osso.Rpc(self.osso_context)
+ scan_out = osso_rpc.rpc_run("org.javiplx.wifiscan", "/org/javiplx/wifiscan", "org.javiplx.wifiscan", "wakeup", wait_reply = True)
self._timer = None
def start ( self ) :
osso_rpc = osso.Rpc(self.osso_context)
scan_out = osso_rpc.rpc_run("org.javiplx.wifiscan", "/org/javiplx/wifiscan", "org.javiplx.wifiscan", "start")
- osso.SystemNote(self.osso_context).system_note_infoprint("WifiScand started")
def stop ( self ) :
osso_rpc = osso.Rpc(self.osso_context)
scan_out = osso_rpc.rpc_run("org.javiplx.wifiscan", "/org/javiplx/wifiscan", "org.javiplx.wifiscan", "stop")
- osso.SystemNote(self.osso_context).system_note_infoprint("WifiScand stopped")
def scan ( self ) :
osso_rpc = osso.Rpc(self.osso_context)
except Exception , ex :
osso.SystemNote(self.osso_context).system_note_infoprint("Exception scanning %s" % ex )
return True
- #osso.SystemNote(self.osso_context).system_note_infoprint("Found %d APs" % len(scan_out.split()) )
out_str = ""
for net in scan_out.split() :
items = net.rsplit(":", 1)
loclist.write ( "%s\n" % ( self.satellites ,) )
loclist.close()
if self.cell_info :
- # osso.SystemNote(self.osso_context).system_note_infoprint("Found Cell : %s" % ( self.cell_info ,) )
celllist = open( "/home/user/MyDocs/cell.info" , 'a' )
celllist.write ( "%s\n" % ( self.cell_info ,) )
celllist.close()