Update automations: 3x daily FreshRSS, remove Mia, add Gotify, remove server monitor

- FreshRSS now runs 3x daily: 6:45 AM, 12 PM, 5 PM
- Removed Mia from birthday tracker 💔
- Removed home stack monitor cron jobs (already have monitoring)
- Added Gotify notifications to FreshRSS and birthday tracker
- Both Telegram and Gotify now receive alerts
This commit is contained in:
Krilly
2026-02-21 01:52:18 +00:00
parent 2d85d3873d
commit 180532d1e3
3 changed files with 57 additions and 9 deletions

View File

@@ -12,6 +12,8 @@ source "$SCRIPT_DIR/../../.env" 2>/dev/null || true
FRESHRSS_URL="${FRESHRSS_URL:-http://freshrss.kangaroo-eel.ts.net}"
FRESHRSS_USER="${FRESHRSS_USER:-anthony}"
TELEGRAM_CHAT="${TELEGRAM_CHAT:-1793951355}"
GOTIFY_URL="${GOTIFY_URL:-http://runtipi.kangaroo-eel.ts.net:8129}"
GOTIFY_TOKEN="${GOTIFY_TOKEN:-AGKnHafW3FGzBlt}"
# Your interest keywords for relevance ranking
INTERESTS=(
@@ -187,6 +189,27 @@ send_telegram() {
log "Sent to Telegram successfully"
}
send_gotify() {
local title="$1"
local message="$2"
local priority="${3:-5}"
log "Sending to Gotify..."
curl -s -X POST "${GOTIFY_URL}/message?token=${GOTIFY_TOKEN}" \
-H "Content-Type: application/json" \
-d "{
\"title\": \"$title\",
\"message\": \"$message\",
\"priority\": $priority
}" > /dev/null || {
log "ERROR: Failed to send Gotify message"
return 1
}
log "Sent to Gotify successfully"
}
main() {
log "Starting FreshRSS digest..."
@@ -198,9 +221,14 @@ main() {
local digest
digest=$(build_digest "$raw_articles")
# Send
# Send to both channels
send_telegram "$digest"
# Plain text version for Gotify (strip markdown)
local plain_digest
plain_digest=$(echo -e "$digest" | sed 's/\*//g' | sed 's/\[\([^]]*\)\]([^)]*)/\1/g')
send_gotify "FreshRSS Digest" "$plain_digest" 5
log "Digest complete!"
}