mendhak / gpslogger

:satellite: Lightweight GPS Logging Application For Android.
https://gpslogger.app
Other
1.99k stars 607 forks source link

Error while executing job com.mendhak.gpslogger.loggers.cumstomurl.cumstomurljob@31cf1d #761

Open Eeeeeediot opened 5 years ago

Eeeeeediot commented 5 years ago

Hi,

Great app! I have been getting quite a few of these errors recently - has something went wrong?

I use the app in conjunction with home assistant as a webhook

https://www.home-assistant.io/components/gpslogger/

Thanks

Stephen

mendhak commented 5 years ago

You can record a debug log - and in this debug log you should see the cause of the error. If you are unable to understand it then you can mail the file to me, gpslogger @ mendhak dot com

Eeeeeediot commented 5 years ago

Ok I'll do that thanks.

I wonder if you could answer two questions related to GPSLogger. I am using the app in conjunction with Home Assistant to enable presence based home automation. Its going really well and find it much more reliable that all the others: Locative, Owntracks etc. SO thanks!!!

Question 1 Will the "Don't log if i'm not moving" feature stop the app from logging new locations if it were situated very still inside a car? If so, is there anyway that the app can detect that it is traveling at motor vehicle speeds and temporarily disable this feature? Its a great feature for when my phone is sitting in a drawer in work but not so good when its in my cars arm rest when driving home (depending on the answer to my question above that is).

Question 2 Furthermore, do you have an suggestions/advice regarding using the app 24/7 on an android phone that can give me a good balance between accuracy and battery life? (eg. not having to top-up charge during the day which i have to do at times just now)

My Current settings Log GPS/GNSS locations - ON Log network locations - ON Log passive locations - ON Logging interval - 600 Keep GPS on between fixes - OFF Distance filter - 500 Accuracy filter - 250 Duration to match accuracy - 30 Absolute time to GPS fix - 45 Don't log if I'm not moving - ON

mendhak commented 5 years ago

The OS detects the current activity and if it reports that the phone is still then the logging points are ignored. Ultimately it can work in your car arm rest and it should detect that you are in vehicle (one of the activity types) rather than still, though there's always a chance that your phone thinks you are still.

I think the settings you've got should be alright, although your accuracy filter is too much and you'll be getting a lot of bad points - You could try with accuracy 40m. You can get a bit more out by turning off GPS/GNSS, you'll only get network locations which is usually faster but less accurate.