Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Set Up MotionEye on Raspberry Pi for Home Surveillance

MotionEye is an open-source software that turns your Raspberry Pi into a powerful surveillance system. It provides a web-based interface for monitoring and recording video from multiple cameras, making it an ideal solution for home security. In this article, we will guide you through the process of installing and configuring MotionEye on a Raspberry Pi. This setup is particularly valuable for users looking to create a cost-effective, DIY security system.

Examples:

  1. Preparing Your Raspberry Pi:

    • Ensure your Raspberry Pi is running the latest version of Raspberry Pi OS. You can download it from the official Raspberry Pi website.
    • Update your system packages to the latest version by running the following commands:
      sudo apt-get update
      sudo apt-get upgrade
  2. Installing MotionEye:

    • Install the necessary dependencies:
      sudo apt-get install ffmpeg v4l-utils
    • Download and install Motion:
      sudo apt-get install motion
    • Verify the installation by checking the version:
      motion -h
  3. Setting Up MotionEye:

    • Install MotionEye by following these steps:
      sudo apt-get install python-pip python-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libz-dev
      sudo pip install motioneye
    • Create a configuration directory:
      sudo mkdir -p /etc/motioneye
      sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
    • Prepare the media directory:
      sudo mkdir -p /var/lib/motioneye
  4. Starting MotionEye:

    • Add and start the MotionEye service:
      sudo cp /usr/local/share/motioneye/extra/motioneye.systemd-unit-local /etc/systemd/system/motioneye.service
      sudo systemctl daemon-reload
      sudo systemctl enable motioneye
      sudo systemctl start motioneye
    • Access the MotionEye web interface by navigating to http://<your_raspberry_pi_ip>:8765 in your web browser. The default username is admin with no password.
  5. Configuring Cameras:

    • Once logged in, you can add cameras by clicking on the "Add Camera" button. You can configure settings such as resolution, frame rate, and motion detection parameters.
  6. Advanced Configuration:

    • For advanced users, you can further customize MotionEye by editing the configuration files located in /etc/motioneye/. For example, to change the port number, edit the motioneye.conf file:
      sudo nano /etc/motioneye/motioneye.conf
    • Restart the MotionEye service to apply changes:
      sudo systemctl restart motioneye

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.