Some intial background. I have a Recteq RT-B380X Bullseye Deluxe that I wish to track its usage from home assistent and have local control over it. It is important to note that this will require you to unpair your grill from the Recteq app, which I was ok with since I could just control it via HA if desired. There are some projects which have worked to add this to home assistent but have since stopped working due to issues getting the localkey and protocal changes.
This file contains hidden or 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
#!/usr/bin/env python3 | |
### NZBGET SCAN SCRIPT | |
# Extract filenames from subjects containing [PRiVATE]-[WtFnZb] | |
# | |
# This extensions extracts obfuscated filenames from .nzb files | |
# created by WtFnZb. | |
# | |
# Supported subject formats: | |
# |
This file contains hidden or 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
from plexapi.myplex import MyPlexAccount | |
import os | |
plex_auth_info = { | |
"username" : os.environ['PLEX_USERNAME'], | |
"password" : os.environ['PLEX_PASSWORD'], | |
"server" : os.environ['PLEX_SERVER_NAME'] | |
} | |
account = MyPlexAccount(plex_auth_info['username'], plex_auth_info['password']) |
This file contains hidden or 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: Low battery level detection & notification for all battery sensors | |
description: Regularly test all sensors with 'battery' device-class for crossing | |
a certain battery level threshold and if so execute an action. | |
domain: automation | |
input: | |
threshold: | |
name: Battery warning level threshold | |
description: Battery sensors below threshold are assumed to be low-battery (as | |
well as binary battery sensors with value 'on'). |
This file contains hidden or 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
#!/usr/bin/env python3 | |
# | |
# this script will convert the hdhomerun listings (channels) to | |
# m3u format for use with external media players. before running | |
# this script, be sure to modify the <<config>> variable settings | |
# below. | |
# | |
# Suggested Usage: This script should be run on a cron to keep | |
# the channel lineup to date. Below is an example of how to execute this script: | |
# python /path/to/script/hdhomerun-prime-listings-to-m3u.py > /path/to/playlist.m3u |
Why, that's simple! Copy this script to your USG, run chmod +x on it and then, as a user with sudo permission, execute it.
Shamelessly borrowed from Brittanic on the Ubiquiti Unifi forums
Simply run the following command (note, if you are at all security concious-don't run it and instead review the script, then copy it to your USG to execute).
curl https://gist.githubusercontent.com/troyfontaine/7e6f93e32621177fc9a94e823adc52b5/raw/fix_ddns.sh | sudo bash
This file contains hidden or 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
alias dcp='docker-compose -f /opt/docker-compose.yml ' | |
alias dcpull='docker-compose -f /opt/docker-compose.yml pull --parallel' | |
alias dcplogs='docker-compose -f /opt/docker-compose.yml logs -tf --tail="50" ' | |
alias df='df -h -x aufs -x tmpfs -x udev' | |
alias editle='sudo vi /opt/appdata/letsencrypt/nginx/site-confs/default' |
This file contains hidden or 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
"C:\Program Files\Lets Encrypt\letsencrypt.exe" --renew --baseuri "https://acme-v01.api.letsencrypt.org/" | |
powershell -File "C:\Program Files\Lets Encrypt\RDS_INSTALL_CERT.ps1" -CertificateImport "C:\ProgramData\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\remote.example.com-all.pfx" -RDCB remote.example.com |
This file contains hidden or 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 | |
# Edit me | |
rclone_bin="/rclone/rclone" | |
rclone_options="--config=/rclone/rclone.conf --buffer-size 500M --checkers 16" | |
rclone_cloud_endpoint="gd:" | |
local_dir="/documents" | |
limit_gb=750 | |
################################################################################ |
This file contains hidden or 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
# UPLOAD SCRIPT | |
echo "--> Pause All Torrents/Stop Deluge" | |
# deluge-console "pause *;quit" | |
systemctl stop deluged | |
echo "--> Stop PlexServer" | |
systemctl stop plexmediaserver | |
echo "--> Unmount EncFS and ACD" | |
fusermount -z -u /share/acd-dec/ | |
fusermount -z -u /share/acd-raw/ | |
echo "--> Clear ACD Cache and Sync" |
NewerOlder