Skip to content

brightness control on Dlink930

edited August 2013 in Cameras
It seems that the Dling 930 does not adjust well to low lights. When manually adjusting the brightness from 0 to eg 3 the picture becomes much more clearer.

does SS have an option to change that on the camera? or is there a script (eg Curl) to do this?

thanks

Karl Wachs

Comments

  • attached applescript can set brightness etc on d930

    happy using ..


    now here my question to make it really fully automatic: can security spy measure average brightness? That would be really nice.

    Karl


    (*
    copy this into applescript and compile as .app put into ..../securityspy/script directory

    then call in action to set brightness, contrast, saturation, flicker, mirror … level parameters in DLINK 930 camera
    eg set brightness at daylight to -3 at dawn to 0 and at night to +5

    Karl Wachs
    v1
    10/1/13

    before use set YOUR userid and password ( in theUserID ..)

    example:
    set levels to 0 0 0 flicker =1 mirror =0 for 3 cameras ip numbers …. 75 , 77 and … 78
    *)
    setCameraLevels(0, 0, 0, 1, 0, "192.168.1.75")
    setCameraLevels(0, 0, 0, 1, 0, "192.168.1.77")
    setCameraLevels(0, 0, 0, 1, 0, "192.168.1.78")

    return


    on setCameraLevels(brightnessLevel525, contrastControl525, SaturationControl525, AntiFlickerEnable01, mirrorOnOff01, theIPNumber)

    set theUserID to "xxx"
    set thePassword to "yyy"
    -- map input(-5 ..+5) -5--> 1 , .. , +5 --> 128 levels on webpage
    set mapping to {1, 14, 26, 39, 51, 64, 77, 90, 103, 115, 128}

    if brightnessLevel525 > 5 then brightnessLevel525 = 5
    if brightnessLevel525 < -5 then brightnessLevel525 = -5
    set setbrightnessLevel to item (brightnessLevel525 + 6) of mapping


    if contrastControl525 > 5 then contrastControl525 = 5
    if contrastControl525 < -5 then contrastControl525 = -5
    set setcontrastControl to item (contrastControl525 + 6) of mapping

    if SaturationControl525 > 5 then SaturationControl525 = 5
    if SaturationControl525 < -5 then SaturationControl525 = -5
    set setSaturationControl to item (SaturationControl525 + 6) of mapping

    if AntiFlickerEnable01 > 0 then set setAntiFlickerEnable to "1"
    if AntiFlickerEnable01 < 1 then set setAntiFlickerEnable to "0"

    if mirrorOnOff01 > 0 then set setMirror to "1"
    if mirrorOnOff01 < 1 then set setMirror to "0"


    -- compile cmd string
    set cmd to " curl -u " & theUserID & ":" & thePassword -- userid and password
    -- set cmd to cmd & " -m 20 " -- max wait 20 secs as this is send and forget (the "&" does that), dont need this

    -- data
    set cmd to cmd & " -d \"" & "ReplySuccessPage=image.htm&ReplyErrorPage=errrimg.htm"
    set cmd to cmd & "&BrightnessControl=" & setbrightnessLevel
    set cmd to cmd & "&ContrastControl=" & setcontrastControl
    set cmd to cmd & "&SaturationControl=" & setSaturationControl
    set cmd to cmd & "&AntiFlickerEnable=" & setAntiFlickerEnable
    set cmd to cmd & "&Mirror=" & setMirror
    set cmd to cmd & "&ConfigSystemStream=Save\"" -- save it
    -- end data

    set cmd to cmd & " http://" & theIPNumber & "/setSystemStream" -- this is the page we are addressing

    set cmd to cmd & " >/dev/null 2>&1 &" -- dump response, dont wait = backgrund job,
    do shell script cmd
    return
    end setCameraLevels
  • Hi Karl, well done for working out that script!

    I'm afraid there's currently no way for SecuritySpy to measure, report or respond to average brightness. This is because cameras are generally designed to automatically increase or decrease their exposure (or brightness adjustment) to maintain a fixed level of brightness throughout the image at all times, so this feature wouldn't be useful for most cameras. It's unfortunate that your particular camera doesn't seem capable of such a basic and useful feature.
  • well its not THAT bad. it does adjust but just somewhat but clearly not enough.. its made for indoor use, if you use it inside but to watch eg your car outside, then it needs adjustment.
  • Good to know. Yes you're right that it's designed for indoor use only, and I'm sure it performs well in consistent lighting environments.
Sign In or Register to comment.