small updates

This commit is contained in:
Tobias Brunner 2022-04-24 19:12:10 +02:00
parent 3ce64a2cce
commit 531c8fddb0
2 changed files with 9 additions and 5 deletions

View file

@ -13,8 +13,11 @@ But: The app has to have to data from somewhere. When extracting this data and f
* Install the Android App
* 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`
The data is located on the device under `/data/data/ ... TODO
* Copy the SQLite database to your computer:
```
adb root
adb pull /data/data/ch.gvz.hydrants/databases/hydrants_live.sqlite
```
## Convert the data

View file

@ -66,9 +66,10 @@ for row in rows:
gpx_wps.longitude = LV95ToWGSLongitude(row[0], row[1])
gpx_wps.latitude = LV95ToWGSLatitude(row[0], row[1])
gpx_wps.name = f"Hydrant #: {hydrantennummer}"
gpx_wps.comment = f"""
Abgänge: {abgaenge}\n
Installationsjahr: {installationsjahr}\n
gpx_wps.description = f"""
name=Hydrant #: {hydrantennummer}
description=Abgänge: {abgaenge}
Installationsjahr: {installationsjahr}
Strasse: {strasse}
"""
gpx_wps.symbol = "Hydrant"