Skip to content

Commit

Permalink
Command to change FPS #609 #749 #755
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlt8 committed Apr 7, 2023
1 parent f50af27 commit 5d7a76c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/wyzebridge/wyze_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"get_motion_tagging": ("K10290GetMotionTagging",),
"set_motion_tagging_on": ("K10292SetMotionTagging", True),
"set_motion_tagging_off": ("K10292SetMotionTagging", False),
"set_fps_5": ("K10052SetFPS", 5),
"set_fps_10": ("K10052SetFPS", 10),
"set_fps_15": ("K10052SetFPS", 15),
"set_fps_20": ("K10052SetFPS", 20),
}


Expand Down
9 changes: 9 additions & 0 deletions app/wyzecam/tutk/tutk_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,15 @@ def parse_response(self, resp_data):
return resp_data == b"\x01"


class K10052SetFPS(TutkWyzeProtocolMessage):
def __init__(self, fps: int = 0):
super().__init__(10052)
self.fps = fps

def encode(self) -> bytes:
return encode(self.code, 6, bytes([0, 0, 0, self.fps, 0, 0]))


class K10090GetCameraTime(TutkWyzeProtocolMessage):
"""
A message used to get the current time on the camera.
Expand Down

0 comments on commit 5d7a76c

Please sign in to comment.