GPS Prüfung

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
frage
Posts: 43
Joined: 20 May 2017 12:15

GPS Prüfung

Post by frage » 29 May 2018 18:27

Hallo Forum,

ich habe einen FLOW erstellt, der bei der Eingabe des falschen PIN mit der Front und er Backkamera Fotos macht.
Diese Fotos werden dann als eMail versendet. In der eMail wird der Zeitpunkt, das Datum sowie der Standort angegeben.
Zusaätzlich wird der Standort als Datei auf dem Handy gespeichert.

Mit Initalisiere Variable Standort bestimme ich mit GPS den Standort.
Mit Conditions Expression lasse ich die Genauigkeit prüfen.
Die Bedingung ja und nein werden richtig geprüft und die dafür folgenden Aktionen dann auch durchgeführt.

Problem:
Sollte das GPS keinen Standort ermittel können [Letzbekannter Standort reicht mir nicht] dann wird der FLOW
immer mit einem Fehler abgebrochen.

Wie kann ich verhindern, das der Flow dann abgebrochen wird.

Danke für Eure Hilfe.

Gruß
frage
Attachments
B3.png
GPS Genauigkeit besser als 300m.
B3.png (50.51 KiB) Viewed 7028 times
B2.png
Initalisiere Variable Standort Einstellungen
B2.png (78.27 KiB) Viewed 7028 times
B1.png
Expression Einstellungen
B1.png (75.77 KiB) Viewed 7028 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: GPS Prüfung

Post by Desmanto » 29 May 2018 19:01

Add a new action/condition and change the connection to catch the exxeption error. To change to exception, check here : viewtopic.php?f=5&t=7314#p20955

You might want to use sleep 5 seconds (example) to wait before looping back to the init variable location.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply