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: 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: |
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/env python2 | |
| import feedparser as fp | |
| # parse YouTube feed named 'The CGBros' | |
| rss = fp.parse('https://www.youtube.com/feeds/videos.xml?channel_id=UC-1rx8j9Ggp8mp4uD0ZdEIA') | |
| # print number of entries in feed | |
| print 'total entries:', len(rss.entries) |
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/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 |
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
| 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 |
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
| # 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=* |
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
| # -*- coding: utf-8 -*- | |
| import wifi | |
| def Search(): | |
| wifilist = [] | |
| cells = wifi.Cell.all('wlan0') |