File tree Expand file tree Collapse file tree 4 files changed +39
-4
lines changed
Expand file tree Collapse file tree 4 files changed +39
-4
lines changed Original file line number Diff line number Diff line change 33old
44cleanup_old_repo.sh
55poetry.lock
6+ pytest.ini.bak
67# Byte-compiled / optimized / DLL files
78__pycache__ /
89* .py [cod ]
Original file line number Diff line number Diff line change @@ -185,11 +185,16 @@ docker-run: docker
185185# Examples and setup
186186setup-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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -3,5 +3,4 @@ testpaths = tests
33python_files = test_*.py
44python_classes = Test*
55python_functions = test_*
6- addopts = -v --cov =dialogchain --cov-report =term-missing
76asyncio_mode = auto
You can’t perform that action at this time.
0 commit comments