android icon indicating copy to clipboard operation
android copied to clipboard

Issue getting _cmd reportLocation working

Open hastyeagle opened this issue 9 months ago • 18 comments

App build number: 2.4.12 Android version: 14 Device: Google Pixel 7a, 6a Installation source: Github/APK

Hi! I'm trying to get the _cmd: reportLocation working. I can publish a message to the owntracks/<user>/<device>/cmd topic, and I see it when I subscribe to the topic:

2023-11-09T18:11:18Z cmd {"_type":"cmd","cmd":"reportLocation"} 00

On the device in the Owntracks logs page I'm seeing E MessageProcessorEndpointMqtt: message failed validation. Remote commands are enabled. The command I'm running to publish the message is:

echo '{"_type":"cmd","cmd":"reportLocation"}' | mosquitto_pub --cafile ca.crt --cert owntrack_client.crt --key owntrack_client.key -h <MQTTIP> -p <PORT> -t 'owntracks/<USER>/<DEVICE>/cmd' -u <USERNAME> -P "<PASSWORD>" -q 1 -s

I'm not sure what the 00 is at the end in the message log (it's not in the command I published). Any ideas where I screwed up?

Thanks!

hastyeagle avatar Nov 09 '23 18:11 hastyeagle