Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Widget html content disappearing #843

Open
6 tasks
ThomasPoett opened this issue Nov 14, 2024 · 1 comment
Open
6 tasks

Template Widget html content disappearing #843

ThomasPoett opened this issue Nov 14, 2024 · 1 comment

Comments

@ThomasPoett
Copy link

Dear community,

I have no clue why, but my weather update message in html are disappearing sporadically.
I phrase the message every 15min, than after an sporadic time, the posted html message in the template widget is disappearing.
_Screenshot 2024-11-14 062102

The json of the nodes i have posted below.

in the debug, i can see the html is phrased and posted.
I do not see any debug, when the message is disappearing from the dashboard.

Best and thanks

Please tell us about your environment:

  • Node-RED-Dashboard version: 3.6.5
  • Node-RED version: latest
  • node.js version:
  • npm version:
  • Platform/OS:
  • Browser:

[
{
"id": "c941fc8c.abd468",
"type": "dwd",
"z": "ae1606a7.24b7b8",
"region": "109182000 Kreis Miesbach (MB)",
"name": "Tegernsee",
"gewitter": true,
"sturm": true,
"regen": true,
"schnee": true,
"nebel": true,
"frost": true,
"glatteis": true,
"tauwetter": false,
"hitze": true,
"uv": true,
"kueste": false,
"binnensee": false,
"x": 410,
"y": 1240,
"wires": [
[
"52805282.2e8f9c",
"c4d9e49d.93eb2",
"4ddf4276.dd310c"
]
]
},
{
"id": "30f31918.fd1236",
"type": "inject",
"z": "ae1606a7.24b7b8",
"name": "Trigger 6-23Uhr 15min",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "*/15 6-22 * * *",
"once": true,
"onceDelay": "0.5",
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 200,
"y": 1240,
"wires": [
[
"c941fc8c.abd468"
]
]
},
{
"id": "52805282.2e8f9c",
"type": "function",
"z": "ae1606a7.24b7b8",
"name": "phrase html only",
"func": "var wetter = {};\nwetter.html = msg.html;\nreturn wetter;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"x": 640,
"y": 1240,
"wires": [
[
"99c6f7a3.f089a8",
"c5e0d5a192470233"
]
]
},
{
"id": "99c6f7a3.f089a8",
"type": "ui_template",
"z": "ae1606a7.24b7b8",
"group": "19b6229.c4320dd",
"name": "",
"order": 1,
"width": "18",
"height": "16",
"format": "<style>\n .dwd-icon-container {\n display: inline-block; \n }\n .dwd-event {\n display: inline-block;\n vertical-align: 60px;\n font-weight: bold;\n padding-left: 20px;\n }\n .dwd-icon, .dwd-icon-frame {\n position: absolute;\n }\n .dwd-icon-container, .dwd-icon, .dwd-icon-frame {\n width: 100px;\n height: 100px;\n }\n .dwd-time {\n color: grey;\n }\n\n</style>\n<div ng-bind-html="msg.html">",
"storeOutMessages": true,
"fwdInMessages": true,
"resendOnRefresh": false,
"templateScope": "local",
"className": "",
"x": 830,
"y": 1240,
"wires": [
[
"4d50e276174277da"
]
]
},
{
"id": "4ddf4276.dd310c",
"type": "debug",
"z": "ae1606a7.24b7b8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 600,
"y": 1200,
"wires": []
},
{
"id": "c5e0d5a192470233",
"type": "debug",
"z": "ae1606a7.24b7b8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 810,
"y": 1200,
"wires": []
},
{
"id": "19b6229.c4320dd",
"type": "ui_group",
"name": "Weather Warnings",
"tab": "53f81675.8d3ab8",
"order": 9,
"disp": true,
"width": "24",
"collapse": false,
"className": ""
},
{
"id": "53f81675.8d3ab8",
"type": "ui_tab",
"name": "Global Setting",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]

@ThomasPoett
Copy link
Author

ThomasPoett commented Nov 14, 2024

I found accidentally right now what might be cause this and it is directing to bug.
The html content was visible, than I scaled the browser and instantly the content disappeared.
also the "dashboard" refresh/ reload in the browser will cause this behavior.
When I'm issuing the html info to be displayed and than looking the dashboard, the text is there.
Once i refresh the page, it is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant