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 | |
# Dead man's switch for Tasmota | |
# Presmues that timers has been enabled | |
# Continuously move the restart timers forward | |
read -r day hour <<< $(date -d "+2 hours" +"%u %H") | |
# Convert date output where Monday is 1 to timer format where Sunday is 1 | |
day=$((day%7+1)) |
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
# npm install -g eckles | |
openssl ecparam -genkey -name prime256v1 -out private_key.pem | |
openssl ec -in private_key.pem -pubout -out public_key.pem | |
eckles public_key.pem > public_key.jwk | |
openssl req -x509 -key private_key.pem -subj /CN=localhost -days 1000 > certificate.pem | |
echo $(openssl x509 -in certificate.pem -fingerprint -noout) | sed 's/SHA1 Fingerprint=//g' | sed 's/://g' | xxd -r -ps | base64 |
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
<html> | |
<head> | |
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&family=Work+Sans:wght@400;500&display=swap" rel="stylesheet" /> | |
<style> | |
:root { | |
font-size: 14px; | |
font-family: "Work Sans", sans-serif; | |
} | |
body { |
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
const fs = require('fs'); | |
const createGpx = require('gps-to-gpx').default; | |
const program = require('commander'); | |
program | |
.version('0.1.0') | |
.command('parse <inputFile>') | |
.option('--from <from>', 'From which date parse data YYYY-MM-DDTHH:ii.') | |
.option('--to <to>', 'To which date parse data YYYY-MM-DDTHH:ii.') | |
.option('--accuracy <accuracy>', 'Minimal accuracy.') |
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
const fs = require('fs'); | |
const createGpx = require('gps-to-gpx').default; | |
const program = require('commander'); | |
program | |
.version('0.1.0') | |
.command('parse <inputFile>') | |
.option('--from <from>', 'From which date parse data YYYY-MM-DDTHH:ii.') | |
.option('--to <to>', 'To which date parse data YYYY-MM-DDTHH:ii.') | |
.option('--accuracy <accuracy>', 'Minimal accuracy.') |
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: Flic button | |
description: | | |
Create automations to react to Flic button clicks. Triggered by event type 'flic_click'. | |
The event data should contain flic_name and click_type (single/double/hold). | |
domain: automation | |
input: | |
flic_name: |
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: ZWave-JS - Fibaro Dimmer 2 and Single/Double Switch (FGD212/FGS213/FGS223) Scenes | |
description: | | |
Create automations to react button scenes from Fibaro Dimmer 2 or Single/Double Switch. | |
Make sure that device Z-wave parameters 27 and 28 are set correctly. | |
domain: automation | |
input: | |
device: |
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: Generic trigger template (two triggers) | |
description: Turn one or more devices on/off based on a trigger | |
domain: automation | |
input: | |
trigger_device: | |
name: First trigger | |
description: Either trigger will alter the state of the devices. | |
selector: | |
entity: |
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: Generic trigger template (one trigger) | |
description: Turn one or more devices on/off based on a trigger | |
domain: automation | |
input: | |
trigger_device: | |
name: Trigger | |
description: The trigger that will alter the state of the devices. | |
selector: | |
entity: |