GithubHelp home page GithubHelp logo

Send request position about android HOT 19 CLOSED

GianZambo avatar GianZambo commented on June 15, 2024
Send request position

from android.

Comments (19)

jpmens avatar jpmens commented on June 15, 2024 1

I confirm that it is not working for me: upon publishing a reportLocation request

echo '{"_type":"cmd","cmd":"reportLocation"}' | mosquitto_pub --cafile $cafile -h $h -u $u -P $p -s -q 1 -t owntracks/jpm/s8/cmd

I do not see a location response with ”t”: “r”.

from android.

growse avatar growse commented on June 15, 2024 1

Smells like a bug.

from android.

jpmens avatar jpmens commented on June 15, 2024

Remote commands must be enabled on the device. After that, if you publish an MQTT message with QoS>0 to the topic owntracks/user/device/cmd with a payload as you rightly showed of {"_type":"cmd","action":"reportLocation"}, the device should report its current location via a normal _type: location message.

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Ok, thank you so much ....

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Sorry @jpmens and for HTTP what's the command?

from android.

jpmens avatar jpmens commented on June 15, 2024

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Ok, thank you again .....

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Hi,
with difficulty (for my skills of course) I connected OwnTracks with MQTT (HiveMQ cloud) to my node red and works fine, but I can't to send a request to position.
IF when I receive data from mobile I have in node red this report ...

uno

but if I publish an MQTT message with QoS>0 to the topic owntracks/giamma/001/cmd

I have this report ...

due

Please tell me where is the mistake ..... (remote command are enabled on mobile)

from android.

jpmens avatar jpmens commented on June 15, 2024

The message must be published to owntracks/giamma/001/cmd with the correct payload. Note: /cmd with "_type": "cmd"

from android.

GianZambo avatar GianZambo commented on June 15, 2024

This is my mqtt node ....

tre

and this is my function node with payload ....

quattro

It seem right, but evidently I don't see the mistake ...

from android.

GianZambo avatar GianZambo commented on June 15, 2024

I also tried ...

cinque

but without success ....

from android.

jpmens avatar jpmens commented on June 15, 2024

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Yes ....

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Well, works but ....
the app must be only in "Significant Changes" and ...
the app must be open .....
I cannot close the app even if se app is always active because at the top of mobile I have the icon's app with the function of Report and changes monitoring mode ....

EDIT: also with the app open the report location works only one time, after stop works ...

from android.

GianZambo avatar GianZambo commented on June 15, 2024

Hi, there are news for the resolution of this bug?

from android.

jpmens avatar jpmens commented on June 15, 2024

It is still pending. As soon as it is addressed, the status of this issue will change.

from android.

GianZambo avatar GianZambo commented on June 15, 2024

ok ....

from android.

underdog avatar underdog commented on June 15, 2024

is this issue back? I'm on iOS, running OT 16.4.1. seems the app has to be in the foreground to execute a cmd sent to it. I opened the app, went to another app and waited for my cmd to be sent. saw it sent from my mqtt stream, but never say a pub come back from app. Placed app in foreground, waited for pub to be sent for cmd. cmd was sent and location was sent back to mqtt feed from OT app.

from android.

jpmens avatar jpmens commented on June 15, 2024

@underdog this is a closed Android issue, and you are reporting this for iOS. If you are having trouble please open a new issue on our iOS tracker (github.com/owntracks/ios/issues), but before you do so, iOS behaves differently from Android: make sure you are publishing a QoS>0 payload to /cmd, and if the app is in the background, you'll have to wait until it wakes to process your command.

from android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.