Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/appenz/camera-app
/ functions
Functions
29 in github.com/appenz/camera-app
⨍
Functions
29
◇
Types & classes
2
↓ 5 callers
Function
send_notification
Send a notification via Pushover. Args: message (str): The message to send api_token (str): Pushover application token
src/pushover.py:4
↓ 3 callers
Function
update_ws_heartbeat
(now: datetime)
src/watchdog.py:19
↓ 2 callers
Function
is_person_event
(first_line: str)
src/main.py:72
↓ 2 callers
Function
make_sync_callback
(loop, async_callback, logger=None)
src/watchdog.py:31
↓ 2 callers
Method
run
(self)
src/watchdog.py:50
↓ 2 callers
Function
save_camera_image
Save camera image with timestamp-based filename.
src/images.py:48
↓ 1 callers
Function
analyze_image
Analyze image using OpenAI SDK.
src/images.py:73
↓ 1 callers
Function
check_credentials
Check if all required credentials are set.
src/main.py:150
↓ 1 callers
Function
compare_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 callers
Function
download_event_video
Download and save event video if not already exists.
src/events.py:14
↓ 1 callers
Function
get_event_filename
Generate path for an event video.
src/events.py:4
↓ 1 callers
Function
get_high_quality_snapshot
Get high quality snapshot from camera.
src/images.py:25
↓ 1 callers
Function
get_image_filename
Generate filename for camera images.
src/images.py:20
↓ 1 callers
Function
is_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 callers
Function
load_instructions
Load instructions from file, ignoring comment lines.
src/main.py:76
↓ 1 callers
Function
main
()
src/main.py:381
↓ 1 callers
Function
parse_args
Parse command line arguments.
src/main.py:364
↓ 1 callers
Function
process_camera_image
Save and analyze a camera image. Args: protect: ProtectApiClient instance camera: Camera instance prompt: Formatted p
src/images.py:104
↓ 1 callers
Function
reset_connection_start_time
Reset connection start time when reconnecting.
src/watchdog.py:26
↓ 1 callers
Function
run_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 callers
Function
run_twice_daily_status
()
src/watchdog.py:114
↓ 1 callers
Function
setup_logging
(quiet=False)
src/main.py:106
Method
__init__
(self, protect, unsubscribe_fn, loop, logger, tz)
src/watchdog.py:41
Function
callback
(msg: WSSubscriptionMessage)
src/main.py:246
Function
check_openai_key
Check if OpenAI API key is set.
src/main.py:144
Function
display_event_history
Display event history and download videos.
src/events.py:39
Method
formatTime
(self, record, datefmt=None)
src/main.py:116
Function
run_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
Function
sync_callback
(msg)
src/watchdog.py:32