fang-hacks icon indicating copy to clipboard operation
fang-hacks copied to clipboard

Feature: configure threshold for IR switching

Open korkin25 opened this issue 8 years ago • 6 comments

Hi,

First of all - thank you for your hacks!!! It's great!!!:)

I have zoneminder working with camera.

the problem is ir-control script switch to night mode too late... I have second camera (with stock firmware) very near from first camera. same light and etc. I see stock camera is already switched to night mode, but hacked camera is not.... then I see a lot of noise then zoneminder alarms.

I looked into your script but dont understand values for gpio_ms1/gpio_aud...

At the moment I corrected script to "always night mode", but I dont like it.

thank you!

korkin25 avatar May 24 '17 14:05 korkin25

There's probably a setting to configure the light-sensor threshold but I can't find it anywhere :(. I don't fully understand the gpio tools either.

samtap avatar May 28 '17 10:05 samtap

I would like to have the IR LED's permanently disabled. But I still want the night vision to work. In one of the posts, i think it was about the fang overheating, there was a statement that the camera had to sense the LED's turn on before the IR filter can be moved so the filter is not used at night/low light conditions. If this is the case, then I will have to manually black out the LED's so they are still sensed and the IR filter can be moved to the off position.

bronzerain avatar Jun 06 '17 13:06 bronzerain

I took the camera apart and just covered the two IR LED's with tape. Now at night I can use the camera through a window without the glare from the IR LED's. I could not figure out the gpio_ms1/gpio_aud script so I could have a more elegant software code solution. But for right now the tape solution works for me.

bronzerain avatar Jul 10 '17 13:07 bronzerain

Is there no way to disable the IR LEDs via the ir-control script? 🤔

timsayshey avatar Sep 15 '17 04:09 timsayshey

gpio_aud write 1 0 0 # disable ir led and latch the filter in the correct position

You'll have to modify the script to your liking, but do keep track of power usage to make sure it won't get too hot over time. Or wait until I've finished the new script that supports config parameters to change behaviour.

samtap avatar Sep 15 '17 10:09 samtap

I have XiaoFangs in two locations which are plenty bright, but the camera/sensor itself is in slight shadow. As such they are mostly always in 'night mode', and their effectiveness is reduced as a result. @samtap is your above post still valid? ie are you still working on a script that supports config parameters to change behaviour? If not can you guide me to where I might manually edit the threshold level of the IR sensor?

danpowpow avatar Jan 22 '19 12:01 danpowpow