-
Notifications
You must be signed in to change notification settings - Fork 19
/
usage.txt
61 lines (43 loc) · 2.15 KB
/
usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Usage: ./lacells-creator <options>
Options:
-d, --download
Download towers_(...).csv from OpenCellID and Mozilla Location
Services. Make sure to set API_KEY to the OpenCellID API Key.
You can do this once a day (for OpenCellID).
-i, --import
Import towers_(...).csv into the lacells.db file. When lacells.db
is already present, it is moved to lacells.db.bak first.
-c[<MCC>], --filter-mcc[=<MCC>]
Only keep records in lacells.db that have the specified MCC
(mobile country code). Use comma-separated list for multiple.
When no MCCs are given, the default configuration's MCC is used.
-m, --merge
Merge records from duplicate cell towers in lacells.db.
-p, --push, --push-now
Upload lacells.db to mobile phone using adb. When using --push-now,
the prompt asking if the phone is ready is skipped.
-e, --export
Export lacells.db to CSVs per MCC to lacells/lacells-mcc_xxx.csv
and a country summary in lacells/lacells-countries.{csv,geojson}.
-C <file>, --config <file>
Read configuration file. If this option appears multiple times,
files are loaded in order, before all other command-line options.
-h, --help
Show this help message.
-q, --quiet
Don't tell what's happening, only report errors.
Configuration:
The default user configuration is read from ~/.config/lacells/creator.cfg
and the file gen_lacells_conf or creator.cfg in the script's location.
After that, any configuration files specified on the command-line are read.
A configuration file can set variables in use by the script. Usually, you
would set API_KEY to the OpenCellID's key, and MCC to a comma-separated
list of mobile country codes.
For all possible options, please see misc/creator.cfg.
Examples:
Download, import, filter on Zimbabwe, merge and push to mobile:
API_KEY=xxx ./lacells-creator -d -i -c648 -m -p
With files downloaded before, generate lacells.db for India:
./lacells-creator -i -c404,405 -m
Generate CSV files for a number of countries:
./lacells-creator -i -c605,641,645,748 -e