Client for Owntracks

Hello,

is there any client for Owntracks (http mode) available.

Thanks
Rolf

There is a generic client for HTTP-request-based location tracking called LiveTrack. Should work.
If not, make an issue at the source repo and it likely can be made to work.

Note this is for tracking submission of location, not visualizing.

Hello @rschrod,some time ago I wanted to use LiveTrack with a wordpress plugin which didn’t work (a value was missing? don’t remember). Since I didn’t know how to modify LiveTrack and didn’t want to modify the wordpress plugin I wrote the following php script to modify the LiveTrack data to an acceptable format:

<?php

   $buildedlink = "https://example.com/osmand/?lat={$_GET["lat"]}&lon={$_GET["lon"]}&amp;timestamp={$_GET["timestamp"]}&altitude={$_GET["alt"]}&speed={$_GET["speed"]}&bearing={$_GET["acc"]}&username=USERNAME&key=THEPASSWORD" ; 

// echo $buildedlink ; exit() ; 

  $curl = curl_init();
  curl_setopt($curl, CURLOPT_URL, $buildedlink);
  curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0");

  $content = curl_exec($curl);
  echo $http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);
  curl_close($curl);

?>

First it takes the parameters from LiveTrack and creates a link which “visits” with curl.

If you have basic php (or any other scripting/programming language) it is very easy to adjust to your needs. Of course it needs a web server with php support :wink:

Cheers

1 Like

Ok, I just uploaded it here:

2 Likes

I tried the plugin wordpress: Trackserver – WordPress plugin | WordPress.org , I am really happy with the result! With the right configuration it can display an (openstreet)map that shows your path. Within 15 - 20 mins installation reading and experimenting you can change line colours, different colours for different days / users etc.

2 Likes