julien-nc / phonetrack

Nextcloud app to create tracking sessions to display phones position in real time and export activity to gpx.
GNU Affero General Public License v3.0
47 stars 6 forks source link

PHP Error with Overland client iOS #42

Open getwet opened 1 month ago

getwet commented 1 month ago

Hi folks,

for my bike trips I tested various apps with PhoneTrack on iOS. For me, one of the best is Overland. There's not so much to configure and work out of the box with the correct URL. But I saw there a couple of errors at the Nextcloud log.

{ "reqId": "REMOVED", "level": 3, "time": "2024-05-03T08:03:19+00:00", "remoteAddr": "REMOVED", "user": "--", "app": "PHP", "method": "POST", "url": "REMOVED", "message": "Undefined array key \"battery_level\" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1982", "userAgent": "Overland/1.2 (iPhone; iOS 17.4.1; Scale/3.00)", "version": "28.0.3.2", "data": { "app": "PHP" }, "id": "REMOVED" }

Undefined array key "horizontal_accuracy" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1981 Undefined array key "battery_level" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1982 Undefined array key "speed" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1983 Undefined array key "altitude" at /var/www/nextcloud/apps/phonetrack/lib/Controller/LogController.php#1986

On Overland side there's nothing to configure in this direction.

I would be happy if you can fix this.

Many thanks

Best wishes