motioneye-project/motioneye

Update dockerfile (necessary add support pantilthat library)

開放

#2,297 建立於 2022年2月22日

 (4 則留言) (0 個反應) (0 位負責人)Python (636 個分叉)batch import
dockerhelp wantedquestion

倉庫指標

星標
 (3,533 顆星)
PR 合併指標
 (平均合併 16天 14小時) (30 天內合併 33 個 PR)

描述

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

貢獻者指南