Hi guy,
I am trying to take a screenshot in headless mode of the dashboard but till now I had no success.
I can take screenshots of webpages without any problems. but when it comes to taking a screenshot of the dashboard or the node-red program environment I get a white or gray image.
Till now I tried firefox and cutycapt.
or
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url=http://192.168.1.1:1880/ui --out=pic.png
with cutycapt I tried a delay as well, but same result.
maybe someone of you already solved this problem?!
I would be happy if someone could help me
Yes that is correct. I am running NR on a raspberry and I want to take a screenshot of the dashboard on this maschine. I can take screenshot from other maschines (html sides, logins from routers,..) in the network, but not from the dashboard itself.
Hi zenofmud,
In the end I have only the pi in a network that has NR running. The other network clients are sensors which send data via MQTT to the pi. The pi is in a remote area and the communication will be realized by Telegram. The pi should send a image of the dashboard when I ask for. All works till now except that I can not take a screenshot of the dashboard.
maybe try using npm install node-red-contrib-web-page-screenshot I've never used it, but it might work. If you have issues you should contact the author.
Did you see my question? I am wondering whether you are seeing the background but not the websockets stuff. Most web pages don't use that which would explain why other pages look ok.
Also does that command work if you run it on a PC picking up the page from the pi.
Just noticed that you have the ip as 192.168.1.1. Are you sure that is the address of the pi, it looks more like a router address? Try http://localhost:1880
I am really sorry, totally overlooked your reply!
I have tested different IP addresses and I also tried the http://localhost:1880.
I will make a screenshot of the dashboard and the program environment of NR and put it hear so you can see what the screenshot looks like.
You have a good point, I think the websocket is the problem!
Does it work if you use those commands in a PC rather than in the pi, but still giving the ip of the pi so it will pick the page up from there. Shut down any browsers first obviously.
It a a dynamic app. Most of the page is built by javascript. If you do a right click view source, then look at the html in there you won’t see much. Unless the grabber you are using behaves like a real browser it may not render the javascript generated parts.