Fix typo.
[python_utils.git] / smart_home / cameras.py
index f77ddc6a7ff22bac1fe1a63a6d09fb40e2dbc129..8643611811f69f61a6c46f37f9c6680c0479d441 100644 (file)
@@ -1,9 +1,12 @@
 #!/usr/bin/env python3
 
+# © Copyright 2021-2022, Scott Gasch
+
 """Utilities for dealing with the webcams."""
 
 import logging
 
+import scott_secrets
 import smart_home.device as dev
 
 logger = logging.getLogger(__name__)
@@ -30,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'