comitup icon indicating copy to clipboard operation
comitup copied to clipboard

Installing comitup when Motioneye has been installed prevents comitup-xxx.local login

Open evandene opened this issue 3 years ago • 4 comments

Hi, I have a usb camera security streaming software installed on my Pi (OS Debian Bullseye). Motioneye is the usb camera streaming software and works great. When I install comitup, the installation go's smooth without errors. The comitup-xxx is broadcasted and I can SSH into it, so far so good. What doesn't work is the login via the web browser. The Motioneye stream opens with the provided http://10.41.0.1/ IP address. The same happens when I try the hostname.local. Installing comitup without Motioneye installed works great under all circumstances. I could need some help please

evandene avatar Dec 16 '22 00:12 evandene

The problem is that both Comitup and Motioneye require ownership of port 80. The solution is to allow Comitup to manage the Motioneye service - enabling it when an upstream connection is achieved. See the Pi-hole and Docker solutions for an idea of how to do this.

davesteele avatar Dec 17 '22 01:12 davesteele

Thanks for the response, the direction given make sense and will get me out of the woods. I will publish the results after the holidays. Thanks again.

evandene avatar Dec 17 '22 15:12 evandene

And indeed all works fine now. No conflicts anymore. Here below the script that worked for me. First stop Motioneye sudo systemctl stop motioneye sudo systemctl disable motioneye Create a file script with name: /usr/local/bin/comitup-callback

  • nano /usr/local/bin/comitup-callback Add the following lines #!/usr/bin/bash

if [ $1 == "CONNECTED" ] ; then systemctl start motioneye else if [ $1 == "HOTSPOT" ] ; then systemctl stop motioneye fi fi

Make the script executable

$ sudo chmod 755 /usr/local/bin/comitup-callback $ sudo chown root.root /usr/local/bin/comitup-callback

Enable motioneye systemctl enable motioneye

evandene avatar Dec 20 '22 14:12 evandene

Enable motioneye systemctl enable motioneye

You may have an issue after reboot.

davesteele avatar Dec 23 '22 18:12 davesteele