I converted @gotschi scripts I customized and your scripts I slightly customized
into this new combined version. Since I already had apache2, php, php-gd, php-mbstring packages already installed to host the image.php, I did figure out I needed to install php-curl package as well, it was needed when the vacuum clean finished required by curl_init function. I did create a gray .png file naming it floor.png conveniently defined in image.php so I could see some of the vacuum lines being drawn, some lines are more white than green, so now all the lines can easily be seen, the vacuum last position is easy to spot on the camera image. I still haven’t played with HA themes yet, it was lower priority than this, it’ll be on my next todo list, also floor plans saved as floor.png
I’ve seen a youtube video some time ago someone was using a phone app moving the phone camera around the room corners to generate a floor plan, it wasn’t free, don’t recall what the cost or the app name was.
Thank for the parameters map_width, map_height, x_offset,y_offset they were very helpful to get everything to fit inside the camera view.