Option to display some data from the query instead of match/no match image
Commit-La-Grenouille opened this issue · 8 comments
Hi @mjbnz,
thank you very much for your plugin. It is the most flexible requests plugins for SD and the one that really embraces the SD spirit (actions and info). I was looking for something very similar but was hopping to use some data from the query as information to display on the key instead of just an image.
Would it be okay if I try to prepare a PR with this change ? Or would it not fit the vision your have for your plugin (and I should just fork it) ?
Based on the UI you have implemented, I think I would add a checkbox next to the "Set button image based on response" (i.e. "Return some data from response") and would present a similar field to determine what to search in the data.
Then on the code-side, I would try to plug it cleanly to the fetch call (like all the other option do) and do some additional code to either prepare the text and display it through a setTitle() or prepare the text and render it as image (like some other plugin do).
Hi @Commit-La-Grenouille , in principle, yes, that sounds like a great feature. I'll happily look at a PR if you want to put one together.
Cool feature. Worth merging IMO
Hi @Commit-La-Grenouille, with version 6.5.0 of the stream deck software data from responce doesn't work. Can you fix it, please?
Thank's for your feedback @Commit-La-Grenouille. There is no any log file created by the plugin in the specified folder "%appdata%\Elgato\StreamDeck\logs". Should i turn it on somwhere in the plugin script?
I have found the problem, it's all about backgroung image. That should be set anyway or title won't show anything.
Is that possible to add more than one string? For e.g. i have a device that can send me temperature, humidity and pressure. I want to add all of these strings to the button. Is that realizable?
I have found the problem, it's all about backgroung image. That should be set anyway or title won't show anything.
Is that possible to add more than one string? For e.g. i have a device that can send me temperature, humidity and pressure. I want to add all of these strings to the button. Is that realizable?