Missing Paramerts for µLogger - Source ready to implement.
Hi,
currently I spent a bit of time in the source of µLogger and noticed that the App provides speed and bearing if avail.
Could someone change the Method in controller/logcontroller.php Line 446
--> We have to calc with 3.6 hopfully I'm correct. Android provides the Speed as following: getSpeed() Get the speed if it is available, in meters/second over ground. << Android Doku Maybe you could check the 3.6 if am correct with my knowlege from M/s -> KM/s
to
public function logUlogger($token, $devicename, $trackid, $lat, $lon, $time, $accuracy, $altitude, $pass, $user, $action, $speed=null, $bearing=null) { if ($action === 'addpos') { $dname = $this->chooseDeviceName($devicename, null); if ($speed != null){ $speed = 3.6 * $speed ; } $this->logPost($token, $dname, $lat, $lon, $altitude, $time, $accuracy, null, null,'Ulogger',$speed, $bearing); } return array("error" => false, "trackid" => 1); }
Tested with the latest app and my Nextcloud + Phonetrack