Giter Club home page Giter Club logo

Comments (11)

ckrey avatar ckrey commented on June 23, 2024

@GitHubQueenn the files in /usr/local/owntracks/userdata are only for your information, not the source of the passwords etc.

To set a password of your choice, edit configuration.yaml as shown below and re-run ./bootstrap.sh.

(the optional password is not described in the setup guide, but only in the configuration.yaml file itself)

# configuration for OwnTracks backend quicksetup

# Specify your DNS domain, the name by which this OwnTracks

...

# Configure yourself and a list of friends who will be using
# this backend. Each friend will use their "username" to login
# to the site and to the apps. Their device is a "devicename"
# (this can be any suitable name, but we recommend you keep it
# generic so as to not have to change this if you move to a
# distinct device; i.e. "myphone" instead of "siemens-e2"),
# and their "tid" is a tracker- id which is used to label users
# on the map. A tid is a string of length two characters.
# Optionally a "password" may be set below; if omitted, passwords
# are generated and stored at /usr/local/owntracks/userdata/*.pass
# on this system.
#

friends:
  - { tid: UD, username: user, devicename: device, password:  yourpassword }
 
 ...

from quicksetup.

jpmens avatar jpmens commented on June 23, 2024

Friend-specific passwords are actually documented in the Booklet, and linked to from the bottom of the Quicksetup page.

from quicksetup.

GitHubQueenn avatar GitHubQueenn commented on June 23, 2024

@ckrey @jpmens Thank you. Real quick: how come one user here shows as "owntracks/b/phone" but the other as just "fs"? I would like to have "owntracks/b/phone" show as just the TID if possible, like the "fs" user does. Is that possible? Because when the one user sees the other, they show up on the map as "owntracks/b/phone" instead of their TID like "fs" does.

Looks like: https://i.imgur.com/WXZg6tm.png

Nowhere in my config or anywhere I see is the tid/names set to "owntracks/b/phone"

from quicksetup.

jpmens avatar jpmens commented on June 23, 2024

TIDs are two characters and are configured on the device respectively via the autoconfiguration you might have done. I'm assuming one of the devices is publishing via HTTP which we reccomend you don't do: in /usr/local/owntracks/userdata you'll find *.otrc files which you send to the device (e.g. via email) and open it in OwnTracks there. The TID you configured in configuration.yaml.

from quicksetup.

GitHubQueenn avatar GitHubQueenn commented on June 23, 2024

TIDs are two characters and are configured on the device respectively via the autoconfiguration you might have done. I'm assuming one of the devices is publishing via HTTP which we reccomend you don't do: in /usr/local/owntracks/userdata you'll find *.otrc files which you send to the device (e.g. via email) and open it in OwnTracks there. The TID you configured in configuration.yaml.

Both devices are using MQTT. So far, for my friend and myself, we have just used my domain to log into the OwnTracks server and then tapped on the links to import the configs to our phones (Android & iPhone). The only place I see "owntracks/b/phone" is at the OTRC file at this line:
"subTopic": "owntracks/+/+ owntracks/+/+/event owntracks/+/+/info owntracks/b/phone/cmd",
The TID shows how I originally set it as "bb". I also see it in the app under "pubTopicBase"

from quicksetup.

jpmens avatar jpmens commented on June 23, 2024

You are saying there's a discrepancy between the TID in pubtopic and subtopic; that can only be due to editing of the configuration; I don't think there's a bug in the generation of our OTRC files.

Please don't confuse TID with the username contained in the topic.

You have also not said which device (iPhone or Android) is fs and which is bb

from quicksetup.

ckrey avatar ckrey commented on June 23, 2024

It is much easier to understand the issue here if you embed your images rather than using an external link:
Bildschirmfoto 2024-03-22 um 09 02 59

from quicksetup.

ckrey avatar ckrey commented on June 23, 2024

Let me explain how it works and what you can do to change it:

Bildschirmfoto 2024-03-22 um 09 08 31

The Name column uses the topic or if available the name field of the card published to the MQTT broker https://owntracks.org/booklet/features/card/#card.

The TID column shows the tid element of the location message. If the location message does not contain a tid, it uses the last two letters of the topic.

** In your case, fs has published a card (either via MQTT to the backend or directly from the iOS OwnTracks app) and owntracks/b/phone **

  • In the Frontend, the Name is displayed.
  • On the Live map the TID is displayed if available instead of the topic if no name is given

from quicksetup.

GitHubQueenn avatar GitHubQueenn commented on June 23, 2024

The card made from fs was directly from the iPhone app. So how would we get rid of the "owntracks/b/phone" to just show "bb" like the other just shows "fs"?

from quicksetup.

jpmens avatar jpmens commented on June 23, 2024

from quicksetup.

jpmens avatar jpmens commented on June 23, 2024

Closing as answered.

from quicksetup.

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.