From b29be4f1750fd20bd2eada88e751dfae85817882 Mon Sep 17 00:00:00 2001 From: Scott Date: Sat, 4 Dec 2021 21:23:11 -0800 Subject: Various changes. --- smart_home/cameras.py | 4 ++-- smart_home/lights.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'smart_home') diff --git a/smart_home/cameras.py b/smart_home/cameras.py index 40850a9..8137012 100644 --- a/smart_home/cameras.py +++ b/smart_home/cameras.py @@ -15,7 +15,7 @@ class BaseCamera(dev.Device): 'outside_backyard_camera': 'backyard', 'outside_driveway_camera': 'driveway', 'outside_doorbell_camera': 'doorbell', - 'outside_front_door_camera': 'frontdoor', + 'outside_front_door_camera': 'front_door', } def __init__(self, name: str, mac: str, keywords: str = "") -> None: @@ -24,4 +24,4 @@ class BaseCamera(dev.Device): def get_stream_url(self) -> str: assert self.camera_name is not None - return f'http://10.0.0.56:81/mjpg/{self.camera_name}/video.mjpg?h=1024&q=99' + return f'http://10.0.0.226:8080/Umtxxf1uKMBniFblqeQ9KRbb6DDzN4/mp4/GKlT2FfiSQ/{self.camera_name}/s.mp4' diff --git a/smart_home/lights.py b/smart_home/lights.py index dd211eb..1c4081c 100644 --- a/smart_home/lights.py +++ b/smart_home/lights.py @@ -334,6 +334,7 @@ class TPLinkLight(BaseLight): def get_info(self) -> Optional[Dict]: cmd = self.get_cmdline() + "-c info" out = subprocess.getoutput(cmd) + logger.debug(f'RAW OUT> {out}') out = re.sub("Sent:.*\n", "", out) out = re.sub("Received: *", "", out) try: -- cgit v1.3