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:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user