motioneyeos icon indicating copy to clipboard operation
motioneyeos copied to clipboard

Schedule different ISO at different hours

Open fujinjr opened this issue 4 years ago • 5 comments

Is it possible to add, inside motioneyeos, the possibility to choose a different ISO during the night?

fujinjr avatar Jul 19 '21 11:07 fujinjr

Flagged

starbasessd avatar Jul 19 '21 12:07 starbasessd

This is a feature I've wanted for a while, it would be nice to have some kind of "go-to" wiki solution if this can't be achieved in code, I actually think it would be great to control other settings as well for a "schedule"

sts-ryan-holton avatar Jul 19 '21 17:07 sts-ryan-holton

You can do it many different ways in scripting. The easiest (IMO) install camera. make your primary adjustments for daytime copy /data/etc/camera-X.conf to /data/etc/camera-X.conf.primary make changes for night time copy /data/etc/camera-X.conf to /data/etc/camera-X.conf.secondary create a script called /data/etc/daytime:


#!/bin/bash cp /data/etc/camera-X.conf.primary /data/etc/camera-X.conf service motioneye restart


create a script called /data/etc/nighttime:


#!/bin/bash cp /data/etc/camera-X.conf.secondary /data/etc/camera-X.conf service motioneye restart


run commands: chmod +x /data/etc/daytime chmod +x /data/etc/nightime

edit crontab crontab -e # select nano


add lines: 59 5 * * * /data/etc/daytime # run daytime script at 5:59a 59 17 * * * /data/etc/nighttime # run nighttime script at 5:59p <ctrl>x, y, <enter>


You can also create buttons on the stream views to manually switch. (edit: corrected a few lines, added forgotten make executable commands) (edit 5 April 2022: corrected some lines with \ instead of / and file names)


There are many other ways to do it...

starbasessd avatar Jul 19 '21 18:07 starbasessd

I have 3 kids and the light switch doesnt really cut it somtimes, even though I love how Cris took the time to figure out cool stuff like that.

I agree, I think the schedule manager could use some TLC.

Ventnts avatar Sep 21 '21 13:09 Ventnts

See my response to your other ticket.

starbasessd avatar Sep 21 '21 13:09 starbasessd