View on GitHub

motioneyeos_ext

A small set of scripts useful to add specific functionalities to Motioneyeos

motioneyeos_ext

A small set of scripts useful to add specific functionalities to Motioneyeos (tested on Raspberry Pi Zero, but I think is possible to use on other versions of Motioneyeos)

Table of Contents

Tailscale on MotioneyeOS

Website: Tailscale

Script: S98tailscale

To install or update Tailscale:

curl -L https://raw.githubusercontent.com/goldfix/motioneyeos_ext/main/src/S98tailscale -o /tmp/S98tailscale && bash /tmp/S98tailscale install

Rclone on MotioneyeOS and Motioneye DietPi

Website: Rclone

Script: rclone_tool.sh

To install or update Rclone:

curl -L https://raw.githubusercontent.com/goldfix/motioneyeos_ext/main/src/rclone_tool.sh -o /tmp/rclone_tool.sh && bash /tmp/rclone_tool.sh install

Parameters

rclone_tool install: installs Rclone on your device. The destination folder of Rclone and configuration files will be: /usr/bin/.

rclone_tool config: configures Rclone, remote and local folders. The configuration procedure has two different steps. The first step configures Rclone and the second step configures the local camera folder and remote folder.

rclone_tool run <copy|move> <RCLONE_NAME_DEST>: runs Rclone. It’s possible to copy or move files. Requires the destination Rclone configuration (same used to configure it). This command is useful to be configured and scheduled with cron.

Configuration files

Two different configuration files will be create after configuration:

Sample Cron configuration

# .---------------- minute (0 - 59)
# |  .------------- hour (0 - 23)
# |  |  .---------- day of month (1 - 31)
# |  |  |  .------- month (1 - 12) OR jan,feb,mar,apr ...
# |  |  |  |  .---- day of week (0 - 6) (Sunday=0 or 7)  OR sun,mon,tue,wed,thu,fri,sat
# |  |  |  |  |
# *  *  *  *  *  command to be executed
# *  *  *  *  *  command --arg1 --arg2 file1 file2 2>&1

*/15 *  *  *  *  /usr/bin/rclone_tool.sh run move remote

# EOF

Motioneye and Tailscale on DietPi v8.x (Raspberry Pi ARMv6 or ARMv7)

Website:

This script permit to install Motioneye and Tailscale on your Raspberry Pi with DietPi OS. The supported version are:

Please visit the DietPi website to collect more info to install and configure your Raspberry Pi.

To install old version of Motioneye (with Python 2):

Script: motioneye_py2_install.sh

curl -L https://raw.githubusercontent.com/goldfix/motioneyeos_ext/main/src/motioneye_py2_install.sh -o /tmp/motioneye_py2_install.sh && bash /tmp/motioneye_py2_install.sh

To install new version of Motioneye (with Python 3):

Script: motioneye_py3_install.sh

curl -L https://raw.githubusercontent.com/goldfix/motioneyeos_ext/main/src/motioneye_py3_install.sh -o /tmp/motioneye_py3_install.sh && bash /tmp/motioneye_py3_install.sh

To update: https://github.com/motioneye-project/motioneye/tree/dev#upgrade