MotionEyeOS: Difference between revisions

From WickyWiki
mNo edit summary
mNo edit summary
Line 5: Line 5:


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.  
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.  
However, 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:
* [[#Settings for better picture with low light conditions]]
* [[Calculation of sunrise and sunset]]
* [[MotionEyeOS Day and Night Python script]]


See also:
See also:
Line 80: Line 75:
== Settings for better picture with low light conditions ==
== Settings for better picture with low light conditions ==


Source:
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:
* https://github.com/ccrisan/motioneyeos/issues/953
* [[Calculation of sunrise and sunset]]
* [[MotionEyeOS Day and Night Python script]]


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.  
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.  
Line 108: Line 104:
nano /data/etc/thread-1.conf  
nano /data/etc/thread-1.conf  
</syntaxhighlight>
</syntaxhighlight>
Source:
* https://github.com/ccrisan/motioneyeos/issues/953


== Writable root or boot partitions ==
== Writable root or boot partitions ==

Revision as of 22:29, 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
sudo ./writeimage.sh -d /dev/sdX -i "motioneyeos-raspberrypi-dev20190223.img" -n 'WeeFee2: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.14

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