Motioneyeos: Change Camera order

Created on 24 Oct 2017  路  17Comments  路  Source: ccrisan/motioneyeos

Hello
I have 4 cameras connected to my raspberry and I would like to change camera order (camer id 1 to become cameraid 4)
Is that possible? From the GUI camera id is not editable
thanks

Most helpful comment

This worked for me on motionEyeOS 20180627. For example:

ssh [email protected]
cd /data/etc
ls -la thread-*
mv thread-2.conf thread-10.conf
mv thread-1.conf thread-2.conf
mv thread-10.conf thread-1.conf
reboot

All 17 comments

Not yet possible, but planned.

Any idea when this is planned?

+1 on this. I have 4 RPi Zero's, and using a RPi 3 with 1TB HDD as a "hub" .... but as someone with OCD it really bugs me that I can't order the cameras. I've named them incrementally and their IP's are also incremental. Despite adding Camera 1 first, then Camera 2, Camera 2 still shows first. I tried deleting them all, then added added them in reverse order... but Camera 2 is still showing as the 1st camera.

Well... it depends how brave you are... it looks as though you could simply edit the /data/etc/thread-n files, then reboot. It could work, although if your R Pi 3 bursts into flames, it is all your fault 馃槃

@Chiny91 - Funny you should say that..... I literally just renamed them to the order I wanted. It wasn't working at first, so went to get some food... just come back and saw your reply, then smacked my self in the head for not rebooting!! haha - just rebooted and all are in the order I wanted now :)

@Chiny91 - Can you advise on which ID to change to do this ? I'm more than willing to give it a go, but when I switch the ID Tags around - I get duplicate cameras :\

Would appreciate advice as I'd love to switch mine around a bit !

@McMoobud

The files are here: /data/etc/thread-n.conf where n is a number.

screenshot 2018-07-19 at 12 26 03

So for example, using my screenshot for reference, if you wanted to swap the camera order, rename thread-1.conf to thread-1_.conf, rename thread-2.conf to thread-1.conf, then rename (again) the newly renamed thread-1_.conf to thread-2.conf

Then reboot

Thanks @IAmOrion !

I've done that, but it would appear it's not done anything which is odd.

Might be how I've got mine configured or setup. I'll detail :

Camera 1 - Garden View
Raspi2 with Logitech Webcam
Setup as the main MotionEye instance with the second camera attached as a MotionEye Remote Camera:
Camera 2 - Front Door
Raspi Zero W with 5mp Raspi Camera module
Added remotely to the first camera.

Maybe because I'm looking at Camera 1's interface directly, I could just switch and add Camera 1 to Camera 2's interface?

I'll try that now :D

Thanks again for your help, much appreciated!

Sorted it 馃憤
Figured it would be best to setup a hub as per the instructions from @ccrisan so have done that and added the camera in the order I wanted them.

:D

This worked for me on motionEyeOS 20180627. For example:

ssh [email protected]
cd /data/etc
ls -la thread-*
mv thread-2.conf thread-10.conf
mv thread-1.conf thread-2.conf
mv thread-10.conf thread-1.conf
reboot

This worked for me on motionEyeOS 20180627. For example:

ssh [email protected]
cd /data/etc
ls -la thread-*
mv thread-2.conf thread-10.conf
mv thread-1.conf thread-2.conf
mv thread-10.conf thread-1.conf
reboot

Thanks, worked for me perfectly, once rebooted I did have to turn "Video Device" On for all the cameras that I'd moved.

Would be nice to have as I'm always moving cameras around

+1

looking for a solution as well.. /data/etc doesnt exist on my setup.

In newer versions the file names changed from 'thread-X.conf to camera-X.conf.
If you don't have /data/etc, try looking in /etc/motioneye (assuming you are only using motionEye, and not motionEyeOS)

Any updates on configuring this in the UI?

On a RPi4 I simply swapped the USB cables for my two camera around(!) Both cameras into the USB 2.0 ports so just flip-flopped. Yes, shocked me was that simple! Hope this trick works for others.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JasonMorris1 picture JasonMorris1  路  5Comments

wolfi74 picture wolfi74  路  5Comments

andrei-volkau picture andrei-volkau  路  3Comments

manianac picture manianac  路  5Comments

dimgod59 picture dimgod59  路  4Comments