Volumio2 merged with MotionEye

Hello,

I really like Volumio2. It is stable and does everything I need. But in my opinion it still can do more then just play music.
I needed to also have IP cam in the room so decided to merge MotionEye with Volumio2.
I have spare Raspberry Pi B+ so decided to do on it.

I have downloaded Volumio2 (VERSION: 2.041) and flashed it on SD card.
Turn on Raspberry PI and system booted properly to Volumio2. Everything was working as expected.

Steps I did (a lot of steps just found on github.com/ccrisan/motioneye/wi … -On-Debian):
sudo apt-get update

wget github.com/ccrisan/motioneye/wi … _armhf.deb
sudo dpkg -i ffmpeg_3.1.1-1_armhf.deb

sudo apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5 v4l-utils

Here I got dependency issues so I needed to execute:
sudo apt-get install -f

And again:
sudo apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev libx264-142 libavcodec56 libavformat56 libmysqlclient18 libswscale3 libpq5 v4l-utils

To allow motion to find libraries I needed few links:
sudo ln -fs /opt/vc/lib/libEGL.so /usr/lib/libEGL.so
sudo ln -fs /opt/vc/lib/libGLESv2.so /usr/lib/libGLESv2.so
sudo ln -fs /opt/vc/lib/libbcm_host.so /usr/lib/libbcm_host.so
sudo ln -fs /opt/vc/lib/libvcos.so /usr/lib/libvcos.so
sudo ln -fs /opt/vc/lib/libvchiq_arm.so /usr/lib/libvchiq_arm.so
sudo ln -fs /opt/vc/lib/libmmal.so /usr/lib/libmmal.so
sudo ln -fs /opt/vc/lib/libmmal_core.so /usr/lib/libmmal_core.so
sudo ln -fs /opt/vc/lib/libmmal_util.so /usr/lib/libmmal_util.so
sudo ln -fs /opt/vc/lib/libvcsm.so /usr/lib/libvcsm.so
sudo ln -fs /opt/vc/lib/libmmal_vc_client.so /usr/lib/libmmal_vc_client.so
sudo ln -fs /opt/vc/lib/libmmal_components.so /usr/lib/libmmal_components.so
sudo ln -fs /opt/vc/lib/libcontainers.so /usr/lib/libcontainers.so
sudo ln -fs /opt/vc/lib/libopenmaxil.so /usr/lib/libopenmaxil.so

Now install MotionEye:
sudo pip install motioneye

And do some configuration:
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

Now I have Volumio2 interface on port 80 and MotionEye interface on port 8765.
Till now it works really nicely.

Couple of problems I had:

  • I wanted to build Volumio2 with Build scripts (github.com/volumio/Build)
    Scripts created the image, Raspberry PI booted to Volumio2 but it seemed that communication with MPD was not working.
    When I played some radio I did not hear any music and also pages to add NAS shares (My Music) were not working.
    But MPD and Volumio services were running.
  • I am not sure if this installation could be done in a better way, e.g. as some plugin or so.
    I do not know if the plugin is a good idea to have this done and actually I am not sure how to make a plugin.
  • Maybe it could be also a good idea to incorporate it to Build script as some optional possibility.
    Again not sure how to do it, especially when the images are not running for me.

If the idea seems nice for someone and he would like to contribute and knows the system more then me,
he can help to incorporate it ti Volumio2 in a better way.

Also any ideas are welcomed.

Thanks again for great OS.

Thanks a lot! This was exactly what I’m looking for :smiley: :ugeek: :wink:

Just added Motion for local USB Cam Support, it wasn’t possible without:

wget https://github.com/Motion-Project/motion/releases/download/release-4.0.1/pi_jessie_motion_4.0.1-1_armhf.deb dpkg -i pi_jessie_motion_4.0.1-1_armhf.deb

Updated install instructions for version 2.348:

sudo echo “deb deb-multimedia.org jessie main non-free” >> /etc/apt/sources.list
sudo apt-get update
sudo apt-get install deb-multimedia-keyring
sudo apt-get update # yes, again
sudo apt-get install motion ffmpeg v4l-utils

sudo apt-get install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev

sudo pip install motioneye

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

Great, it is now much more easy.
A lot of info from github.com/ccrisan/motioneye/wi … -On-Debian

One more update :slight_smile:

Have managed to create volumio plugin to install MotionEye:

github.com/gogiman/volumio-plug … /motioneye

Was working on my Raspberry PIs (1 B and 3), but it is still in BETA state.

How to install on a running Volumio:

git clone github.com/gogiman/volumio-plugins.git
cd volumio-plugins/plugins/miscellanea/motioneye/
volumio plugin install

After installation (whitch take pretty long time :slight_smile:) Enable the plugin in Volumio plugins to start MotionEye Deamon

It is also possible to install it manually:

sudo echo “deb deb-multimedia.org jessie main non-free” >> /etc/apt/sources.list

sudo apt-get update
sudo apt-get --yes --force-yes install deb-multimedia-keyring
sudo apt-get update # yes, again

sudo apt-get -y install motion ffmpeg v4l-utils

sudo apt-get -y install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev

sudo pip install motioneye

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

Hello.

İ installed motioneye.zip plugin successfully. and tried to add new camera at webui.
but it says (no cameras) under Local V4L2 Camera section.
Do i have to do something else to enable csi camera on my system.
Alsa when i try default motioneye.img on my pi it works ok.
Please help

CSI camera is working on my Pi.

Add and modify vars in /boot/config.txt

start_x=1
gpu_mem=128

Add bcm2835-v4l2 to /etc/modules

bcm2835-v4l2

reference
raspberrypi.stackexchange.com/q … spi-config
github.com/ccrisan/motioneye/wi … t-detected

Hi i have installed Motion os this way:

[code]It is also possible to install it manually:

sudo echo “deb http://www.deb-multimedia.org jessie main non-free” >> /etc/apt/sources.list

sudo apt-get update
sudo apt-get --yes --force-yes install deb-multimedia-keyring
sudo apt-get update # yes, again

sudo apt-get -y install motion ffmpeg v4l-utils

sudo apt-get -y install python-pip python-dev curl libssl-dev libcurl4-openssl-dev libjpeg-dev

sudo pip install motioneye

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[/code]

But now Volumio didnt start anymore :frowning:
It starts but i can not connect via webbrowser… MotionEye can be reached on port 8765 but not Volumio…
i hear every 2-3 minutes a noice from the speaker… but no auto configured music
what can i do?
I have access via ssh… service is running… has the port changed?

greetings

Pascal

This is great. I’ll install and post back with the results.

i have tried everything above with version 2.348 and 2.555

install of motioneye fails. i´d try to install on raspian with success. the fail is in

sudo pip install motioneye

there are some differencies on installation between rasbian and volumio but i can´t see the failure

there is no open port 8765

please help. thank u

Another possibility is to run MotionEye in a docker conainer:

  • Download download.docker.com/linux/raspb … _armhf.deb (wget ?)
  • sudo dpkg -i docker-ce_18.06.3_ce_3-0_raspbian_armhf.deb
  • sudo docker pull ccrisan/motioneye:master-armhf
  • sudo docker run --name=“motioneye” -p 8765:8765 --hostname=“motioneye” -v /etc/localtime:/etc/localtime:ro -v /etc/motioneye:/etc/motioneye -v /var/lib/motioneye:/var/lib/motioneye --restart=“always” --detach=true --device=/dev/video0 ccrisan/motioneye:master-armhf

I hope I remember all steps performed (It took a couple of hours to get it done)
More details: github.com/ccrisan/motioneye/wi … -In-Docker

Then just open volumio.local:8765/ and you are done. In my case it works better then with previous approach :slight_smile: