motioneye-project/motioneye

Update dockerfile (necessary add support pantilthat library)

Offen

#2.297 geöffnet am 22.02.2022

 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (636 Forks)batch import
dockerhelp wantedquestion

Repository-Metriken

Stars
 (3.533 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 16T 14h) (33 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide