Placelab HOWTO (up)

slides for location practical (up)

Here you find the slides of lesson 5: Practical: Location 
«Practical: Location» 

install Placelab (up)

 

collect Bacons and GPS data (up)

Placelab is not fine to collect WiFi-Bacons with GPS-data. A good solution for that task is «netstumbler». This program can collect Bacons by its ID, channel, secure/unescure datas. It also scans the GPS data from a GPS mouse. 
Workflow to collect WiFi and GPS data
Abbildung 1: Workflow to collect WiFi and GPS data

get bacon data from wigl (up)

This is a little bit tricky. Placelab has an application to import data directly from wigle. You can either choose to import data by its logitude/latitude coords (wont work), Or by the country. For austria you can only say "give all bacons for italy, germany and austria". This works for the very first 80.000 bacons. But that's not enough! This imports only data for italy *and mayby germany)… 
So we take another approuch: download the little «igigle» program. 
It can import the data from wigle by the coords. For Vienna say LAT=48.12, LONG=16.21, Variance=0.2. Give your wigle account and download the bacons "By Lat/Long". The nice side effekt is, that igigle not only download the data. It also creates a kml-file for the «google-earth» application. When you import the kml-file into google-earth, than you can see all the bacons (secure/unsecure have different colors!) in the map of vienna. nice! 
 
Google Earth showing WiFi bacons in vienna
Abbildung 2: Google Earth showing WiFi bacons in vienna

get bacon data into placelab (up)

The drawback of igigle is, that the wigle-data is NOT in imported into the placelab-db. But we have the data as a plain-vanilla textfile. All we need is to convert the textfile into some kind of SQL-inserts for the placelab-db (it is a java HSQL DB). I wrote a little perl-script for that part… 

get GPS data from placelab (up)

Placelab will calculate the current GPS data based on the WiFi bacons in your near. you have some programms in placelab that will show you your current position: 
  1. PlacelabStumblerGUI: a GUI, that shows you all bacons in the near and the resulting position. 
  2. ServletExample: a little Webserver, that returns the position. Start it and browse to localhost:2081/core/query/location. For your practice work this is a good starting point: simply do a HTTP-GET to this URL and you get TWO lines of the Web-Service. These are the coords of your position (or two "NaN" if the position can't calculated). 
Workflow to get GPS data from WiFi bacons
Abbildung 3: Workflow to get GPS data from WiFi bacons

download area (up)

We have collected some needfull things for you (mostly for windows). The downloads are password-portected. Use ubicomp/student as username/password… 

fixed Placelab for Windows (up)

You will soon remind that the downloaded version of Placelab for Windows will not work correctly. Some libraries (jar, native) will not be found by the startup-scripts (bat-files). We offer here an fixes version of Placelab, where all libraries are in the right folders. This version also includes a bat-file to start the HSQL DB GUI and pre-filled Placelab-DB for vienna. 
«fixed Placelab as zip» 

bacon database for vienna (up)

Mayby you try to update your Placelab-DB (the HSQL DB). And UUPPS! you kill all the data. And no backup! 
No problem. Here is the complete HSQL folder with the data for vienna. simply replace the complete folder data which is located at %PLACELAB%\placelabdata and up we go… 
«HSQL DB folder as zip» 

perl script to convert wigle data (up)

This little script generates SQL-insert statemants for the Placelab-DB. Sorry, it has no security checks, no Usage-Message, nothing thats helps you. It can only do it's work. 
How to call: 
bernd@turing:~/UniVie/Placelab/WigleImport$ cat 48.1216.21.txt | perl wigletxt2SQL.pl > 48.1216.21.sql 
creates from the wigle-file 48.1216.21.txt (was imported by igigle) the sql-file 48.1216.21.sql 
«converter script» 

Placelab for Linux (up)

We create 3 deb-packages for you. They should work on Debian and Ubuntu. 
«libplacelab-java_2.1-1_all.deb» 
«libplacelab-linux_2.1-1_i386.deb» 
«placelab-tools_2.1-1_all.deb» 

kml-file for Google-Earth (up)

You can use this kml-file in google-earth. Open it and all WiFi-bacons will be drawn in the field of vienna. It is a good thing to check the real places of the bacons. Here you can study, where the positions are saved in the wigle-database… 
You will also see, that the positions of the bacons will lie (mostly) directly on the streets and NOT in the houses. 
«Google-Earth data» 

the (missing?) pictures of this site (up)

I think the Wiki-Software has a little problem. Sometimes (mostly every time - but not allways?!) the pictures will not rendered by the engine. I put the three pictures from above here to download. Not as sweet as inline, but it works… 
«Workflow to collect WiFi and GPS data» 
«Google Earth showing WiFi bacons in vienna» 
«Workflow to get GPS data from WiFi bacons» 
Letzte Änderung: 30.04.2008, 09:52 | 1028 Worte