This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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; |