Skip to content

Instantly share code, notes, and snippets.

View JoooostB's full-sized avatar
☁️
Cloudy with a chance of downtime.

Joost Buskermolen JoooostB

☁️
Cloudy with a chance of downtime.
View GitHub Profile
@JoooostB
JoooostB / transmission_auto_remove.sh
Created January 25, 2019 20:53
Script to automatically remove torrents and delete local data from your Transmission client after seeding for x amount of days (15 by default).
#!/bin/bash
# Enter your username and password for your Transmission instance
USER=username
PASSWD=passw0rd123
# Obtain index ids of completed torrents.
torrent_ids=$(transmission-remote -n $USER:$PASSWD -l\
| awk '$5=="Done"{print $1}')
for index in $torrent_ids; do
@JoooostB
JoooostB / automations.yaml
Created November 14, 2018 07:08
esp8266-mqtt-doorbell - automations:
- alias: Deurbel Notificatie
trigger:
platform: mqtt
topic: stat/frontdoor/doorbell
payload: 'ringing'
action:
- service: notify.pushover
data:
message: "There's someone in front of your door"
title: "Ding Dong!"
@JoooostB
JoooostB / configuration.yaml
Created November 14, 2018 07:07
esp8266-mqtt-doorbell - sensor:
sensor:
- platform: mqtt
name: "Doorbell"
state_topic: "stat/frontdoor/doorbell"
payload_on: "ringing"
payload_off: "standby"
@JoooostB
JoooostB / esp8266-mqtt-doorbell - mqtt:
Last active November 14, 2018 07:02
esp8266-mqtt-doorbell - MQTT
mqtt:
broker: IP
port: 1883
client_id: home_assistant
username: USERNAME
password: PASSWORD