Daily website and database reports on your phone
Updated December 2, 2026
You don't need to open four dashboards every morning — or leave your laptop running — just to see yesterday's visitors, new signups, and key database counts. Run a scheduled cloud job once a day and push a two-line summary into a dedicated #stats channel on your phone.
Install NextMsg and create a dedicated send key in Settings → Send keys → Add send key → Copy a key (name it e.g. Daily Stats). Two reports a day is 60 messages a month — well inside the free tier of 100 messages/month.
1. Cloudflare Worker cron (D1 + Web Analytics)
Cloudflare Workers run on a free cron schedule even while your laptop is closed. Because Cloudflare crons always run in UTC, list both UTC hours around daylight saving time and skip whichever slot doesn't match your local hour:
# wrangler.toml
[triggers]
crons = ["0 7,8 * * *"] # 09:00 Europe/Berlin year-round across CET/CESTSet NEXTMSG_KEY and a read-only CF_ANALYTICS_TOKEN (Account Analytics: Read) with npx wrangler secret put, then send a compact Markdown-lite digest in your scheduled handler:
async function sendStats(env: Env, message: string) {
await fetch("https://api.nextmsg.app/v1/send", {
method: "POST",
headers: {
Authorization: `Bearer ${env.NEXTMSG_KEY}`,
"Content-Type": "application/json"
},
body: JSON.stringify({ channel: "stats", message })
});
}
export default {
async scheduled(controller: ScheduledController, env: Env) {
const localHour = Number(
new Intl.DateTimeFormat("en-GB", {
timeZone: "Europe/Berlin",
hour: "2-digit",
hour12: false
}).format(new Date(controller.scheduledTime))
);
if (localHour !== 9) return;
const nowSec = Math.floor(Date.now() / 1000);
const row = await env.DB.prepare(
`SELECT COUNT(*) AS total,
COALESCE(SUM(CASE WHEN created_at >= ?1 THEN 1 ELSE 0 END), 0) AS new24h
FROM users`
).bind(nowSec - 86400).first<{ total: number; new24h: number }>();
const date = new Date().toISOString().slice(0, 10);
await sendStats(
env,
`**Daily Report** (${date})\nUsers: **${row?.total ?? 0}** (+${row?.new24h ?? 0} 24h)`
);
}
};2. PostgreSQL daily digest from cron
On any Linux server or VPS, run a single read-only query from crontab once a morning and push the aggregate counts — no dashboard, no SMTP server, no Telegram bot:
#!/usr/bin/env bash
set -euo pipefail
SUMMARY=$(psql "$DATABASE_URL" -At -F' · ' -c "
SELECT
'Users: ' || count(*) || ' (+' || count(*) FILTER (WHERE created_at >= now() - interval '24 hours') || ' 24h)',
'DB size: ' || pg_size_pretty(pg_database_size(current_database()))
FROM users;
")
curl -fsS -X POST "https://api.nextmsg.app/v1/send?channel=stats" \
-H "Authorization: Bearer $NEXTMSG_KEY" \
--data-raw "**Daily DB Report** ($(date -u +%F))
$SUMMARY" >/dev/nullSchedule it in crontab -e:
0 8 * * * /usr/local/bin/daily-db-report.shTips for readable daily digests
- Counts only, never PII: notifications show on your lock screen and are not end-to-end encrypted. Push anonymous counts, totals, top countries, and top referrers — never customer emails, names, or secrets.
- Keep it under 640 characters: a 4–6 line summary with
**bold**numbers reads in two seconds on a lock screen. - One dedicated channel: put all morning summaries in
#statsand keep urgent failures in#alertsso they never bury each other.
More guides
- Stripe revenue and cloud billing daily alerts
- Get notified when a cron job or backup finishes or fails
- SSL certificate expiry and API uptime check script
- OpenClaw one-way phone alerts for 24/7 scheduled briefings
- Hermes Agent 24/7 gateway notifications to your phone
- Proxmox VE and Synology NAS alerts on your phone
- Grafana alerting webhook to your phone
- Server alerts to your phone without Telegram or Slack