mendhak/gpslogger

GPS - How I adjust the interval ?

Opened this issue · 8 comments

Hi !
Im using this app to send the coordinates trough url just every 30 sec.
I dont need send the log file.
I set up the interval log to every 30 sec but the any variation the coordinates, its sent the url.
My server is receiving a lot requests and the battery from my phone die so fast.
Is there other solution or I'm doing something wrong ?

If I'm understanding correctly, you've enabled Custom URL feature. You want it to do the logging every 30 seconds, but you don't want it to do the auto send (which sends all the points at once).

For that you should enable custom logging as usual but disable auto sending

image

image

Hello,
thank you for your app, i love it!
im using your app and i have an issue with the autosend to FTP
Is it possible to send it with an interval of less than 1 min (every 5sec for example).

An other ask, instead having all the track points, it is not possible to just have the last position of the phone?
Best regards

Hi what you're describing isn't doable — it takes several seconds to open a connection to FTP in fact, so a small upload interval means the app would be forever busy processing uploads.

The FTP upload feature, all the upload features, are meant for files or backing up what's been logged. What you're describing with the last-position is basically what the Custom URL feature is about, it gives you flexibility to do what you need with the points.

Thnak you for the reply,
So for example if i want only the last position of some phones i must use the Custom URL.
But how i have to configure it in the app?
How is appear then on the url ? Do you have an example to send me?
Best regards

You can see some of it here: https://gpslogger.app/#usingthecustomurlfeature

In the app open the Custom URL screen, the URL setting will already have a value in it as an example, you can see

http://localhost/log?lat=%LAT&longitude=%LON&time=%TIME&s=%SPD

Tap the Parameters to see a list of all the parameters available to use in the above URL.

You'd need to change the URL to point at a server (IP address or domain) where you are hosting an application that listens for the Custom URL requests and then "does a thing" afterwards. Like if you own example.com,

https://example.com/mycustomapplication?lat=%LAT&long=%LON&utc=%TIME

Depending on what you're trying to do with the data, you could also point at other third party sites like webhooks or IFTTT or AWS Lambda/Gateway etc

Hello mendhak,

i think I have the same problem / the same question.

What do I have to set in the app so that it sends me the current location to a URL every 5 minutes? I have tried all possible options. As soon as I move and the GPS coordinates change, the app sends the current position to the URL every second or even more often, even though the interval is set to 300s. If I am in the same place, i.e. not moving, the 5min. interval works. As soon as I move, the logging escalates to the URL.

The point is, I don't want to record a route, I just want to send the current position to the server every 5 minutes.

Is this even possible or am I doing something wrong?

Do you have passive logging enabled by any chance? I wonder if movement detected there is being picked up by the app, so it logs it (to custom URL including).

You were absolutely right. My mistake was to activate “Log passive location”. When I only use GPS locations, it works as desired.

Thank you very much for your support.