Typical Use Cases
Not sure how to integrate PushGo? Here are some popular ways our community uses the platform.
1. Server & NAS Monitoring
Section titled “1. Server & NAS Monitoring”If you have a home server or a NAS (Synology, QNAP, Unraid), you can get notified about critical system events.
- Disk Full: Run a simple cron job that checks disk space and sends a
criticalmessage if it exceeds 95%. - Backup Finished: Add a
curlcommand at the end of your backup script. - UPS Status: Get notified when your power goes out and the server switches to battery.
2. Home Automation (Home Assistant)
Section titled “2. Home Automation (Home Assistant)”PushGo integrates perfectly with smart home systems like Home Assistant.
- Door/Window Alerts: Receive a message when a door is left open for more than 5 minutes.
- Environment Monitoring: Use the Thing model to represent a room, syncing temperature and humidity data in real-time to the PushGo app’s dashboard.
- Security: Get rich notifications with snapshots from your security camera when motion is detected.
3. DevOps & Development
Section titled “3. DevOps & Development”Keep track of your automation pipelines without constantly checking GitHub or GitLab.
- GitHub Actions: Add a step to your workflow to notify you when a build fails or a deployment is successful.
- Long-running Jobs: Running a video transcode or training an AI model? Have the script send a message once it’s done.
4. Personal Notifications
Section titled “4. Personal Notifications”- Price Alerts: Write a script to track the price of a product and notify you when it drops.
- Webhooks: Use services like IFTTT or Zapier to forward events (like a new email from a VIP) to your PushGo channel.
Example: Simple Disk Space Monitor (Bash)
Section titled “Example: Simple Disk Space Monitor (Bash)”#!/bin/bashTHRESHOLD=90USAGE=$(df / | grep / | awk '{ print $5 }' | sed 's/%//g')
if [ "$USAGE" -gt "$THRESHOLD" ]; then curl -X POST https://api.pushgo.io/v1/channel/YOUR_ID/message \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "password": "YOUR_PASSWORD", "title": "Disk Warning", "body": "Root partition is at '"$USAGE"'%", "severity": "high" }'fi