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
# Normal keyboard orientation is when | |
# buttons are on the left side and knobs are on the right. | |
# However, you may want to use the keyboard in another orientation. | |
# To avoid remapping button positions in your head, just set it here. | |
# Possible values are: | |
# (horizontal) | |
# - 'normal': buttons on the left, knobs on the right | |
# - 'upsidedown': buttons on the right, knobs on the left | |
# (vertical) | |
# - 'clockwise': buttons on the top, knobs on the bottom |
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: Calibrate TRV using external sensor | |
description: Calibrate radiator TRV temperature sensor using an external temperature sensor. | |
domain: automation | |
input: | |
external_temperature_sensor: | |
name: External Temperature Sensor | |
description: Temperature sensor with correct temperature, used to calibrate TRV one. | |
selector: | |
entity: |
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 moisture level detection & notification for all plant sensors | |
description: Regularly test all plant sensors with 'moisture' crossing under their | |
threshold. | |
domain: automation | |
input: | |
time: | |
name: Time to test on | |
description: Test is run at configured time | |
default: '10:00:00' |
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 | |
MIN_EXPECTED_ARGS=4 | |
if [ $# -lt $MIN_EXPECTED_ARGS ]; then | |
echo "Script to update the FritzBox SSL certificate" | |
echo "" | |
echo "Expected at least ${MIN_EXPECTED_ARGS} args" | |
echo "" | |
echo "Usage: $(basename "${0}") {username} {password} {cert-key-file} {cert-fullchain-file} [cert-password] [fritzbox-host]" | |
echo " - [cert-password] only needed if the {cert-key-file} is protected by a 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
#!/usr/bin/env bash | |
CONTAINER_NAME="portainer" | |
IMAGE_NAME="portainer/portainer-ce" | |
PORT=9000 | |
DATA_DIR="/opt/portainer/data" | |
function container-exist() { | |
local CONTAINER_ID=${1} | |
docker inspect "${CONTAINER_ID}" &> /dev/null |
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 | |
set -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
apt-get -y install coreutils wget apt-transport-https lsb-release ca-certificates |
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 | |
set -e | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
function install() { |
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
041c76c588a00e4bd7a459f49d4b1aba17407d1bd7f45a096277a84842c1e40e4210968d91c557ccb1c0746182e8dc3311fd1ff09a159fdb49073eb5125f37ec3b |
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 | |
FB_URL="" | |
SID="" | |
SID_FILE="/tmp/fb_sid" | |
function init() { | |
FB_URL="$1" | |
if [ ! -f $SID_FILE ]; then |
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 bash | |
# Script to check Spanish Christmas Lottery | |
# more info: https://servicios.elpais.com/sorteos/loteria-navidad/api/ | |
AUTO_RELOAD="120" # seconds | |
declare -A mainPrizes | |
mainPrizes['numero1']='1er Premio' | |
mainPrizes['numero2']='2º Premio' |
NewerOlder