motioneye-project/motioneye

Update dockerfile (necessary add support pantilthat library)

Aberta

#2.297 aberto em 22 de fev. de 2022

 (4 comentários) (0 reação) (0 responsável)Python (636 forks)batch import
dockerhelp wantedquestion

Métricas do repositório

Stars
 (3.533 estrelas)
Métricas de merge de PR
 (Mesclagem média 16d 14h) (33 fundiu PRs em 30d)

Description

Hello, dear friends. I have the next problem, namely: I wanna using action buttons for ptz pro 2 camera. I found information, that i should:

  1. Create file left_1 (for left button) and put next code: #!/bin/bash /usr/bin/python3 /etc/motioneye/left.py
  2. Create file left.py and put code: #!/usr/bin/python

import time import pantilthat

currentPos = pantilthat.get_servo_one() newPos = currentPos +20 if newPos >= 80: newPos = 80 pantilthat.servo_one(newPos) time.sleep(1)

But when i try to use pan tilt control i received the next message:

WARNING: left_1: command has finished with non-zero exit status: 1 WARNING: left_1: Traceback (most recent call last): WARNING: left_1: File "/etc/motioneye/left.py", line 4, in WARNING: left_1: import pantilthat WARNING: left_1: ImportError: No module named 'pantilthat'

I assume that problem can be fix if I rebuild motioneye server image and put in dockerfile information about support pantilthat python lybrary. Please, give me advice how can i rebuild image so that fix this problem or other tips how to fix this problem

Guia do colaborador