elad-bar / DahuaVTO2MQTT

Listens to events from Dahua VTO unit and publishes them via MQTT Message
103 stars 39 forks source link

plese add ARMv7 compatibility #28

Open udlch opened 3 years ago

udlch commented 3 years ago

at Armv7-A (QNAP NAS) get error

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

reesericci commented 3 years ago

big problem for pis running HA

Sergbmw commented 3 years ago

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

myhomeiot commented 3 years ago

big problem for pis running HA

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

elad-bar commented 3 years ago

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

Marcmk1 commented 3 years ago

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.

roysbike commented 2 years ago

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"]
Anzic23 commented 2 years ago

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