I have created two new images in my Hass Repository.
rest980_build - this will build the Docker image manually using a clone of the original repo.
php_nginx_armv7 - this uses a different php-nginx image which works on armv7
swapped primary php-nginx to an armv7 supported version.
Note: I dont have Hass running on an armv7 platform, but they both run on armv7 and build successfully in Hass on a amd64 platform - so in theory…they will work?
Hi @Syrius,
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.
Those are my values. I have no issues moving my y_offset between 200-500 and the image adjusts accordingly. However when I try to set it less then 200 to something like 100 or 50, the image doesn’t recreate. Trying to figure out if there is a problem with the math or maybe I am just not understanding the offset correctly.
Hi @drjared88
I just tried modifying $x_offset from 580 to 50, I waited 8-9 seconds, the image got recreated with the roomba dock location close to the left side of the camera view.
I’m not using the php_nginx container, but my test at the very least tells me the image.php math translation is good.
the automations related to vacuum don’t seem to influence this behavior, i disabled all and the image redrew still around 8 sec later.
I’m getting this error when trying to update the hass-addon:
20-01-24 22:14:10 INFO (SyncWorker_0) [hassio.docker.interface] Pull image 39c40414/amd64-addon-rest980 tag 20191217.
20-01-24 22:14:11 ERROR (SyncWorker_0) [hassio.docker.interface] Can't install 39c40414/amd64-addon-rest980:20191217 -> 404 Client Error: Not Found ("pull access denied for 39c40414/amd64-addon-rest980, repository does not exist or may require 'docker login'").
Please let me know if you want me to make an Issue on GitHub
Hey I’m having trouble with getting the camera image running.
I have the camera configured but nothing is showing up (this was also the case before the update).
There is a log file being created in /config/vacuum
In the hassio plugin log, I see the GET request for the image.php file, but nothing is there to return the request. Is there anything else I need to look at to troubleshoot?
@LUNZ I assume your running the php-nginx container.
If you try hit the image.php file in a browser - you get nothing showing up?
I’ve also noticed that with the webhippie php container you need to add a floor.png file in the vacuum directory otherwise the php file won’t render correctly. Can you check if you have added one of these? Set it to the same dimensions as the map
EDIT: I have updated the ha-rest980-roomba repo to include an example floor.png file in the vacuum directly to ensure the map generates during initial deployment.
When I try to update the docker image in Hassio I get an error.
20-01-26 18:02:59 INFO (SyncWorker_9) [hassio.docker.addon] Start Docker add-on koalazak/rest980 with version latest
20-01-26 18:03:33 INFO (SyncWorker_3) [hassio.docker.interface] Update image koalazak/rest980:latest to c4fe18d5/amd64-addon-rest980:20191217
20-01-26 18:03:33 INFO (SyncWorker_3) [hassio.docker.interface] Pull image c4fe18d5/amd64-addon-rest980 tag 20191217.
20-01-26 18:03:34 ERROR (SyncWorker_3) [hassio.docker.interface] Can’t install c4fe18d5/amd64-addon-rest980:20191217 -> 404 Client Error: Not Found (“pull access denied for c4fe18d5/amd64-addon-rest980, repository does not exist or may require ‘docker login’”).
Just thought I’d share my floor plan that I made just by taking a screen shot from the roomba app. Obviously not the best but a very quick easy way to get a floor plan!
I had to tweak the colors to get it to show up better on this floorplan.