You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 :)
The text was updated successfully, but these errors were encountered:
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
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 :)
The text was updated successfully, but these errors were encountered: