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

reolink: Added device detection + trackmix stream #1154

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

bendews
Copy link
Contributor

@bendews bendews commented Oct 28, 2023

This is a follow up to #1020.

I've added device detection so the autotrack stream is only added if it is a TrackMix device and kept the cleanup of loops and arrays etc. There's a lot more we could implement using the device information, could automatically configure a doorbell, set known-good configuration for each model etc. but this is a good place to start.

Unfortunately the way we are interacting with the API seems to not be supported by all devices - my doorbell doesn't seem to like the encoding & info GET requests. Based on the semi-official/supported python API we should be generating a token after login to be used in a POST request. I've tested this library and seems to work well across all my cameras & doorbell, so maybe a follow-up PR to update the API functions to match it? See here for the function in question.

@koush koush merged commit 933c731 into koush:main Oct 31, 2023
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

Successfully merging this pull request may close these issues.

2 participants