Summary
Store and serve webhook template logos from this repository.
Why do we need this?
Currently the webhook template repo includes links to logos. There are a couple of issues with this.
- The image behind the link can be changed at anytime and there's no traceability.
- Images are sometimes moved and the link is broken.
What is already there? What do you see now?
Logos are loaded from TTS using the link in logo-url.
What is missing? What do you want to see?
Logos loaded from the repo. This means that logos can only be updated on a new release but this is the same as updating a field in the yml.
How do you propose to implement this?
- Add folders with the exact same name as the webhook template. Ex:
akenza.yml -> akenza. If exists, TTS will ignore the value in logo-url.
- Allow users to submit images with a similar constraint as https://github.com/TheThingsNetwork/lorawan-devices?tab=readme-ov-file#end-device-image
- In TTS:
a. Check if a folder corresponding to the template exists.
b. If yes, check and validate the image in it.
c. Load this image when the template is loaded.
@johanstokking; thoughts?
Can you do this yourself and submit a Pull Request?
Yes, maybe.
Summary
Store and serve webhook template logos from this repository.
Why do we need this?
Currently the webhook template repo includes links to logos. There are a couple of issues with this.
What is already there? What do you see now?
Logos are loaded from TTS using the link in
logo-url.What is missing? What do you want to see?
Logos loaded from the repo. This means that logos can only be updated on a new release but this is the same as updating a field in the yml.
How do you propose to implement this?
akenza.yml->akenza. If exists, TTS will ignore the value inlogo-url.a. Check if a folder corresponding to the template exists.
b. If yes, check and validate the image in it.
c. Load this image when the template is loaded.
@johanstokking; thoughts?
Can you do this yourself and submit a Pull Request?
Yes, maybe.