motioneye icon indicating copy to clipboard operation
motioneye copied to clipboard

Hide cameras from the "user" account?

Open bbb0 opened this issue 1 year ago • 5 comments

Hi,

I would like to use Motioneye with two accounts - the admin account should see all cameras and settings as it is doing now. But the secondary user account now can see all the added cameras. Is there any way to make a flag on certain cameras just to hide them from the viewer account?

It helps me if someone points me to the rendering script, adding another if statement should be feasible... (if !camera.hidden then render)

bbb0 avatar Apr 08 '24 18:04 bbb0

I second this. I would like to be able to configure 2 sets of settings for each camera in Motioneye - one using the first substream at high fps and high resolution with motion detection and secondary object/person detection. Then a second set of settings for the low resolution / low fps substream to record continuously, in case the first one misses any motion events. At the moment the user can see two identical camera previews - it would be really useful to be able to hide one of them

xj25vm avatar Jun 24 '25 15:06 xj25vm

I think it only really makes sense if multiple users are supported: #541

@xj25vm just to understand it correctly: You are currently adding two separate camera streams from the same hardware as two cameras to motionEye, with hence two sets of settings for different purposes? So hiding one of them in the camera preview UI generally makes sense, even for the admin user, as long as the other one can be still selected and configured e.g. from the dropdown.

MichaIng avatar Jun 24 '25 19:06 MichaIng

@MichaIng - yes - that is correct. One camera will only record motion footage at high resolution and high fps, the second camera will connect to the same physical camera, but the second substream - which is low resolution and low fps. This second camera will record continuously. This is in case there is something important going on, which might not be detected as motion - so there is at least some low fps/resolution footage of it. Some commercial cctv systems offer this option - with a second stream recorded at 0.5fps for example - so at least the presence of people is recorded, in case motion events are not triggered.

I don't mind if the admin sees all the cameras - as I only use the admin account for configuring cameras. But it is strange to explain to the users why there are 2 previews for every camera - and it crowds out the interface unnecessarily

xj25vm avatar Jun 24 '25 21:06 xj25vm

It also causes unnecessary traffic and processing at the server. Probably easiest is to have camera preview switches per-user in admin settings. Might be also useful for the admin itself, if there are a lot of cameras.

MichaIng avatar Jun 24 '25 21:06 MichaIng

@MichaIng sounds like a good idea if it can be implemented

xj25vm avatar Jun 25 '25 00:06 xj25vm

If anyone is interested, I have tried implementing this in my local branch (with a little help from Copilot) I have added a button for 'Admin only access' and it works pretty well for me. If anyone wants to test this:

sudo python3 -m pip install --force-reinstall --no-cache-dir --no-deps https://github.com/Marijn0/motioneye/archive/refs/heads/admin-only-cameras.zip

Marijn0 avatar Dec 14 '25 13:12 Marijn0

Would be great if you could open a pull request 🙂.

MichaIng avatar Dec 14 '25 18:12 MichaIng

Would be great if you could open a pull request 🙂.

Will do after I do some more testing.

Marijn0 avatar Dec 14 '25 18:12 Marijn0