-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.toml
More file actions
69 lines (58 loc) · 2.54 KB
/
config.example.toml
File metadata and controls
69 lines (58 loc) · 2.54 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# MeshCore PathBot Configuration
[connection]
type = "serial" # "serial", "tcp", or "ble"
serial_port = "/dev/ttyUSB0" # Serial device path (Linux) or "COM3" (Windows)
serial_baud = 115200
# tcp_host = "192.168.1.100"
# tcp_port = 5000
# ble_address = "AA:BB:CC:DD:EE:FF"
auto_reconnect = true
max_reconnect_attempts = 10
[bot]
node_name = "" # Friendly name for this MeshCore node
channel = 2 # Default channel (used when no [[bot.channels]] defined)
repeaters_file = "repeaters.db" # Path to repeater SQLite database
ignore_list = ["jeeves"] # Node names to ignore (case-insensitive partial match)
home_repeater_name = "" # Exact name of the home repeater
home_repeater_prefix = "" # Prefix to match home repeater name (lowercase)
lat = 0.0 # Bot latitude (0.0 = unset)
lon = 0.0 # Bot longitude (0.0 = unset)
weather_home_name = "Hampton Park" # Default suburb for weather/forecast commands
weather_home_lat = -38.0291 # Latitude of home suburb
weather_home_lon = 145.2591 # Longitude of home suburb
# Daily forecast — send 3-day forecast for the weather home location at a set hour
daily_forecast_enabled = false
daily_forecast_channels = [] # Channel IDs to broadcast on (empty = all active channels)
daily_forecast_hour = 6 # Hour to send forecast (Melbourne time, 0-23)
# Channel management — define multiple channels with per-channel command control.
# If no [[bot.channels]] entries exist, the bot falls back to bot.channel above.
# enabled_commands can include: "trace", "ping", "paths", "prefix", "weather", "forecast", "help"
# Daily forecast is a scheduled feature (not a per-user command)
# Note: "weather" and "forecast" default to off — add them explicitly to enable per channel
# rate_limit_enabled enables per-user command rate limiting on the channel
# rate_limit_seconds is the per-user cooldown window (default 120 seconds)
[[bot.channels]]
id = 1
name = "General"
enabled_commands = ["trace", "ping", "paths", "prefix"]
rate_limit_enabled = true
rate_limit_seconds = 120
[[bot.channels]]
id = 2
name = "Monitoring"
enabled_commands = ["trace", "ping"]
rate_limit_enabled = false
rate_limit_seconds = 120
[web]
enabled = true
host = "0.0.0.0"
port = 8075
[logging]
level = "INFO"
# file = "/var/log/meshcore-pathbot.log"
[guest_web]
enabled = false
host = "0.0.0.0"
port = 8076
# Optional: channels to show in guest ping dashboard (empty = all ping-enabled channels)
ping_channels = []