Hi,
Thank you Futzle for your information. Where can I add discovered bug, is there a method or a link ?
It’s funny, My xmpp plugin display an uncomplete text, whereas the SND that I modify display exactly the text.
@Ap15e
I agree with you, I’m not a developper but can develop some easy code. Finding information in wiki without forum users would be impossible for me.
For others users:
In general if we want to display some texts and/or variables we have to add some code lines in .json device.
After the llne
"halloIconsDir": "pics\/hallo",
add (adapt to your prefered dimension):
"x": "2",
"y": "3",
After that (thank you to Ap15e) for the tab position 0 in controlgroup add or modify:
[code]“ControlGroup”: [
{
"id": "1",
"scenegroup": "1"
}
],
"SceneGroup":[
{
"id": "1",
"top": "1.5",
"left": "0.25",
"x": "2",
"y": "3"
}
],[/code]
For the “ControlGroup”: “1”, add “top”: “0” and “left”: “0” corresponding to the first line of the device in the dashboard for example a text and then add “top”: “1” and left “0” for displaying the variable in the second line of the device.
[code]“Control”: [
{
"ControlGroup":"1",
"ControlPair":"1",
"ControlHeader":"1",
"top": "0",
"left": "0",
"ControlType": "label",
"Label": {
"lang_tag": "lblMsg",
"text": "Messages sent:"
},
"Display": {
"Top": 10,
"Left": 10,
"Width": 100,
"Height": 20
}
},
{
"ControlGroup":"1",
"ControlPair":"1",
"ControlHeader":"1",
"top": "1",
"left": "0",
"ControlType": "variable",
"Display": {
"Service": "urn:upnp-ap15e-com:serviceId:SND1",
"Variable": "MessagesSent",
"Top": 10,
"Left": 120,
"Width": 150,
"Height": 20
} [/code]
After that save, upload the D_xxxx.json file in vera and reload.
Gilles
edit: if you want text and variable in one line you could use: “top”: “0” and “left”: “0.5” for example.