Skip to content

Instantly share code, notes, and snippets.

@d03n3rfr1tz3
d03n3rfr1tz3 / mueller_licht_remote.yaml
Last active November 26, 2024 01:04
Müller Licht Remote
blueprint:
name: Müller Licht Remote
description: Control lights with a Muller Licht Tint RGB Remote
domain: automation
input:
remote:
name: Remote
description: Muller Licht Tint remote to use
selector:
device:
@nick3499
nick3499 / youtube_feed_links.py
Created December 11, 2017 00:51
Python 2: feedparser Module: Youtube Feed Links
@davestephens
davestephens / mis
Last active November 25, 2019 01:39
Mystic BBS init.d and monit configuration for Raspberry Pi
#!/bin/sh
### BEGIN INIT INFO
# Provides: mis
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start: $all
# Should-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@ednisley
ednisley / KeyPad Events.py
Last active June 14, 2021 07:54
Python Source Code: Raspberry Pi USB Numeric Keypad -- evdev test
from evdev import InputDevice,ecodes,KeyEvent
k=InputDevice('/dev/input/keypad')
for e in k.read_loop():
if (e.type == ecodes.EV_KEY) and (KeyEvent(e).keystate == 1):
if (KeyEvent(e).keycode == 'KEY_NUMLOCK'):
continue # we don't care about the NumLock state
else:
print KeyEvent(e).scancode, KeyEvent(e).keycode
# Defaults / Configuration options for homebridge
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others)
HOMEBRIDGE_OPTS=-U /var/lib/homebridge
# If you uncomment the following line, homebridge will log more
# You can display this via systemd's journalctl: journalctl -f -u homebridge
# DEBUG=*
@taylor224
taylor224 / wifi.py
Last active July 11, 2024 20:17
Python WiFi Example
# -*- coding: utf-8 -*-
import wifi
def Search():
wifilist = []
cells = wifi.Cell.all('wlan0')