Initial signal-cal-bot skeleton: iCalendar feed to Signal group
- feed fetch with ETag/Last-Modified caching - iCalendar parsing/expansion with TEC series detection - posting-window scheduler with 3-day reminders and day-of fallback - image attachments from ATTACH, downscaled via Pillow - SQLite outbox with idempotent deliveries - watchdog alerts to Note to Self - Docker Compose with signal-cli-rest-api
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
# Copy to config.toml and fill in the signal section. Never commit config.toml.
|
||||
|
||||
[signal]
|
||||
# signal-cli-rest-api (from docker-compose.yml)
|
||||
api_url = "http://signal-api:8080"
|
||||
# Your own number (the linked account's number), international format.
|
||||
number = "+447700900000"
|
||||
# internal_id from GET /v1/groups/<number>, including the "group." prefix.
|
||||
group_id = "group.REPLACE_ME"
|
||||
text_mode = "normal" # or "styled"
|
||||
|
||||
[calendar]
|
||||
url = "https://commonscalendar.uk/?post_type=tribe_events&ical=1&eventDisplay=list"
|
||||
timezone = "Europe/London"
|
||||
refresh_minutes = 15
|
||||
window_days = 60
|
||||
|
||||
[posting]
|
||||
# Local times. Posts are deferred to the next window; the urgent guard breaks
|
||||
# the window when an event is about to start.
|
||||
windows = ["08:00-10:00", "18:00-21:00"]
|
||||
urgent_guard_minutes = 60
|
||||
|
||||
[announce]
|
||||
enabled = true
|
||||
max_days_ahead = 30
|
||||
# false = first run seeds silently; set true to announce everything on startup
|
||||
backfill = false
|
||||
|
||||
[reminders]
|
||||
enabled = true
|
||||
lead_times = ["3d"]
|
||||
# If an event is discovered less than the lead time ahead, remind on the day.
|
||||
fallback_to_day_of = true
|
||||
day_of_time = "09:00"
|
||||
|
||||
[images]
|
||||
enabled = true
|
||||
max_pixels = 1600
|
||||
max_bytes = 400000
|
||||
max_images_per_post = 3
|
||||
scrape_event_page = true
|
||||
|
||||
[format]
|
||||
show_title = true
|
||||
show_hashtags = true
|
||||
show_time = true
|
||||
show_location = true
|
||||
show_link = true
|
||||
shorten_links = false
|
||||
|
||||
[watchdog]
|
||||
enabled = true
|
||||
# Defaults to [signal].number ("Note to Self") when unset.
|
||||
# notify_number = "+447700900001"
|
||||
feed_failures = 3
|
||||
send_failures = 3
|
||||
alert_cooldown_hours = 6
|
||||
daily_heartbeat = false
|
||||
|
||||
[storage]
|
||||
db = "data/calbot.sqlite3"
|
||||
cache = "cache"
|
||||
Reference in New Issue
Block a user