Skip to content
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

Store URLs to get to service-specific device pages in physical and logical devices #12

Open
dajtxx opened this issue Sep 30, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@dajtxx
Copy link
Collaborator

dajtxx commented Sep 30, 2022

Receivers and deliverers could add URL properties that allow a UI to easily link to the service-specific page for a device without having to know too much about external systems.

For physical devices this should be easy in some cases because receivers are quite specialised, eg TTN devices have an easily created URL. Many devices won't have an associated URL - YDOCs, other devices coming in via MQTT etc. Because physical devices represent a single 'thing' there won't be multiple URLs.

For logical devices, each destination may or may not have a URL, and the delivery services will need to be sure not to over-write each other's URLs. In this case it may be necessary for the delivery service to put the URL into the destination's properties, such as under the Ubidots key, and this will need to be put back in each time the Ubidots object is updated.

Another option is to have a new top-level object to hold these URLs, and have them keyed by the destination, eg:

{
  "ubidots": {
    Ubidots device properties here.
  },
  "thingsboard": {
    ThingsBoard device properties here.
  },
  "deviceUrls": {
    "ubidots": "https://..../devices/<deviceid>",
    "thingsboard": "https://..."
  }
}
@dajtxx dajtxx added the enhancement New feature or request label Sep 30, 2022
dajtxx pushed a commit that referenced this issue Oct 31, 2023
dajtxx pushed a commit that referenced this issue Oct 31, 2023
…gement-app

Feature/management app improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant