| 25 | | # In theory, only the -f option is needed, but for overview's sake, please use the others aswell. |
| 26 | | # -f = location of the .csv, e.g. '/home/test.csv' |
| 27 | | # -m = name of the dataset, e.g. 'Walk in park' or 'Trip with boat' |
| | 25 | # args = '<gpsxml>[.gz] [<netxml>[.gz]]' |
| | 26 | # -m = name of the dataset |
| | 27 | # -g = your name |
| | 28 | # -e = your email address |
| | 29 | |
| | 30 | $ ./manage.py import_kismet <gpsxml> [<netxml>] -m <dataset name> -g <username> -e <email> |
| | 31 | }}} |
| | 32 | |
| | 33 | When importing Droidstumbler's .csv: |
| | 34 | {{{ |
| | 35 | # args = '<csvfile>[.gz] [csvfile2[.gz] [csvfile3[.gz] ...]' |
| | 36 | # -m = name of the dataset |
| | 37 | # -g = your name |
| | 38 | # -e = your email address |
| | 39 | # -d = date in %Y-%m-%d-%H%M%S format, default takes date from filename |
| | 40 | |
| | 41 | $ ./manage.py import_droidstumbler <csvfile> [csvfile...] -m <dataset name> -g <username> -e <email> -d <date> |
| | 42 | }}} |
| | 43 | |
| | 44 | When importing other .csv files: |
| | 45 | {{{ |
| | 46 | # Make sure the variables in this script match the column numbers in your file e.g.; |
| | 47 | # Lat is read from the first column [0], if the lat in your file is in the 4th column, change 'lat = row[0]' to 'lat = row[3]'. |
| | 48 | # Also, take note of the replace() and strip() functions. These should probably be edited aswell. |
| | 49 | # |
| | 50 | # -f = location of the .csv |
| | 51 | # -m = name of the dataset |