In this video I show how to control a Pan Tilt Camera with Motioneye so that pan tilt head of a camera can be controlled from buttons on Motioneye web interface itself. The required files are in the link below gist.github.co...
Пікірлер: 15
@madryboy3 жыл бұрын
im curious i have a logitech orbit AF it had built in PTZ/pan-tilt on the camera but im not sure how to enable it can i use this method?
@SamirSogay3 жыл бұрын
Only if you know the url to control the logitech
@blopak23 жыл бұрын
Hi. I have Motion Eye over Homeassistat over a Raspberry Pi 4 as well. I have two Hikvision cameras, one its works great, but the other give me a gray picture all the time. Do you have any recomendation? thanks.
@SamirSogay3 жыл бұрын
Probably there is no connectivity as something must have gone wrong during setup. My suggestion would be to try and add the camera again.
@AGAPENIMA3 жыл бұрын
Hi Samir. Do you know how you can control the Raspberry Pi's GPIO using the buttons? I want to control a 28byj stepper motor and I have an Arduino nano. If I could send signals to the Arduino nano through the GPIO it would work, but I can't find any documentation on how to control the GPIO pins using the MotionEye buttons.
@@SamirSogay Thanks, I've seen this. I wish it was more explanatory with examples.
@SamirSogay3 жыл бұрын
@@AGAPENIMA It is better if you search for examples of controlling GPIO independent of motioneye as there will be considerably more tutorials for that. Then you can just use that to apply on MotionEye buttons.
@AGAPENIMA3 жыл бұрын
@@SamirSogay Do you know if there is a way to run a python scrips when buttons are clicked?
@SamirSogay3 жыл бұрын
@@AGAPENIMA write a script with #!/usr/bin/env python in the beginning and followed by python code. I hope this should work.
@aribandus813 жыл бұрын
Hi. I'm trying to configure pan/tilt scripts on last available version of MotionEye (motionEye Version 0.42.1 - Motion Version 4.2.2+gitUNKNOWN - OS Version motionEyeOS 20200606) but the path /etc/motioneye does not exist. I put the script files into /data/etc, where conf files are located and I'm able to see buttons on webcam screen, but they don't work. Do you know what's wrong? Thanks for your help.
@SamirSogay3 жыл бұрын
Are your camera pan tilt URL controlled. If yes, try them independently and see if it works.
@aribandus813 жыл бұрын
@@SamirSogay I know it has some actions for PTZ controls, but I’m not able to find the URL to use. Anyway, thanks for reply.
@growleym5042 жыл бұрын
I don't understand, either. I don't know what to use for a "camera url" because I am using a Pi 3B and a Pi camera V2 plugged into the CSI connection with ribbon cable. I have two servos connected to the 40 pin header for pan and tilt. I can run code in python to move the servos. I am running MotionEyeOS. I can see the camera when I go to the local url for the Pi. I can create empty files and then the action buttons appear as an overlay on the video feed from the camera. But I do not know what to put in the files! The code listed doesn't do anything. I can't find any script anywhere that does anything when it is placed in the action button file. I don't think this feature even works at all.