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
varBright = msg.data.attributes.brightness; | |
varEntity = msg.data.entity_id; | |
if (varBright < 200) {varBrightness = varBright + 50} | |
else {varBrightness = 254} | |
msg.payload = {"entity_id":varEntity} | |
msg.payload.data = {"brightness":varBrightness} | |
return msg; |
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
[{"id":"97e45a69cd37a0fd","type":"debug","z":"4df20a7cf51f7a91","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":490,"y":920,"wires":[]},{"id":"e9cc8d76f479d632","type":"api-current-state","z":"4df20a7cf51f7a91","name":"Get Temperature","server":"2c3f285.7dce7d8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.0x0017880102023b5a_temperature","state_type":"str","state_location":"temperature","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":310,"y":880,"wires":[["97e45a69cd37a0fd","a37ed37201f80b6f"]]},{"id":"37e4e00715f6c35d","type":"inject","z":"4df20a7cf51f7a91","name":"Alle 15Min.","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"900","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":170,"y":840,"wires":[["e9cc8d76f479d632"]]},{"id":"3b862b7b047d678c","type |
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
esphome: | |
name: esp82_d1_mini_pir_door | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: "XXXX" | |
password: "XXX" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
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
esphome: | |
name: esp82_d1_mini_pir_door | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: "xxxx" | |
password: "yyyyy" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
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
esphome: | |
name: esp82_d1_mini_pir_door | |
platform: ESP8266 | |
board: nodemcu | |
wifi: | |
ssid: "xxxx" | |
password: "yyyyy" | |
# Enable fallback hotspot (captive portal) in case wifi connection fails |
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 | |
echo "$(date): Conversion-Script started with parameter path:{$1} filename:{$2}" >> /config/recordings.log | |
#newfile=$(cut -c -4 <<<"$1") | |
# Handle multiline Strings better | |
newfile=$(echo $1 | sed -e 's/\n*.mkv/.mp4/' | sed -e 's/ //') | |
command="/usr/bin/ffmpeg -i "$1" -c:v libx264 -crf 23 -c:a aac -movflags faststart "$newfile"" | |
echo $command >> /config/recordings.log | |
$(command) | |
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
#!/usr/bin/python | |
import sys | |
import os | |
import smtplib | |
import subprocess | |
from smtplib import SMTPException | |
sender = 'relay@rubenkrapf.de' | |
receivers = 'tvowgoxz6r@pomail.net' |
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
#!/usr/bin/python | |
import sys | |
import os | |
import smtplib | |
import subprocess | |
sender = 'relay@randow.net' | |
receivers = ['tvowgoxz6r@pomail.net'] | |
fullpath = sys.argv[1] | |
recording = sys.argv[2] |
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
--2020-09-02 11:30:13-- https://termbin.com/h2k5 | |
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' | |
Resolving termbin.com (termbin.com)... 5.39.93.71 | |
Connecting to termbin.com (termbin.com)|5.39.93.71|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 7937 (7.8K) [text/plain] | |
Saving to: ‘h2k5’ | |
0K ....... 100% 118M=0s |
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
# Übergabe Parameter/Input erfolgt in Perl mit $ARGV[1] in BASH mit $1 | |
# TO ist Pushover kreiiert email addresse | |
#!/usr/bin/perl | |
use strict; | |
my($mailprog) = '/usr/sbin/sendmail -v -S 192.168.1.52:25 '; | |
my($from_address) ='tvheadend@randow.net'; | |
my($to_address) ='tvowgoxz6r@pomail.net'; | |
open (MAIL, "|$mailprog -t $to_address") || die "Can't open $mailprog!\n"; | |
print MAIL "To: $to_address\n"; | |
print MAIL "From: $from_address\n"; |
NewerOlder