Skip to content

femtodata/motioneye

 
 

Repository files navigation

Femtodata notes

to deploy:

  • transfer the appropriate image archive (probably tar.gz) to the target device
  • on target device, run
    gunzip -c image.tar.gz | docker load
    
  • setup motioneye:
    mkdir -p motioneye/etc_motioneye
    mkdir -p motioneye/var_lib_motioneye
    
    
  • copy extra/docker-compose-rpi.yml to motioneye/
  • populate motioneye/etc_motioneye/ with camera confs
  • create camera dirs in var volume, assume 10 cameras:
    N=15
    for i in $(seq $N); do
      mkdir -p motioneye/var_lib_motioneye/Camera$i
    done
    
  • start / restart via docker-compose:
    cd motioneye
    docker-compose -f docker-compose-rpi.yml up -d
    
  • SET ADMIN AND USER PASSWORDS!

What is motionEye?

motionEye is an online interface for the software motion , a video surveillance program with motion detection.

Check out the wiki for more details. Changelog is available on the releases page.

The supported languages are:

  • French
  • Esperanto
  • English

The following languages have been translated by machine translation and must be corrected:

  • Arabic ( ﺎﻠﻋﺮﺒﻳﺓ )
  • Bengal ( বাংলা) )
  • German ( Deutsch )
  • Hispana ( Español )
  • Hindi ( _हिन्दी _ )
  • Itala ( Italiano )
  • Japan ( 日本語 )
  • Malay ( ﺐﻫﺎﺳ ﻡﻼﻳﻭ )
  • Punjab ( _ਪੰਜਾਬੀ _ )
  • Portugal ( Português )
  • Russian ( русский язык )
  • Chinese ( 中文 )

Installation

These install instructions are constantly tested via CI/CD pipeline on Debian Bullseye and Ubuntu Focal.

  1. Install Python 3.7 or later and build dependencies

    Here the commands for APT-based Linux distributions are given.

    On ARMv6 and ARMv7 systems:

    sudo apt update
    sudo apt --no-install-recommends install ca-certificates curl python3 python3-distutils

    On all other architectures additional development headers are required:

    sudo apt update
    sudo apt --no-install-recommends install ca-certificates curl python3 python3-dev libcurl4-openssl-dev gcc libssl-dev
  2. Install the Python package manager pip

    curl -sSfO 'https://bootstrap.pypa.io/get-pip.py'
    sudo python3 get-pip.py
    rm get-pip.py

    On ARMv6 and ARMv7 systems, additionally configure pip to use pre-compiled wheels from piwheels:

    printf '%b' '[global]\nextra-index-url=https://www.piwheels.org/simple/\n' | sudo tee /etc/pip.conf > /dev/null
  3. Install and setup motionEye

    sudo python3 -m pip install 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
    sudo motioneye_init

    NB: motioneye_init currently assumes either an APT- or RPM-based distribution with systemd as init system. For a manual setup, config and service files can be found here: https://github.com/motioneye-project/motioneye/tree/dev/motioneye/extra

Upgrade

sudo systemctl stop motioneye
sudo python3 -m pip install --upgrade --force-reinstall --no-deps 'https://github.com/motioneye-project/motioneye/archive/dev.tar.gz'
sudo systemctl start motioneye

About

A web frontend for the motion daemon.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 51.6%
  • JavaScript 27.4%
  • HTML 14.8%
  • CSS 4.0%
  • Shell 1.5%
  • Dockerfile 0.5%
  • Makefile 0.2%