VNC Screenshot feed for generic Camera

I currently use a really convoluted method of taking screenshots of remote machines running vnc server.

Using an automation, to run a shell script, that connect to a remote vnc server and saves a jpg locally to a ramdisk, a generic camera component is pointed at this local file path which displays the image. There is separate automation monitoring the ping state of the servers and replaces the local image with a blank image if the sever goes offline.

I’m currently running this on a raspberry pi using http://manpages.ubuntu.com/manpages/bionic/man1/vncsnapshot.1.html

But I see that there are a number of python implementations of the same screenshot application.

Anyone fancy giving this a spin?