EBA
November 16, 2023, 10:26am
1
Hello,
I am trying to show some properties of a device. These properties can change dinamically. Maybe there are “scene1” and “scene2”, or maybe there are “scene1”, “scene2”, “scene3” and “scene4”, etc. Example:
{
"scenes": {
"scene1": {
//More properties of scene1
},
"scene2": {
//More properties of scene2
},
"scene3": {
//More properties of scene3
},
"scene4": {
//More properties of scene4
}
}
}
I want to show this information in thinger.io . I have tried to do it with AngularJS Directive. Adapting this example to my case: DASHBOARDS - Thinger.io Documentation
My problem is the next, with the HTML Widget, I have to indicate before in “Widget Settings”, in the “Selected fields” the properties that I want to show. In my case, that fields can change, maybe there are more fields or not:
I have tried to not fill that field “Selected fields”. But it is not possible (it is marked with a red border):
Does exist a way for doing this?
Thank you in advance!
jaimebs
November 16, 2023, 1:42pm
2
Hi @EBA
Currently a workaround needs to be done to be able to select the full property value, in the field selection, select any field:
Then, in dashboard settings and developer tab, remove the mapping property of the widget and save:
We are currently making a change in the widget creation in order to not need this workaround.
Best Regards
2 Likes
It looks like the new version of Thinger will bring interesting new features.
One of the new “Placeholders” may be in line with one of our suggestions:
opened 07:56PM - 03 Feb 23 UTC
I know that it is possible to use the data stored in the Device Property (JSON) … to inject parameters into a device (eg maximum or minimum values of an alert) or NodeRED flow. You can also use data stored in a File Storage (JSON) file in NodeRED streams.
But because it is not possible to use data stored in Device Property (JSON) or in File Storage (JSON) file to configure Dashboard widgets (ex: min and max of Range Values in Tachormeter; or Background values and colors of the widget )? Or is it possible? how?
In the Thinger Server version 2.9.8, the possibility of using placeholders was announced, but I was never able to use them in the Title and Subtitle.
It would be VERY IMPORTANT to be able to use the data stored in Device Property (JSON) or in File Storage (JSON) file to configure Dashboard widgets and keep synchronized: Device, Device Property or File (File Storage), NodeRED and Dashboard. … based on the same data/parameters.
Today, I can sync the Device data; the Device Properties data (use them in NodeRED), but I can’t sync the widgets parameters using the Device Properties data. So I always have to change widget parameters (eg min and max of X axis) manually.
![image](https://user-images.githubusercontent.com/22058152/216694385-aa67e9b4-5fc6-4c19-a989-ee51f846b446.png)
Suggestions:
Example 1:
![image](https://user-images.githubusercontent.com/22058152/216694480-6d1bd90f-cab1-4660-9790-e22a7a80bef1.png)
![image](https://user-images.githubusercontent.com/22058152/216694517-7c693e83-cbd0-4ab1-9f2e-17ae1f6d10f2.png)
OR
![image](https://user-images.githubusercontent.com/22058152/216694568-164a516d-c9ca-4402-a4f6-d0ae21b6001e.png)
![image](https://user-images.githubusercontent.com/22058152/216694621-5fb4abd5-1742-4dfb-81a1-a29654d0af70.png)
1 Like
EBA
November 20, 2023, 8:10am
5
Thank you!
Can’t wait to see the new features!