This file contains 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/bash | |
POWER='\{"Protocol":"NEC","Bits":32,"Data":"0x01FE48B7","DataLSB":"0x807F12ED","Repeat":1\}' | |
A_1='\{"Protocol":"NEC","Bits":32,"Data":"0x01FE807F","DataLSB":"0x807F01FE","Repeat":1\}' | |
A_2='\{"Protocol":"NEC","Bits":32,"Data":"0x01FEC03F","DataLSB":"0x807F03FC","Repeat":1\}' | |
A_3='\{"Protocol":"NEC","Bits":32,"Data":"0x01FE20DF","DataLSB":"0x807F04FB","Repeat":1\}' | |
A_4='\{"Protocol":"NEC","Bits":32,"Data":"0x01FE609F","DataLSB":"0x807F06F9","Repeat":1\}' | |
B_1='\{"Protocol":"NEC","Bits":32,"Data":"0x01FEE01F","DataLSB":"0x807F07F8","Repeat":1\}' |
This file contains 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 python3 | |
# https://github.com/raspberry-pi-camera/atem-tally/blob/master/atem.py | |
import socket | |
import sys | |
import struct | |
import ctypes | |
import time | |
import threading |
This file contains 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
Vagrant.configure("2") do |config| | |
config.hostmanager.enabled = true | |
config.hostmanager.manage_host = false | |
config.hostmanager.manage_guest = true | |
#config.hostmanager.ignore_private_ip = false | |
config.hostmanager.include_offline = true | |
servers=[ | |
{ |
This file contains 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 python3 | |
import re | |
import evdev | |
from evdev import InputDevice,categorize,ecodes | |
from select import select | |
from pythonosc import udp_client | |
debug = 0 |
This file contains 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 python | |
# -*- coding: utf-8 -*- | |
# Copyright (c) 2014-18 Richard Hull and contributors | |
# See LICENSE.rst for details. | |
# PYTHON_ARGCOMPLETE_OK | |
""" | |
Display basic system information. | |
Needs psutil (+ dependencies) installed:: |
This file contains 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
import os | |
import base64 | |
import hashlib | |
import logging | |
import json | |
import six | |
from cryptography.fernet import Fernet, InvalidToken | |
from cryptography.hazmat.backends import default_backend |
This file contains 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/python | |
# Copyright: (c) 2019, Andrew J. Huffman <ahuffman@redhat.com> | |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
ANSIBLE_METADATA = {'metadata_version': '1.1', | |
'status': ['preview'], | |
'supported_by': 'community'} | |
DOCUMENTATION = ''' |
This file contains 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/python | |
# Copyright: (c) 2019, Andrew J. Huffman <ahuffman@redhat.com> | |
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) | |
ANSIBLE_METADATA = {'metadata_version': '1.1', | |
'status': ['preview'], | |
'supported_by': 'community'} | |
DOCUMENTATION = ''' |
This file contains 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
index 8a6935b..84e1ad5 100644 | |
--- a/plugin.py | |
+++ b/plugin.py | |
@@ -184,7 +184,7 @@ class BasePlugin: | |
except Exception as e: | |
Domoticz.Debug(str(e)) | |
# RGB device | |
- elif relnum in range(0,4) and len(device_id)==4 and device_id[len(device_id)-1] in ["rgb","w"]: | |
+ elif relnum in range(0,4) and len(device_id)==4 and device_id[len(device_id)-1] in ["rgb","w","dimmer"]: | |
if (Command == "Set Level"): |
This file contains 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 python3 | |
import eiscp,sys,xmltodict | |
receivers = {} | |
for rec in sys.argv[1:]: | |
receiver = eiscp.eISCP(rec) | |
receivers[rec] = xmltodict.parse( receiver.raw('MDIQSTN')[3:] )['mdi'] |
NewerOlder