Add Custom WayPoints #1760
Replies: 18 comments 34 replies
-
you tried xml and json? what data formats did you try? are you guessing? waypoints can be added in the UI. |
Beta Was this translation helpful? Give feedback.
-
This is documented in the Booklet |
Beta Was this translation helpful? Give feedback.
-
This method works for iOS and Android. What data do you want to show on the apps? |
Beta Was this translation helpful? Give feedback.
-
the message should be published with QoS>0 |
Beta Was this translation helpful? Give feedback.
-
The topic is wrong. It should be |
Beta Was this translation helpful? Give feedback.
-
This works for me. $ mosquitto_pub -u user -P password -t owntracks/user/device/cmd -f wp-blau.json -q 1 The file {
"_type": "cmd",
"action": "setWaypoints",
"waypoints": {
"_type": "waypoints",
"waypoints": [
{
"_type": "waypoint",
"tst": 1361636517,
"rid": "blauw-utrecht-nl",
"desc": "Restaurant Blauw",
"rad": 50,
"lat": 52.087822392366,
"lon": 5.119438515394096
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
Show me the COMMAND line you use to publish that to your MQTT broker. (Obviously without passwords.) |
Beta Was this translation helpful? Give feedback.
-
Don’t harass us please!
|
Beta Was this translation helpful? Give feedback.
-
Apologies Guys, Earlier I was tried the Andriod phone.. I will send you all the details soon |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
that JSON that you constantly keep pasting is not a log … The iOS screenshot shows the logfile name. You’ll need to send that to yourself or to us ([email protected]) so we can see what’s IN the file |
Beta Was this translation helpful? Give feedback.
-
in iOS settings, please make sure that in subTopic you see a topic which ends in |
Beta Was this translation helpful? Give feedback.
-
also you’ve been publishing to a topic called The topic branch used by iOS MUST match the topic you’re publishing to. |
Beta Was this translation helpful? Give feedback.
-
also you’ve been publishing to a topic called From your log I see you should be publishing to
|
Beta Was this translation helpful? Give feedback.
-
That’s not what I asked you to do. Listen, this is getting very tedious for me. you are asking for help, and I’m trying to help you understand how to solve the issue. I said the topic to which you should MQTT publish; I did not say change the configuration of your phone. I cannot keep track of what you’re doing. I’m going to explain, and then I’ll stop: your program (javascript?) is trying to publish a payload to MQTT with a JSON which iOS will interpret. The phone is connected (hopefully) to a broker and your app to the same broker. If the broker permits, the publish your app does is read by the phone, and the phone will react. The topic to which your app publishes MUST MATCH the topic on which the phone subscribes. This topic is configured automatically on the phone by setting up a user and a device. By default OwnTracks constructs topics of the form owntracks/user/device and for certain operations adds a branch to that, e.g. /cmd My reccomendation: Uninstall the iOS app and re-install it. Configure it with a username (e.g. jane) and a device name (e.g. myphone). The phone will then subscribe to owntracks/jane/myphone and owntracks/jane/myphone/cmd When your app publishes (with QoS>0) the CMD payload to owntracks/jane/myphone/cmd the phone should show the newly received waypoint/region in the list of regions. |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
Is there any way to add Custom waypoints or regions in Mobile app? I can see there is option to importWayPoints in mobile app... Please let me know what will be the format. I tried xml and json for importing the waypoints.
Beta Was this translation helpful? Give feedback.
All reactions