Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not bug - my simple fix for bad accuracy saved by phone problem in owntracks #940

Open
Korenchkin opened this issue Mar 10, 2025 · 0 comments

Comments

@Korenchkin
Copy link

Korenchkin commented Mar 10, 2025

hello,
this is just a help for someone who might need it,it is for owntracks,but i think someone might find this usefull

so i'm using owntracks as a backend for location storage from android phone (running as independent service),i have no direct connection with immich(now that i think of it),i push location from home assistant...need to change this later(horrible solution)

but,in dawarich statistics i noticed older years 30k km usually,but some years were 16M km! my phone logged wrong coordinates(pulled from google)...

so this simple command run on owntracks file store removes points above certain precision (i selected 400+,might refine later)

run inside /var/spool/owntracks/recorder/store/rec/$login/$device (there are YYY-MM.rec files)

sed -Eiz '/^.*\"acc\"\:([4-9][0-9][0-9])|([0-9]{4,})\}/d' *.rec

this command worked for me,but take it carefully,run it on copy first and compare,it searches for "acc":$number and if it is 4NN-9NN or (|) NNNN or more N then it deletes line,sed -E enables advanced operations(number match),-i inplace edit,-z i was testing,but i think it is unnecessary

hope you don't need this,but if you do,you don't need to fight regex and more - vim<>sed regex chaos(incompatibility)

edit:now that i fixed this,i have to rerun import to dawarich..so i think winter is coming back,so i need the heat anyway :)

@Korenchkin Korenchkin changed the title not bug - my simple fix for bad accuracy not bug - my simple fix for bad accuracy saved by phone problem in owntracks Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant