Control Pan Tilt Camera in Motioneye

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • 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

  • @madryboy
    @madryboy 3 года назад +1

    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?

    • @SamirSogay
      @SamirSogay  3 года назад

      Only if you know the url to control the logitech

  • @blopak2
    @blopak2 3 года назад

    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.

    • @SamirSogay
      @SamirSogay  3 года назад

      Probably there is no connectivity as something must have gone wrong during setup. My suggestion would be to try and add the camera again.

  • @aribandus81
    @aribandus81 3 года назад

    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.

    • @SamirSogay
      @SamirSogay  3 года назад

      Are your camera pan tilt URL controlled. If yes, try them independently and see if it works.

    • @aribandus81
      @aribandus81 3 года назад

      @@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.

    • @growleym504
      @growleym504 2 года назад

      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.

  • @AGAPENIMA
    @AGAPENIMA 3 года назад

    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
      @SamirSogay  3 года назад +1

      github.com/ccrisan/motioneyeos/wiki/Action-Buttons

    • @AGAPENIMA
      @AGAPENIMA 3 года назад

      @@SamirSogay Thanks, I've seen this. I wish it was more explanatory with examples.

    • @SamirSogay
      @SamirSogay  3 года назад +1

      @@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.

    • @AGAPENIMA
      @AGAPENIMA 3 года назад

      ​@@SamirSogay Do you know if there is a way to run a python scrips when buttons are clicked?

    • @SamirSogay
      @SamirSogay  3 года назад +1

      @@AGAPENIMA write a script with #!/usr/bin/env python in the beginning and followed by python code. I hope this should work.