Skip to content

Instantly share code, notes, and snippets.

@tannercollin
tannercollin / add_device.py
Created June 12, 2021 04:42
A script to add new Lutron Caseta devices using pylutron-caseta
# A script to add new Lutron Caseta devices using pylutron-caseta
# by Tanner Collin, Apache Licensed
import asyncio
import json
import pylutron_caseta
from pylutron_caseta.smartbridge import Smartbridge
pylutron_caseta.smartbridge.REQUEST_TIMEOUT = 15.0
device_heard = None
@tannercollin
tannercollin / sn004-demo.py
Last active November 1, 2021 15:58
Standard Notes protocol v004 reference decryption demo
# Standard Notes protocol v004 reference decryption demo
# by Tanner Collin, MIT license
#
# Install dependencies in your Python 3 environment:
# pip install argon2-cffi requests pycryptodome
#
# do not use your real account
# use a fresh account so there's no 003 items
# or use this test account
email = 'standardnotes-fs004@domain.com'