-
-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue getting _cmd reportLocation working #1525
Comments
There’s something wrong with your mosquitto_pub command, IMO. First you’re missing a value for Other than that the command looks ok to me. |
Sorry -- I forgot to escape the host and port on the post. I changed to |
|
Could you please humor me and try
(use printf i/o echo to completely avoid the newline) |
Same thing |
Is |
hmmm, I'm not seeing |
Forgive me for leading you up the garden path: the message needs an
This should provoke a location publish with
|
OK, we're getting farther now! Now when the app receives the message it says |
That configuration option (allowRemoteLocation) doesn’t exist on android; I’ve amended the documentation.
Please ensure the device is connected to MQTT; that could be a reason for the missing publish.
|
Gotcha on The app is definitely connected to MQTT. It's seeing the MessageCmd come through, and I see it has an updated location. It's just not publishing the location back to MQTT. I'm guessing it disregards the |
It ought to just report the last obtained location, but I think we need expert help here now. @growse management summary: |
Do you have debug logging enabled? If so, do you see a |
I do:
|
Huh. So it's asking for, and receiving a location. The only thing that would prevent a location being published at that point is this conditional: android/project/app/src/main/java/org/owntracks/android/services/BackgroundService.java Lines 513 to 525 in 47ffad4
So it looks like the device is giving OT a location that's already been published. Now, this is definitely a bug, because the fact that it's an on-demand location request should override this check - that's been fixed in 2.5.0. android/project/app/src/main/java/org/owntracks/android/services/BackgroundService.kt Lines 571 to 580 in e99e322
It's only going to get triggered when the device doesn't go and get a fresh location, which is what it should really do with a |
Excited to try this as well. Any ETA on v2.5.0? Or Beta version that we can sign up for and exercise for you? :) |
There's a couple of showstopper bugs and at least one feature still to be sorted, but I'm plugging away at them. |
In 2.4.12, the on-demand location lookup for HTTP would fail (wasn't implemented for HTTP?). This is now working on 2.5.0 since this SHA 074d4ec when you added it for ping/manual locations. |
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 theowntracks/<user>/<device>/cmd
topic, and I see it when I subscribe to the topic: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: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!
The text was updated successfully, but these errors were encountered: