From 531c8fddb0e58459ba58d2760ebe08d304bd1097 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Sun, 24 Apr 2022 19:12:10 +0200 Subject: [PATCH] small updates --- README.md | 7 +++++-- main.py | 7 ++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5eecedb..6f596c6 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/main.py b/main.py index e99fd54..bed950d 100644 --- a/main.py +++ b/main.py @@ -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"