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: Switch Hue light from KNX | |
| description: Turn a Hue light on or off from a KNX telegram | |
| domain: automation | |
| input: | |
| knx_address: | |
| name: KNX group address to switch the light | |
| target_light: | |
| name: Hue light entity to switch | |
| selector: |
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/python | |
| from flask import Flask | |
| from flask import request | |
| import subprocess | |
| import datetime | |
| http_server = Flask(__name__) | |
| scan = None |
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/python3 | |
| from gpiozero import Button, TonalBuzzer | |
| from gpiozero.tones import Tone | |
| from picamera import PiCamera | |
| from time import sleep | |
| import socket | |
| import threading | |
| buzzer = TonalBuzzer(27, octaves=1, mid_tone="A4") |
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/python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import csv | |
| import re | |
| accounts = [ "add account numbers here" ] | |
| def handleAccount(input): |
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 | |
| count=$1 | |
| resolution=150 | |
| if [ $count -gt 1 ]; then | |
| scanimage --batch=scan_%d.tiff --batch-count=$count --format=tiff --resolution $resolution --batch-prompt | |
| resultcode=$? | |
| if [ $resultcode -eq 0 ]; then | |
| tiffcp $(ls -v | grep scan_) scan.tiff | |
| rm scan_* |
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 | |
| workdir=/home/pi/ocr.work | |
| scaninput=/home/pi/scaninput | |
| outdir=/home/pi/paperless.consume | |
| inotifywait -m -e close_write -e moved_to $scaninput | | |
| while read -r path action file; do | |
| echo "Waiting for $file..." | |
| sleep 10 |
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/python | |
| import subprocess | |
| import time | |
| import re | |
| from gpiozero import LED | |
| PIN = LED(17) | |
| MAX_TEMP = 50 | |
| MIN_TEMP = 45 |