-
Notifications
You must be signed in to change notification settings - Fork 216
chime: Support playing motion test sound #46
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,6 +40,11 @@ | |
| URL_DOORBELL_HISTORY = DOORBELLS_ENDPOINT + '/history' | ||
| URL_RECORDING = '/clients_api/dings/{0}/recording' | ||
|
|
||
| # chime test sound kinds | ||
| KIND_DING = 'ding' | ||
| KIND_MOTION = 'motion' | ||
| CHIME_TEST_SOUND_KINDS = (KIND_DING, KIND_MOTION) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's make a list instead a map
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm sorry, but can you please explain what the key and value of the map would be?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CHIME_TEST_SOUND_KINDS = [KIND_DING, KIND_MOTION]
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does it have to be a list? What i've used is a tuple which is basically an immutable list (not a map). Which is exactly what we need here. |
||
|
|
||
| # default values | ||
| CHIME_VOL_MIN = 0 | ||
| CHIME_VOL_MAX = 10 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be expanded to the "ringtone" the user selected to play?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It probably should be. But i'll leave that to a follow-up. Don't have my phone set-up to do the proxy again right now. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes make sense.. You got a good point!!