Skip to content

Instantly share code, notes, and snippets.

@simplepush
simplepush / simplepush_frigate_0.11_notification.yaml
Created April 11, 2023 10:43
Frigate 0.11 Notifications with Simplepush
blueprint:
name: Simplepush Frigate Notifications (0.11.0.1)
domain: automation
source_url: https://gist.github.com/SgtBatten/10a2dc7f16af9f55f3ba83fe4523d8d7
input:
camera:
name: Frigate Camera
description: |
Select the camera entity that will trigger notifications.
If you do not see cameras listed in the drop down, check you have the frigate integration installed.
@simplepush
simplepush / disk-monitor.sh
Created November 3, 2021 10:40
Disk monitoring script that will alert you when one of your disks has little space left
#!/bin/bash
# Add this script as a cronjob
# Append the following line to your cronjob file (open cronjob file with `crontab -e`):
# @daily /path/to/disk-monitor.sh
SIMPLEPUSH_KEY=YourKey
THRESHOLD=90
df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read line;