http://github.com/samkeen/wiffu
Hey Adam, here is that firefox addon i wrote many moons ago. I think
the concept could be useful for Geomena and maybe something useful
could be gleaned form this code (especially if I find the source for
the java files)
I'm pretty sure there are some FF addon rockstars on the list so we
could maybe build a generic addon that
- determined the OS it was running on.
- ran the appropriate command-line utility to get visible wifi access
points
Apple : /System/Library/PrivateFrameworks/Apple80211.framework/
Versions/A/Resources/airport
Windows : ?
Linux: iwconfig on others (http://wirelessdefence.org/Contents/
LinuxWirelessCommands.htm)
- sent that data through XHR to a central server
Anybody have info on the Windows path(s)? I believe Dietrich Ayala (on
list) offered to put together the Firefox extension once we have "all"
the potential command line tools.
--Adam
--
To unsubscribe, reply using "remove me" as the subject.
Re: firefox I am not sure what you are looking for, but maybe you'll
find this code useful:
http://tinyurl.com/yc4hb73
we use it in the firefox extension demo of our indoor positioning engine:
https://addons.mozilla.org/en-US/firefox/addon/13227
http://scyp.atrc.utoronto.ca/projects/tagin
hope it helps!
Jorge
I could definitely see an extension that uses the nsIWifiMonitor API
to enumerate access points, use the geolocation API for lat/lon, and
stays resident, constantly pushing data to Geomena.
Now, Sam brought up a good question: Using the Firefox geolocation
APIs basically means we're getting the data from Google, and pushing
that data to Geomena. There might be a legal issue there. Or maybe
not.
If there is, we could instead push the access point data to a page on
Geomena, which prompts the user to locate themselves on a map, and
make the association there. It's more manual for the user, but takes
Google out of the loop.
Jorge
I have been wanting to work on this but haven't had the chance. Maybe it
would be worth to take a look at it too because that could solve all
desktop clients at once.
Re: mobile, we also have code for Android here:
http://tinyurl.com/y8f4kbs
I think there will be a better chance to do the
wardriving/strolling/biking on mobile platforms because that would be
clean data directly from the hardware. I usually track my bike paths so
it would be easy for me to keep a geomena app on as well.
cheers!
Jorge
On 10-04-10 08:19 PM, Dietrich Ayala wrote:
The addon does this:
1. listen for access point data
2. when received, get location
3. when we have coords, post each access point + coords to geomena.org
However, I'm not getting location data (filed
https://bugzilla.mozilla.org/show_bug.cgi?id=558681), so I've
commented out the actual sending for now, until I can test the rest of
the code.
I'll poke Doug for his thoughts on this scenario.
As brought up earlier in this thread, the defensibility and clarity of
license for the geomena database is central to the project. The
"clean" sources of data that I can think of are hand-entered address
data that is geocoded to a lat/long, and wifi loggers such as kismet.
I cant quite tell if the plugin (based on this description) assumes
google is the geolocation provider in which lat/long data would be
copied into geomena or if it assumes geomena is the location provider
in which case the value-add would be to create new near-by APs based
on the geomena-provided location of an existing AP. The later seems
like the safe move.
Don
linux: iwlist <device> scanning
os x: airport -I
windows: Jorge's Port
if nsIWifiMonitor is doing this already, then cool. The desktop apps
will need to make their own scans.
What I'm excited about as far as firefox internals is for it to be the
first browser to put all observed APs into the W3C location request
packet. The json blob is already setup to use an array value for the
access point list. My guess is that this hasnt been done to date
because of the extra time needed to do the scan, where as the
connected APs is immediately available.
Don
The wifi data from Firefox's API is totally fine, comes directly from
the native APIs of the respective OS that Firefox is running on.
> What I'm excited about as far as firefox internals is for it to be the
> first browser to put all observed APs into the W3C location request
> packet. The json blob is already setup to use an array value for the
> access point list. My guess is that this hasnt been done to date
> because of the extra time needed to do the scan, where as the
> connected APs is immediately available.
Can you point me to the part of the spec that you're talking about?
That way I can file a bug on our end, to start supporting that if it
makes sense to do so.
1. allow the user to set Geomena as the provider
2. have a status bar icon that lights up when there are APs not known by Geomena
3. allow the user to add those unknown APs to Geomena manually
The workflow might look like:
* user clicks on the lit-up status bar icon
* user is prompted with a list of APs, and: "would you like to add
these APs to Geomena?"
* click yes, a page on Geomena loads, where the user can input their
current address
I put up the TODO list for these changes on the wiki:
http://wiki.github.com/autonome/GeomenaFirefoxAddon/
If you're interested in working on it, let me know and I'll add your
github account to the project.
-d