I see this has come up a few times but as far as I can see never resolved?
I would like to do automated screen capture from the dashboard on the node red machine (Ubuntu 20.04 ) and store in a local directory on the local ubuntu machine. Ideally of individual dashboard groups or tabs, panels.
I have tried these two but so far have been unable to get anything working:
You have the dashboard running in the browser.
You wish to capture the image of the dashboard and upload it to the NR server.
How do you want to trigger the capture? Via a button or similar in the browser?
I am trying to use the cited nodes that can capture a url and save it as a file
by itself.
This one appears to possibly do it if I can only format the url properly:
That won't work as all you get if you directly access the url is the background. The data comes via websockets. If you want to capture the dashboard image you will have to do it from a live dashboard in a browser, or use a browser emulator, whether there is one that supports websockets I don't know.
You can also consider adding a specific dashboard template node to your dashboard allowing you to upload a file or copy paste an image from the clipboard.
Thanks @janvda
Certainly looks interesting. Would this allow me to automate the entire process? I want to do screen captures of 4 separate groups every 5 minutes or so and then put those image filesin four separate directories. This is to publish them in another application, constantly updated. Many thanks for your comment!
Hello @Bowie
I had good results using this on Ubuntu 20.04:
it is a fork of this, that might be a better starting point depending on your OS and hardware:
Not too difficult but also not that easy
Important to have the same versions of chromedriver and chrome.
Can also run headless with the correct arguments.
Good luck!