Skip to content

Commit 7d73087

Browse files
author
Tom Softreck
committed
update
1 parent 0bcc727 commit 7d73087

File tree

4 files changed

+39
-4
lines changed

4 files changed

+39
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
old
44
cleanup_old_repo.sh
55
poetry.lock
6+
pytest.ini.bak
67
# Byte-compiled / optimized / DLL files
78
__pycache__/
89
*.py[cod]

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,16 @@ docker-run: docker
185185
# Examples and setup
186186
setup-env:
187187
@if [ ! -f .env ]; then \
188-
cp .env.example .env; \
189-
echo "✅ Created .env file from template"; \
188+
if [ -f .env.example ]; then \
189+
cp .env.example .env; \
190+
echo "✅ Created .env file from template"; \
191+
else \
192+
touch .env; \
193+
echo "✅ Created empty .env file"; \
194+
fi; \
190195
echo "📝 Please edit .env with your configuration"; \
191196
else \
192-
echo "⚠️ .env file already exists"; \
197+
echo "ℹ️ .env file already exists"; \
193198
fi
194199

195200
# List available examples

camera_example.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Camera Processing Routes
2+
routes:
3+
- name: "front_door_camera"
4+
from: "rtsp://{{CAMERA_USER}}:{{CAMERA_PASS}}@{{CAMERA_IP}}/stream1"
5+
processors:
6+
- type: "external"
7+
command: "python -m ultralytics_processor"
8+
input_format: "frame_stream"
9+
output_format: "json"
10+
config:
11+
confidence_threshold: 0.6
12+
target_objects: ["person", "car"]
13+
14+
- type: "filter"
15+
condition: "{{confidence}} > 0.7"
16+
17+
- type: "transform"
18+
template: "Person detected at {{position}} ({{confidence}}%)"
19+
20+
to: "email://{{SMTP_SERVER}}:{{SMTP_PORT}}?user={{SMTP_USER}}&password={{SMTP_PASS}}&to={{ALERT_EMAIL}}"
21+
22+
env_vars:
23+
- CAMERA_USER
24+
- CAMERA_PASS
25+
- CAMERA_IP
26+
- SMTP_SERVER
27+
- SMTP_PORT
28+
- SMTP_USER
29+
- SMTP_PASS
30+
- ALERT_EMAIL

pytest.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ testpaths = tests
33
python_files = test_*.py
44
python_classes = Test*
55
python_functions = test_*
6-
addopts = -v --cov=dialogchain --cov-report=term-missing
76
asyncio_mode = auto

0 commit comments

Comments
 (0)