I would like to able to access Variables from SharpTools in a Custom Tile.
I have a custom tile which cycles through weather info from various cities. I would like the user to be able to select from a list of available cities without having to go through the Tile Editor to select from the list. Each city could be assigned a variable but currently it appears weāre currently unable to retrieve a variable value in a custom tile.
Can you share more details about the use-case with weather info and custom tiles? Iām trying to understand why some other browser-based storage mechanism couldnāt be used.
Is the goal to be able to communicate selections across custom tiles? For example, could the localStorage API work?
+1. The use case I have is to be able to sidestep the inability to make API calls from a custom tile. If I can make an API call from a first-party Rule, then set a variable in the rule, and then access that variable from my custom tile, it would greatly expand the functionality of custom tiles.
Weāve released an update to Custom Tiles which includes support for Things and Variables as settings!
If you have access to the beta program, you can find details in the linked topic.
If youāre a developer with an immediate use-case for accessing Things or Variables within Custom Tiles, feel free to send a note to @support requesting beta access.