Hi, I try for hours to get the cec-client working in a Node Docker Container.
FROM balenalib/%%RESIN_MACHINE_NAME%%-node:build as build COPY package.json package.json RUN npm install --only=production # The run time container that will go to devices FROM balenalib/%%RESIN_MACHINE_NAME%%-node:run # install dependencies RUN apt-get update && apt-get install -y --no-install-recommends cec-utils # Grab our node modules for the build step COPY --from=build ./node_modules ./node_modules COPY eis-api.js eis-api.js CMD ["node", "eis-api.js"]
But I when I try to connect to the CEC Device I get the following error:
root@f2c57ff5760c:/# cec-client No device type given. Using 'recording device' CEC Parser created - libCEC version 4.0.4 no serial port given. trying autodetect: FAILED
The running container is running in priviliged mode and also has the device /dev/vchiq and /dev/ttyACM0 mounted. Do you have an idea how to get the cec-client working in a BalenaOS Docker Container?