[web2py] Re: Wifi Tags.

2011-12-27 Thread Alan Etkin
Great, i missed that feature. That way you would need to fire Access
Point requests periodically to update the device list from the web2py
server

On Dec 27, 3:54 am, Khalil KHAMLICHI khamlichi.kha...@gmail.com
wrote:
 I guess you could connect to the WIFI AP and query them for connected
 hosts. (but still have to use request.client to know whos who)

 You will need to parse the pages from Wifi ap to get your information.


Re: [web2py] Re: Wifi Tags.

2011-12-27 Thread Khalil KHAMLICHI
Yep, you can use pycurl (which has support for cookies) to query the AP and
load the data into some db with eventually : Ap_name, timestamp, . . . And
other fields.


[web2py] Re: Wifi Tags.

2011-12-27 Thread Mchurch
Many thanks!! I'll keep You updated guys!

On 27 Dic, 14:33, Khalil KHAMLICHI khamlichi.kha...@gmail.com wrote:
 Yep, you can use pycurl (which has support for cookies) to query the AP and
 load the data into some db with eventually : Ap_name, timestamp, . . . And
 other fields.


[web2py] Re: Wifi Tags.

2011-12-26 Thread Alan Etkin
You can detect the client ip with the request object (request.client).
But i don't think that access point detection is possible with web
server or client applications.

On 26 dic, 13:20, Mchurch mchurc...@gmail.com wrote:
 Merry Christmas and a beautiful happy new Year to all the web2py's
 Family!
 I would like to realize an application, it should be something like a
 WiFi treasure hunt made for mobile phones.
 The user must be connected to the  wifi intranet and after that i must
 know where he is going. With rfid tags it should be easy, but not
 every mobile phones have such kind of hardware.
 So I was thinking to connect many access points under the same wifi
 net and somehow detect the id of the AP.
 Is it possible to know through web2py the name of the AP which i'm
 connected?
 Can You point  me to the right direction for this?
 Again, merry Christmas!!


[web2py] Re: Wifi Tags.

2011-12-26 Thread Mchurch
Yeah, but the point is to know which Ap I'm connected. Getting the Ap
ip, or Ap ssid name should resolve my problem.
But as You said, it seems (to me) no possible to get such informations
with client applications.
Thank You Alan.

On Dec 26, 9:04 pm, Alan Etkin spame...@gmail.com wrote:
 You can detect the client ip with the request object (request.client).
 But i don't think that access point detection is possible with web
 server or client applications.

 On 26 dic, 13:20, Mchurch mchurc...@gmail.com wrote:







  Merry Christmas and a beautiful happy new Year to all the web2py's
  Family!
  I would like to realize an application, it should be something like a
  WiFi treasure hunt made for mobile phones.
  The user must be connected to the  wifi intranet and after that i must
  know where he is going. With rfid tags it should be easy, but not
  every mobile phones have such kind of hardware.
  So I was thinking to connect many access points under the same wifi
  net and somehow detect the id of the AP.
  Is it possible to know through web2py the name of the AP which i'm
  connected?
  Can You point  me to the right direction for this?
  Again, merry Christmas!!


Re: [web2py] Re: Wifi Tags.

2011-12-26 Thread Khalil KHAMLICHI
I guess you could connect to the WIFI AP and query them for connected
hosts. (but still have to use request.client to know whos who)

You will need to parse the pages from Wifi ap to get your information.