i am new to Node-Red... I have a FHEM Server for Home Automation here that I want to update with Node Red. The Backend work fine, but for the Frontend i need some help.
Today I have two problems that I did not solve with the internet and chatgpt...
I have a Grafana dashboard I want to insert in Node Red.
With a template this works fine. If I want to change the time range with a slider, I did not get any picture in the template.
Also if I only inject the URL and put this URL via
I will show the Dashboard on my MAC and also an my Phone.
The Grafana Dashboard I show via template and iframe today is setup for the weight of the Phone.
On the MAC it is very small.
Is it posible to change the weight for different typ.... PC, MAC or Phone.
How can I do this?
Than I run the next simple test and inject the Grafana Adresse.
Inject: msg.payload = string "http://.....Id=18".
And in the template I change the code to: <iframe src="{{msg.payload}}"></iframe>
With an debug between the two nodes I see the correct Adresse and If I past this in my browser I see the correct Grafana... but in Node red I only see the white frame
I Think there is a problem loading the address....
An to the second part.
I found that I can use css to use the Screen width:
So I can change id the screen is less then 600px.
I can change the iframe width in the template. But I did not find the place were I can change dashboard group were the template is run in. For the dashboard group I only can setup a fixed value and not auto?
I also testet with no fixed values fĂĽr the width of the iframe... not 600px but 100vw. This run, but in the back I see the fixed frame of the dashboard group und this also cut the iframe.
Just a note: the html tag is not necessary (or encouraged) since the template content will be embedded in a well structured page constructed by dashboard.