I haven’t tried it but by taking inspiration from the tutorial script below there’s surely a way to do something directly in gladys.
The script retrieves your widget as an image every X minutes and you insert the link of the generated image into the camera integration which you can then place on your dashboard.