motioneye-project/motioneye

Update dockerfile (necessary add support pantilthat library)

Ouverte

#2 297 ouverte le 22 févr. 2022

 (4 commentaires) (0 réaction) (0 personne assignée)Python (636 forks)batch import
dockerhelp wantedquestion

Métriques du dépôt

Stars
 (3 533 étoiles)
Métriques de merge PR
 (Merge moyen 16j 14h) (33 PRs mergées en 30 j)

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

Guide contributeur