Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust camera brightness #37

Closed
petewills opened this issue Jan 2, 2018 · 1 comment
Closed

Adjust camera brightness #37

petewills opened this issue Jan 2, 2018 · 1 comment

Comments

@petewills
Copy link

Please answer these questions before submitting your issue. Thanks!

Python 3.5.4

What operating system and processor architecture are you using (python -c 'import platform; print(platform.uname());')?

xnu-3789.72.11~1/RELEASE_X86_64', machine='x86_64', processor='i386'

Which Python packages do you have installed (run the pip freeze or pip3 freeze command and paste output)?N/A

Which Arlo hardware do you have (camera types - [Arlo, Pro, Q, etc.], basestation model, etc.)?

Pro

What did you do?

The package is great - no problems whatsoever on my mac.

I would like to adjust the camera brightness for recordings - make the brightness higher at night. On the app, you select 'Live' and it shows a toolbar below the video screen that has a brightness adjuster. I do not see how to do this in the library.

Is this possible?

@jeffreydwalter
Copy link
Owner

It is possible. I added a method for you to do so, named AdjustBrightness() here: df42bb4

An example of using it would be something like:

try:
    arlo = Arlo(USERNAME, PASSWORD)
    print('Logged In')
    
    basestation = arlo.GetDevices('basestation')[0]
    print('got basestations')
    print(basestation)

    camera = arlo.GetDevices('camera')[0]
    print('got cameras')
    print(camera)

    print("Adjusting Brightness")
    # Turn brightness all the way down (2 is all the way up)
    print(arlo.AdjustBrightness(basestation, camera, -2))
    print("Brightness Adjusted")
except Exception as e:
    print(e)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants