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

Trying to use Arm/Disarm but script just stop #35

Closed
johan-dahlgren opened this issue Dec 30, 2017 · 4 comments
Closed

Trying to use Arm/Disarm but script just stop #35

johan-dahlgren opened this issue Dec 30, 2017 · 4 comments

Comments

@johan-dahlgren
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Python are you using (python -V)?

2.7.13

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

('Linux', 'openhab', '4.9.59-v7+', '#1047 SMP Sun Oct 29 12:19:23 GMT 2017', 'armv7l', '')

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

certifi==2017.11.5
chardet==3.0.4
cryptography==1.7.1
dnspython==1.15.0
enum34==1.1.6
idna==2.6
ipaddress==1.0.17
keyring==10.1
keyrings.alt==1.3
monotonic==1.4
pyasn1==0.1.9
pycrypto==2.6.1
pygobject==3.22.0
pyxdg==0.25
requests==2.18.4
RPi.GPIO==0.6.3
SecretStorage==2.3.1
six==1.10.0
sseclient==0.0.18
urllib3==1.22

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

Arlo Basestation VMB3010r2
3 Cameras H7

What did you do?

Disarm and/or Arm basestation

If possible, provide the steps you took to reproduce the issue.
A complete runnable program is good. (don't include your user/password or any sensitive info)
`
#!/usr/bin/env python
from Arlo import Arlo

USERNAME = 'xxx'
PASSWORD = 'xxx'

try:

arlo = Arlo(USERNAME, PASSWORD)
basestations = arlo.GetDevices('basestation')

# Disarm Arlo.
arlo.Disarm(basestations[0])
arlo.Logout()

except Exception as e:
print(e)

`

What did you expect to see?

That the script completes. Now it just stop.
Sometimes it works though, but with no changes from me.

What did you see instead?

Nothing, the script just stop

Does this issue reproduce with the latest release?

Yes

@johan-dahlgren johan-dahlgren changed the title Trying tu use Arm/Disarm but script just stop Trying to use Arm/Disarm but script just stop Dec 30, 2017
@rittet
Copy link

rittet commented Jan 1, 2018

Use arlo.notify instead. Look up the definition for arm and disarm and change to return the notify-def.

That worked for my Arlo Q.

@johan-dahlgren
Copy link
Author

johan-dahlgren commented Jan 1, 2018

That seems to work fine! Thank You!

@jeffreydwalter
Copy link
Owner

jeffreydwalter commented Jan 3, 2018

@Ritte88, @johan-dahlgren while changing the library to use Notify() instead of NotifyAndGetResponse() will allow you to set the mode, you will be breaking other methods in the library and not getting any of the responses you get back from Arlo's streaming API.

Please try with my latest commit (from 1/2/2018). There was a race condition happening due to some refactoring that I did a couple weeks ago.

@johan-dahlgren
Copy link
Author

Just want to confirm that it is working with the latest commit!
Thanks!

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

No branches or pull requests

3 participants