Skip to content

Commit

Permalink
missing load
Browse files Browse the repository at this point in the history
  • Loading branch information
MateoLostanlen committed Aug 13, 2024
1 parent bb3fb7e commit d7a91ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/control_reolink_cam.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import os
from pyroengine.sensors import ReolinkCamera
from dotenv import load_dotenv

Check notice on line 4 in src/control_reolink_cam.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/control_reolink_cam.py#L4

Trailing whitespace


def main():

Check notice on line 7 in src/control_reolink_cam.py

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

src/control_reolink_cam.py#L7

main is too complex (17) (MC0001)
Expand Down Expand Up @@ -54,6 +55,8 @@ def main():
python src/control_reolink_cam.py start_zoom_focus --ip 169.254.40.1 --type ptz --zoom_position 5
"""
# Load environment variables
# Load environment variables from .env file
load_dotenv()
cam_user = os.getenv("CAM_USER")
cam_pwd = os.getenv("CAM_PWD")

Expand Down

0 comments on commit d7a91ba

Please sign in to comment.