MCPcopy Create free account

hub / github.com/appenz/camera-app / functions

Functions29 in github.com/appenz/camera-app

↓ 5 callersFunctionsend_notification
Send a notification via Pushover. Args: message (str): The message to send api_token (str): Pushover application token
src/pushover.py:4
↓ 3 callersFunctionupdate_ws_heartbeat
(now: datetime)
src/watchdog.py:19
↓ 2 callersFunctionis_person_event
(first_line: str)
src/main.py:72
↓ 2 callersFunctionmake_sync_callback
(loop, async_callback, logger=None)
src/watchdog.py:31
↓ 2 callersMethodrun
(self)
src/watchdog.py:50
↓ 2 callersFunctionsave_camera_image
Save camera image with timestamp-based filename.
src/images.py:48
↓ 1 callersFunctionanalyze_image
Analyze image using OpenAI SDK.
src/images.py:73
↓ 1 callersFunctioncheck_credentials
Check if all required credentials are set.
src/main.py:150
↓ 1 callersFunctioncompare_description
Compare two person descriptions using OpenAI SDK to decide if they are the same person. Returns True if they likely refer to the same person, Fals
src/images.py:140
↓ 1 callersFunctiondownload_event_video
Download and save event video if not already exists.
src/events.py:14
↓ 1 callersFunctionget_event_filename
Generate path for an event video.
src/events.py:4
↓ 1 callersFunctionget_high_quality_snapshot
Get high quality snapshot from camera.
src/images.py:25
↓ 1 callersFunctionget_image_filename
Generate filename for camera images.
src/images.py:20
↓ 1 callersFunctionis_night
Return True if the given time is within the night window. If now is None, uses current local time. Supports windows that span midnight.
src/main.py:56
↓ 1 callersFunctionload_instructions
Load instructions from file, ignoring comment lines.
src/main.py:76
↓ 1 callersFunctionmain
()
src/main.py:381
↓ 1 callersFunctionparse_args
Parse command line arguments.
src/main.py:364
↓ 1 callersFunctionprocess_camera_image
Save and analyze a camera image. Args: protect: ProtectApiClient instance camera: Camera instance prompt: Formatted p
src/images.py:104
↓ 1 callersFunctionreset_connection_start_time
Reset connection start time when reconnecting.
src/watchdog.py:26
↓ 1 callersFunctionrun_scheduled_exit
Exit the application daily at 8pm to allow container restart. This task waits for the 8pm status notification to complete, then exits. Us
src/main.py:212
↓ 1 callersFunctionrun_twice_daily_status
()
src/watchdog.py:114
↓ 1 callersFunctionsetup_logging
(quiet=False)
src/main.py:106
Method__init__
(self, protect, unsubscribe_fn, loop, logger, tz)
src/watchdog.py:41
Functioncallback
(msg: WSSubscriptionMessage)
src/main.py:246
Functioncheck_openai_key
Check if OpenAI API key is set.
src/main.py:144
Functiondisplay_event_history
Display event history and download videos.
src/events.py:39
MethodformatTime
(self, record, datefmt=None)
src/main.py:116
Functionrun_twice_daily_status
Send a low-priority "System online" notification at 08:00 and 20:00. Uses configured TZ if provided; falls back to local system time.
src/main.py:173
Functionsync_callback
(msg)
src/watchdog.py:32