Skip to content

Instantly share code, notes, and snippets.

View ckarrie's full-sized avatar
🏠
Working from home

Christian Karrié ckarrie

🏠
Working from home
View GitHub Profile
import requests
from datetime import datetime
import hashlib
import argparse
parser = argparse.ArgumentParser(prog='alpha.py')
parser.add_argument('-u', '--username')
parser.add_argument('-p', '--password')
parser.add_argument('-m', '--max_current', type=int, help="set max current of charging pile (6-16)")
parser.add_argument('--start', help="Start charging")
curl 'https://blackoutmelder.de/wp-admin/admin-ajax.php' \
-H 'authority: blackoutmelder.de' \
-H 'accept: */*' \
-H 'accept-language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7,el;q=0.6' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundaryatfX1rhXmDkYIQui' \
-H 'origin: https://blackoutmelder.de' \
-H 'referer: https://blackoutmelder.de/' \
-H 'sec-ch-ua: "Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "ScheissAfD"' \
blueprint:
name: Color Loop 100s
description: ''
domain: automation
input:
cl_light:
name: Color Loop Light
description: 'Choose Light entity to Color Loop'
selector:
target:
@ckarrie
ckarrie / Color_Loop_30s.yaml
Last active October 1, 2022 16:33 — forked from hugalafutro/Color_Loop.yaml
Color Loop
blueprint:
name: Color Loop 30s
description: ''
domain: automation
input:
cl_light:
name: Color Loop Light
description: 'Choose Light entity to Color Loop'
selector:
target:
devices:
({
type = "rtlsdr";
index = 1;
gain = 100;
centerfreq = 173.0;
correction = 0;
mode = "multichannel";
channels:
(
pi@radiopi:~/src/RTLSDR-Airband $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
{'transaction_id': 'e0225da6-07b8-4357-9566-6ad505528c4e', 'event': 'match_status_finished', 'event_id': '8df806e0-7a31-4fb6-a16f-f83d18eb9f34', 'third_party_id': 'c219d336-5b14-4bb8-8003-b5a78a672fb6', 'app_id': '59a587c4-1e14-46e9-a154-d6ff73d67ef9', 'timestamp': '2020-03-07T20:16:17Z', 'retry_count': 0, 'version': 1, 'payload': {'id': '1-a54e27ae-f3bb-4811-a9ab-ddedeee596b1', 'organizer_id': 'f06c9c8c-5acc-4b1e-98b6-1ab0b6cc94c8', 'region': 'EU', 'game': 'csgo', 'version': 16, 'entity': {'id': '9aff7111-1fb7-4e8b-bcf3-c5e8406c7497', 'name': 'Merkur Masters: Open Qualifier 7', 'type': 'championship'}, 'teams': [{'id': 'c153cb8e-71cd-40be-900a-2a552330c394', 'name': 'eSport RN', 'type': 'premade', 'avatar': 'https://assets.faceit-cdn.net/teams_avatars/c153cb8e-71cd-40be-900a-2a552330c394_1581260009893.jpg', 'leader_id': 'f717bbc5-0993-4954-9c4e-46bac0f63b73', 'co_leader_id': '', 'roster': [{'id': '74f0112a-765b-44ce-b1a7-5ed5c5a593c3', 'nickname': 'j1NZO', 'avatar': 'https://assets.faceit-cdn.net/avatars/74f
2016-10-11 21:38:14.486 [ DEBUG]:descrambler: info - service='RTL HD' caid=098C(videoguard) provid=000000 ecmtime=293 hops=0 reader='sky_v14_2' from='local' protocol='smartreader'
2016-10-11 21:38:24.636 [ DEBUG]:descrambler: info - service='RTL HD' caid=098C(videoguard) provid=000000 ecmtime=294 hops=0 reader='sky_v14_2' from='local' protocol='smartreader'
2016-10-11 21:38:35.319 [ ERROR]:descrambler: ECM - key late (10708 ms) for service "RTL HD"
2016-10-11 21:38:35.319 [ DEBUG]:descrambler: no key for service='RTL HD'
2016-10-11 21:38:35.551 [WARNING]:TS: Astra 19.2/10832.25H/RTL HD: H264 @ #255 Continuity counter error (total 1013)
2016-10-11 21:38:35.551 [WARNING]:TS: Astra 19.2/10832.25H/RTL HD: TELETEXT @ #32 Continuity counter error (total 1208)
2016-10-11 21:38:35.551 [WARNING]:TS: Astra 19.2/10832.25H/RTL HD: AC3 @ #259 Continuity counter error (total 842)
2016-10-11 21:38:35.551 [ ERROR]:descrambler: cannot decode packets for service "RTL HD"
2016-10-11 21:38:35.911 [ DEBUG]:descrambler: Obta
@ckarrie
ckarrie / pp.py
Last active April 5, 2016 04:31
TVHeadend Python PostProcessing script
"""
Author: ckarrie <ckarrie@gmail.com>
Python PostProcessing script that deletes all duplicate recordings according to their
description and filesize. The script keeps the recording with the largest filesize.
Usage:
1) put this python file somewhere (i.e. /media/daten/tvheadend/pp.py)
2) Add this line to TVHeadend > Configuration > Recording > [your recording settings] > Post-processor command
2016-01-04 14:04:46.004 [ INFO] subscription: 0186: "epggrab" unsubscribing
2016-01-04 14:04:46.016 [ INFO] subscription: 0185: "epggrab" unsubscribing
2016-01-04 14:04:46.016 [ INFO] subscription: 0184: "epggrab" unsubscribing
2016-01-04 14:04:46.026 [ INFO] subscription: 0180: "epggrab" unsubscribing
2016-01-04 14:04:46.026 [ INFO] subscription: 017E: "epggrab" unsubscribing
2016-01-04 14:04:46.027 [ INFO] subscription: 017C: "epggrab" unsubscribing
*** Error in `./build.linux/tvheadend': double free or corruption (!prev): 0x00007fe81c231a30 ***
2016-01-04 14:04:46.071 [ ALERT] CRASH: Signal: 6 in PRG: ./build.linux/tvheadend (4.1-1298~g545dc38) [0bccb0aed693b602f44aa9b6d3de73a16b2b898e] CWD: /home/waldmeister/src/tvheadend
2016-01-04 14:04:46.071 [ ALERT] CRASH: Fault address 0x3e800003533 (N/A)
2016-01-04 14:04:46.071 [ ALERT] CRASH: Loaded libraries: /lib/x86_64-linux-gnu/libssl.so.1.0.0 /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /lib/x86_64-linux-gnu/libz.so.1 /usr/lib/liburiparser.so.1 /us