autonight doesn't work when changing settings
the autonight script doesn't seems to work right, when changing a setting and majestic restarts. it stays in day mode, but the cam was in a dark room.
Try it now
No, it stays in day mode.
Execute in:
/etc/init.d/S96autonight stop
/usr/sbin/autonight.sh
And without closing the console, perform the actions that lead to the problem. Post the output here.
Also test this https://t.me/mjsxj02hl_firmware/5706
Execute in:
/etc/init.d/S96autonight stop /usr/sbin/autonight.shAnd without closing the console, perform the actions that lead to the problem. Post the output here.
Stopped service. Running script directly. Change a setting in majestic using web UI. Nothings happens, no output on console.
~# /usr/sbin/autonight.sh
....................
Watching at isp_again > 14000 to enable night mode
Watching at isp_again < 2000 to disable night mode
Polling interval: 5 sec
....................
Also test this https://t.me/mjsxj02hl_firmware/5706
Following your instruction, IR light and filter stays on, when majestic was killed. When restarting majestic, both is reseted.
Following your instruction, IR light and filter stays on, when majestic was killed. When restarting majestic, both is reseted.
Picture is grayscale after restarting majestic? What is the value night_enabled in output http://<cam_ip>/metrics
No, pictures is colored after restarting majestic. Value of night_enabled is 0.
Very strange. My camera has a completely different behavior. Let's compare actions:
-
/etc/init.d/S96autonight stop - Manually turn on night mode (Web interface -> Preview -> Push "Toggle night mode" button)
-
killall -1 majestic(argument -1 is important) - View picture color and
night_enabledvalue (http://<cam_ip>/metrics)
3.
killall -1 majestic(argument -1 is important)
you're right. i was using killall majestic and restarted it manually. discribed your way, I'am getting a colored picture but night_enabled value is 1.
This is probably a bug in majestic https://github.com/OpenIPC/majestic/issues/84