summaryrefslogtreecommitdiff
path: root/smart_home/cameras.py
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2022-03-25 09:50:31 -0700
committerScott Gasch <[email protected]>2022-03-25 09:50:31 -0700
commit52ffdbae73f20b49a1451df2652a8bbc0c4dcac1 (patch)
treeded370b8acfea47907da3da37cd10169c0c81f73 /smart_home/cameras.py
parent532df2c5b57c7517dfb3dddd8c1358fbadf8baf3 (diff)
Obfuscate more keys. Again, this is pretty non-critical because
the shinobi instance is only on my private network but do it for the sake of code hygiene.
Diffstat (limited to 'smart_home/cameras.py')
-rw-r--r--smart_home/cameras.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/smart_home/cameras.py b/smart_home/cameras.py
index e7705b2..8643611 100644
--- a/smart_home/cameras.py
+++ b/smart_home/cameras.py
@@ -6,6 +6,7 @@
import logging
+import scott_secrets
import smart_home.device as dev
logger = logging.getLogger(__name__)
@@ -32,8 +33,6 @@ class BaseCamera(dev.Device):
name = self.camera_name
assert name is not None
if name == 'driveway':
- return 'http://10.0.0.226:8080/Umtxxf1uKMBniFblqeQ9KRbb6DDzN4/mjpeg/GKlT2FfiSQ/driveway'
+ return f'http://10.0.0.226:8080/{scott_secrets.SHINOBI_KEY1}/mjpeg/{scott_secrets.SHINOBI_KEY2}/driveway'
else:
- return (
- f'http://10.0.0.226:8080/Umtxxf1uKMBniFblqeQ9KRbb6DDzN4/mp4/GKlT2FfiSQ/{name}/s.mp4'
- )
+ return f'http://10.0.0.226:8080/{scott_secrets.SHINOBI_KEY1}/mp4/{scott_secrets.SHINOBI_KEY2}/{name}/s.mp4'