summaryrefslogtreecommitdiff
path: root/smart_home
diff options
context:
space:
mode:
authorScott <[email protected]>2021-12-04 21:23:11 -0800
committerScott <[email protected]>2021-12-04 21:23:11 -0800
commitb29be4f1750fd20bd2eada88e751dfae85817882 (patch)
treed776c05519505fa3234ed44ae952163f0853e88c /smart_home
parented8fa2b10b0177b15b7423263bdd390efde2f0c8 (diff)
Various changes.
Diffstat (limited to 'smart_home')
-rw-r--r--smart_home/cameras.py4
-rw-r--r--smart_home/lights.py1
2 files changed, 3 insertions, 2 deletions
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: