-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
53 lines (44 loc) · 1.28 KB
/
Copy pathconfig.yaml
File metadata and controls
53 lines (44 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Mouse Trap Monitoring System Configuration
# Telegram Bot Settings
telegram:
# Get bot token from @BotFather on Telegram
bot_token: "YOUR_BOT_TOKEN_HERE"
# Get your chat ID from @userinfobot
chat_id: "YOUR_CHAT_ID_HERE"
# MQTT Broker Settings
mqtt:
broker: "localhost"
port: 1883
username: "" # Optional
password: "" # Optional
# Notification Preferences
notifications:
on_trigger: true # Send notification when trap is triggered
on_low_battery: true # Send notification for low battery
on_status: false # Send notification for status updates
min_interval_seconds: 10 # Minimum time between notifications per node
# Node Location Mapping (customize for your setup)
node_locations:
"1": "Kitchen"
"2": "Garage"
"3": "Basement"
"4": "Attic"
"5": "Shed"
# Database Settings
database:
path: "/var/lib/trap-monitor/trap_events.db"
backup_enabled: true
backup_interval_days: 7
# Web Dashboard Settings
dashboard:
host: "0.0.0.0"
port: 5000
secret_key: "change-this-secret-key-to-something-random"
# System Settings
system:
log_level: "INFO" # DEBUG, INFO, WARNING, ERROR
log_retention_days: 30
# Alert Thresholds
thresholds:
low_battery_voltage: 3.3 # Volts
node_offline_hours: 24 # Hours before considering node offline