Skip to content

Instantly share code, notes, and snippets.

@eadmaster
eadmaster / rcswitch2flippersub.py
Last active July 21, 2024 02:39
rcswitch2flippersub.py
#!/usr/bin/env python3
# derived from https://gist.github.com/jinschoi/f39dbd82e4e3d99d32ab6a9b8dfc2f55
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
@eadmaster
eadmaster / tasmotairjson2flipperir.py
Last active August 5, 2024 01:41
tasmotairjson2flipperir.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# converts tasmota irsend commands to flipper ir files
# example usage: python tasmotairjson2flipperir.py <<< '{"Protocol":"NEC","Bits":32,"Data":"0x20DF10EF"}'
import sys
import json