Oke so i saw this tread on the google group : https://groups.google.com/forum/#!topic/node-red/xMsaLwZ8lnw
about getting a background image.
now i have changed my httpstatic to /home/pi/image/
and my question is what do i need to change in the script that the guy on this tread is providing
The line in your settings file for httpStatic is still commented out - so is being ignored. Remove the // characters at the start of that line and restart node-red.
Thanks for the help so far. but im still kinda stuck. i can now get the image to load on the localhost.
but not in the dashboard while is used that template node with the provided code. and changed 'my-image’to the file name i wanted
You might also like to consider reducing the size of the image using some image processing software if the image is vastly larger than you need. Then it will not need to send the large image to the browser for it to reduce, so reducing network and processing overheads.
Um… I’m gonna cop it for asking, but the link you gave.
I’m confused.
Ok, the person asked about doing what I want to do.
There are answers.
I scroll down to the “preferred answer” and I don’t understand HOW that answer works.
CSS3 has a nice little attribute called background-size:cover.
This scales the image so that the background area is completely covered by the background image whilst maintaining aspect ratio. The entire area will be covered however part of the image may not be visible if the width/height of the resized image is too great
Yeah, great.
So is that “background-size:cover” added to the line with the image?
I’ve tried that and got no result.
Yeah, ok. I need to study more the commands and where they are put.
I guess a lot of this is showing me how little I know about all the languages.
is it possible to display background image on the group node aswell?
body will display it nicely in the background, but what ref do i use for the group node?