MotionEyeOS: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 17: Line 17:
lsblk | grep part
lsblk | grep part
wget https://raw.githubusercontent.com/ccrisan/motioneyeos/master/writeimage.sh
wget https://raw.githubusercontent.com/ccrisan/motioneyeos/master/writeimage.sh
chmod +x writeimage.sh
sudo ./writeimage.sh -d /dev/sdX -i "motioneyeos-raspberrypi-dev20190223.img" -n 'WifiNetworkName:PassKey'
sudo ./writeimage.sh -d /dev/sdX -i "motioneyeos-raspberrypi-dev20190223.img" -n 'WifiNetworkName:PassKey'
</syntaxhighlight>
</syntaxhighlight>

Revision as of 22:39, 17 March 2019


Here are some notes of setting up MotionEyeOS on a RaspberryPi Zero with a mounted camera module. I used a camera module without infrared filter (Pi NoIR) so it should be better low light conditions.

See also:

Installation

cd /path/to/directory/
lsblk | grep part
wget https://raw.githubusercontent.com/ccrisan/motioneyeos/master/writeimage.sh
chmod +x writeimage.sh
sudo ./writeimage.sh -d /dev/sdX -i "motioneyeos-raspberrypi-dev20190223.img" -n 'WifiNetworkName:PassKey'

Configure Wifi for headless boot

If not done during 'writeimage.sh'.

Setup Wifi without ssh, monitor or keyboard by creating this file on the FAT boot partition.

sudo nano /boot/wpa_supplicant.conf
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
    scan_ssid=1
    ssid="WeeFee2"
    psk="WeeFee2-PassKey-Here"
}

Ssh

ssh admin@192.168.1.0

Setup a key to allow you to login without the password:

Require password

The default password is empty, start the web interface with the admin user and change the password for admin and user there.

Tweaks

Git webpage

Network File Storage

The router (192.168.1.1) has network share capability with Samba, settings in MotionEyeOS admin console:

  • Type: Network share
  • Server: 192.168.1.1
  • SMB Protocol: 1.0
  • Share name: rpicam
  • User: ***
  • Password ***
  • Root directory: /

Nautilus file explorer location:

  • smb://192.168.1.1/rpicam/

Settings for better picture with low light conditions

The standard settings don't handle low light conditions very well. In order to improve on this, a script was created to apply low light settings between sunset and sunrise. More info:

These settings can be added In the extra motion settings box or in the configuration file. Settings that are controlled by MotionEye will be overwritten and disappear.

Note:

  • Higher framerates will make the picture darker
  • With daylight these settings may lead to overexposure
  • Moving objects may be blurred beyond recognition

Example 1:

 mmalcam_control_params -ex night

Example 2:

 mmalcam_control_params -ex sports -ev 25 --shutter 256000
 auto_brightness on
 hue 0
 saturation 5
 brightness 255
 contrast 1

These settings can also be modified in the configuration file (thread-1.conf for Camera 1):

nano /data/etc/thread-1.conf

Source:

Writable root or boot partitions

De data (/data) partition is the only writable partition. Whenever you need to change something on either root (/) or boot (/boot) partitions, run the following commands to make them writable:

ssh admin@192.168.1.14

Root:

mount -o remount,rw /

Boot:

mount -o remount,rw /boot