small updates
This commit is contained in:
parent
3ce64a2cce
commit
531c8fddb0
|
@ -13,8 +13,11 @@ But: The app has to have to data from somewhere. When extracting this data and f
|
||||||
|
|
||||||
* Install the Android App
|
* Install the Android App
|
||||||
* Start the App, the data is now downloaded
|
* Start the App, the data is now downloaded
|
||||||
* Copy the SQLite database to your computer, e.g. with `adb pull /storage/1AD5-130B/hydrants_live.sqlite`
|
* Copy the SQLite database to your computer:
|
||||||
The data is located on the device under `/data/data/ ... TODO
|
```
|
||||||
|
adb root
|
||||||
|
adb pull /data/data/ch.gvz.hydrants/databases/hydrants_live.sqlite
|
||||||
|
```
|
||||||
|
|
||||||
## Convert the data
|
## Convert the data
|
||||||
|
|
||||||
|
|
7
main.py
7
main.py
|
@ -66,9 +66,10 @@ for row in rows:
|
||||||
gpx_wps.longitude = LV95ToWGSLongitude(row[0], row[1])
|
gpx_wps.longitude = LV95ToWGSLongitude(row[0], row[1])
|
||||||
gpx_wps.latitude = LV95ToWGSLatitude(row[0], row[1])
|
gpx_wps.latitude = LV95ToWGSLatitude(row[0], row[1])
|
||||||
gpx_wps.name = f"Hydrant #: {hydrantennummer}"
|
gpx_wps.name = f"Hydrant #: {hydrantennummer}"
|
||||||
gpx_wps.comment = f"""
|
gpx_wps.description = f"""
|
||||||
Abgänge: {abgaenge}\n
|
name=Hydrant #: {hydrantennummer}
|
||||||
Installationsjahr: {installationsjahr}\n
|
description=Abgänge: {abgaenge}
|
||||||
|
Installationsjahr: {installationsjahr}
|
||||||
Strasse: {strasse}
|
Strasse: {strasse}
|
||||||
"""
|
"""
|
||||||
gpx_wps.symbol = "Hydrant"
|
gpx_wps.symbol = "Hydrant"
|
||||||
|
|
Loading…
Reference in a new issue