Moin zusammen,
ich würde gerne von einem Telegram Bot aus dem ioBroker Nachrichten über die Uhr darstellen. Dies funktioniert soweit auch super, allerdings wollte ich die Anzeigedauer dynamisch gestalten. Ist ja so eine Art Laufschrift. Hat hier jemand eine Idee wie man das machen kann?
Hier mein bisheriger Code:
[
{
"id": "da552b48.872f18",
"type": "ioBroker in",
"z": "a8494738.74c4e8",
"name": "Last received request",
"topic": "telegram.0.communicate.request",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 320,
"y": 160,
"wires": [
[
"eff86c17.0d21b"
]
]
},
{
"id": "eff86c17.0d21b",
"type": "change",
"z": "a8494738.74c4e8",
"name": "",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "[Jarvis121]",
"fromt": "str",
"to": "",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 560,
"y": 160,
"wires": [
[
"6425a5c9.0d1efc"
]
]
},
{
"id": "e34490d8.89a33",
"type": "Switch Animation",
"z": "a8494738.74c4e8",
"name": "Switch Animation",
"aktiv": "false",
"animation": "fade",
"x": 1150,
"y": 160,
"wires": [
[
"28ee517b.e93a8e"
]
]
},
{
"id": "28ee517b.e93a8e",
"type": "Text",
"z": "a8494738.74c4e8",
"name": "Text",
"intextString": "{{payload}}",
"inbigFont": "false",
"inscrollText": "true",
"inscrollTextDelay": "0",
"incenterText": "false",
"inposX": "8",
"inposY": "1",
"incolorR": "255",
"incolorG": "255",
"incolorB": "255",
"x": 1310,
"y": 160,
"wires": [
[
"e7879e2.ec3426",
"39f8d455.1a2e2c"
]
]
},
{
"id": "a8f316c7.0a7258",
"type": "Screen Init",
"z": "a8494738.74c4e8",
"name": "Screen Init",
"inscreenName": "bra",
"induration": "{{msg.duration}}",
"x": 970,
"y": 160,
"wires": [
[
"e34490d8.89a33"
]
]
},
{
"id": "6425a5c9.0d1efc",
"type": "Bitmap Animation",
"z": "a8494738.74c4e8",
"name": "Bitmap Animation",
"indata": "[43008,0,0,0,0,0,0,0,64170,0,0,0,0,0,0,0,64853,0,0,0,0,64853,0,0,65535,65535,0,0,0,65535,0,0,65535,65535,0,65535,0,65535,0,65535,65535,65535,0,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64853,0,0,0,0,0,0,0,65535,0,0,0,0,0,0,65535,65535,65535,0,0,65535,0,0,65535,65535,65535,65535,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,65535,0,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65535,0,0,65535,0,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65535,0,0,0,65535,0,0,65535,65535,0,0,0,65535,65535,0,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535], [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64853,0,0,0,0,0,65535,0,65535,0,0,0,0,65535,65535,0,65535,65535,0,65535,0,65535,65535,65535,65535,65535,0,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535,65535]",
"inanimationDelay": "100",
"inrubberbanding": "false",
"inlimitLoops": "0",
"x": 790,
"y": 160,
"wires": [
[
"a8f316c7.0a7258"
]
]
}
]