Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evandene opened this issue Dec 16, 2022 · 4 comments
Labels

Comments

@evandene
Copy link

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

@davesteele
Copy link
Owner

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.

@evandene
Copy link
Author

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
Copy link
Author

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

@davesteele
Copy link
Owner

Enable motioneye
systemctl enable motioneye

You may have an issue after reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants