DahuaVTO2MQTT icon indicating copy to clipboard operation
DahuaVTO2MQTT copied to clipboard

plese add ARMv7 compatibility

Open udlch opened this issue 4 years ago • 7 comments

at Armv7-A (QNAP NAS) get error

standard_init_linux.go:211: exec user process caused "exec format error"

udlch avatar Jan 29 '21 09:01 udlch

big problem for pis running HA

reesericci avatar Feb 07 '21 11:02 reesericci

standard_init_linux.go:219: exec user process caused: exec format error please add raspberry 4

Sergbmw avatar Mar 24 '21 15:03 Sergbmw

big problem for pis running HA

If you use HA, you can try to use this integration.

myhomeiot avatar Apr 24 '21 16:04 myhomeiot

if someone can assist with that issue that would be great, i don't have a RP4 to test it, but it seems that for ARMv7 need to install additional package within the container: sudo apt-get install qemu binfmt-support qemu-user-static

in order to do that, you will need to change the entry point to different command, access to the terminal of the container, install the missing package and try running manually the DahuaVTO,py file.

thanks

elad-bar avatar Apr 24 '21 17:04 elad-bar

Hi I tried to start the image with sudo docker run -t -i eladbar/dahuavto2mqtt bash

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm/v7) and no specific platform was requested standard_init_linux.go:219: exec user process caused: exec format error

I dont understand how I can spin-up an docker image that has an different architect. If you got the command I'm happy to preform those for you! :ediit: For now I run it manual with python3 DahuaVTO.py as an service and for me it works great! Only it would be nice to have an running docker.

Marcmk1 avatar May 24 '21 13:05 Marcmk1

Make for arm7:

FROM python:slim-buster
WORKDIR /app
COPY *.py ./
RUN apt update && apt upgrade && pip3 install paho-mqtt requests &&  pip install paho-mqtt requests
RUN chmod +x /app/DahuaVTO.py
ENTRYPOINT ["python3", "/app/DahuaVTO.py"]

roysbike avatar Aug 24 '21 13:08 roysbike

https://github.com/elad-bar/DahuaVTO2MQTT/issues/17#issuecomment-949339605

Anzic23 avatar Oct 22 '21 07:10 Anzic23