def locateSSID(request,ssid=None): if ssid: apdict = wigle.getLocation(SSID=ssid) numresults = len(apdict) if numresults == 0: return HttpResponse('0 results.') return render(request,'wigle-wloc.html',{'ssid':ssid,'hits':len(apdict),'center':getCenter(apdict),'bssids':apdict.keys(),'apdict':apdict}) else: return render(request,'wigle-wloc.html',{'ssid':'','center':(56.97518158, 24.17274475)})
def getSSIDloc(ssid=None, cookie=None): # If you give us nothing we return nothing if not ssid or not cookie: return {} if DEBUG: print "getSSID.ssid:", ssid if DEBUG: print "getSSID.cookie:", cookie # Request ssid and return the dictionary that wigle returns # Wigle dictionary format: {'stayoffmylawn [00:25:9C:ED:0F:EB] [6]': (33.65253067, -112.03952026)} return wigle.getLocation(SSID=ssid, cauth=cookie)
def getSSIDloc(ssid=None,cookie=None): # If you give us nothing we return nothing if not ssid or not cookie: return {} if DEBUG: print "getSSID.ssid:",ssid if DEBUG: print "getSSID.cookie:",cookie # Request ssid and return the dictionary that wigle returns # Wigle dictionary format: {'stayoffmylawn [00:25:9C:ED:0F:EB] [6]': (33.65253067, -112.03952026)} return wigle.getLocation(SSID=ssid,cauth=cookie)
def locateSSID(request, ssid=None): if ssid: apdict = wigle.getLocation(SSID=ssid) numresults = len(apdict) if numresults == 0: return HttpResponse('0 results.') return render( request, 'wigle-wloc.html', { 'ssid': ssid, 'hits': len(apdict), 'center': getCenter(apdict), 'bssids': apdict.keys(), 'apdict': apdict }) else: return render(request, 'wigle-wloc.html', { 'ssid': '', 'center': (56.97518158, 24.17274475) })