Installing Motioneye on Raspbian-Stretch

6,983 views
Skip to first unread message

wally333

unread,
Sep 21, 2017, 5:48:18 PM9/21/17
to motioneye

Just did it again on a Pi2 with the original  PiCamera and a WiPi USB WiFi dongle.

Here are the steps in the order I did them, logged in as user pi to install  Motioneye on Raspbian-Stretch:

//Get the latest Raspbian stretch upgrades:
sudo apt-get update
sudo apt-get dist-upgrade

// add v4l2 driver for picamera, you can skip this if only using USB webcams or netcams
sudo nano /etc/modules
// add, after i2c-dev:
bcm2835-v4l2

// extra packages from the standard repos:
sudo apt-get install libssl-dev libcurl4-openssl-dev libmariadbclient18 libpq5 mysql-common ffmpeg

// get and install pre-built motion package for stretch:

// install motioneye
sudo pip install motioneye

// initial setup of config files and motioneye deamon:
sudo mkdir -p /etc/motioneye
sudo cp /usr/local/share/motioneye/extra/motioneye.conf.sample /etc/motioneye/motioneye.conf
sudo mkdir -p /var/lib/motioneye
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

// restart the system
sudo reboot


Connect your browser to port 8765, use Chromium on the Pi as localhost:8765 or on a different machine on your local network yourPi_IP:8765

My router automatically adds dhcp clients to its caching DNS so I can use the Pi2 hostname to connect:  picam:8765

Configure to suit.


Hope this helps someone.

My reason for doing this is to see if a different WiFi subsystem can stay up for 24/7 usage. The PiZero-W (and Pi3) apparently can't with current firmware for the chip used, see:

If it works, next week I'll disable the PiZero-W WiFi and try the WiPi dongle with it, not optimum solution, but I've other plans for the Pi2 using a wired connection.   I got the PiZero-W to use with either something like Motioneye or some of my own code to capture images on command After trying Motioneyeos on the Pi2 with a wired connection.




Pennywise Clowno

unread,
Sep 26, 2017, 5:43:46 PM9/26/17
to motioneye
It most certainly helped me setting up a raspberry pi 3 with noir filter cam. Thanks a lot! You're a life saver. I've been fiddling around for 2 evenings now without getting it to work until I stumbled upon your post.
Message has been deleted

Tia

unread,
Jan 9, 2018, 12:05:50 PM1/9/18
to motioneye

Ro Ro

unread,
Jan 10, 2018, 2:29:29 PM1/10/18
to motioneye
parfait merci pour ce tutaux simple et efficace ;) 
débutant avec raspian  cela ma beaucoup aider 
Merci 

thanks you 

Danny Martin

unread,
May 30, 2018, 5:03:21 PM5/30/18
to motioneye
Thanks for your information, I got this to work with no problem, had almost given up on the installation instructions MotionEye website.

nagj...@gmail.com

unread,
Jun 23, 2018, 10:16:35 AM6/23/18
to motioneye
Followed the below steps and was able to install on raspbian stretch however I cant login to http://myraspiip:8765, ,may i know the default username and password for this.


Thanks
Jorge


On Friday, September 22, 2017 at 1:48:18 AM UTC+4, wally333 wrote:

Per Tore Molvær

unread,
Oct 10, 2018, 9:50:07 AM10/10/18
to motioneye
Awesome! This was just what I needed! All this time trying to install Motion and I stumble into this solution. Thank you!!
The default password for Motioneye on your first login is Admin with blank password.

However, after a couple of minutes, the camera went into grey again, and says "Unable to open video device" 

What could be the reason for this, is there any sleepmode or something?

blindeyeseesall

unread,
Dec 3, 2018, 1:27:51 PM12/3/18
to motioneye
I've done this again and as of today I get the following error when running "sudo pip install motioneye":  "The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source."  Pillow fails to build.  This can be resolved by adding 
libjpeg-dev to the list of pre-reqs (updated line below) or "sudo apt-get install libjpeg-dev" if you are getting this particular error.
 
// extra packages from the standard repos:
sudo apt-get install libssl-dev libcurl4-openssl-dev libmariadbclient18 libpq5 mysql-common ffmpeg libjpeg-dev


Ian Tindale

unread,
Dec 30, 2018, 9:38:09 AM12/30/18
to motioneye
I've been following these instructions over and over and over for the past few months, and each time it doesn't accept my password, no matter how many times I try.

Alan McKay

unread,
Dec 30, 2018, 10:14:38 AM12/30/18
to motioneye
Password at what point?
Reply all
Reply to author
Forward
0 new messages