fix: correct Traccar Client setup instructions

- Remove unreliable QR code scanning, add direct app store links
- Fix server URL to use HTTP (not HTTPS) for port 5055
- OsmAnd protocol doesn't use SSL
- Emphasize that official Traccar Client app is required

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 23:23:00 +01:00
parent 0da2e7e8a6
commit 6a10785ec8
2 changed files with 27 additions and 18 deletions

View File

@@ -343,7 +343,7 @@ export class TraccarClientService implements OnModuleInit {
/**
* Get the device port URL for mobile app configuration
* Returns hostname:port for Traccar Client app to connect to
* Returns full HTTP URL - port 5055 uses OsmAnd protocol without SSL
*/
getDeviceServerUrl(): string {
const port = this.configService.get<string>('TRACCAR_DEVICE_PORT') || '5055';
@@ -352,10 +352,10 @@ export class TraccarClientService implements OnModuleInit {
const traccarUrl = this.getTraccarUrl();
try {
const url = new URL(traccarUrl);
// Return just hostname:port (no protocol - the app handles that)
return `${url.hostname}:${port}`;
// Return HTTP URL (not HTTPS) - OsmAnd protocol on port 5055 doesn't use SSL
return `http://${url.hostname}:${port}`;
} catch {
return `localhost:${port}`;
return `http://localhost:${port}`;
}
}