Skip to content

Instantly share code, notes, and snippets.

View dale3h's full-sized avatar

Dale Higgs dale3h

View GitHub Profile
@dale3h
dale3h / MessageForwarding_StreamlabsSystem.py
Created August 17, 2018 22:46
Streamlabs Message Forwarding [Twitch <-> Discord] (Author: Castorr91)
#!/usr/bin/python
# -*- coding: utf-8 -*-
# pylint: disable=invalid-name
"""Forward messages from twitch chat to discord chat or the other way around"""
#---------------------------------------
# Libraries and references
#---------------------------------------
import codecs
import json
import os
@dale3h
dale3h / blank.png
Last active May 2, 2020 13:06
Lovelace: Fire TV Remote Card
blank.png
@dale3h
dale3h / scripts.yaml
Created October 24, 2019 21:06
[Home Assistant] Light Brightness Scripts
################################################################################
## Scripts to Adjust Light Brightness
################################################################################
################################################
## Example Usage
################################################
# - service: script.increase_brightness
# data:
@dale3h
dale3h / flow.json
Created October 24, 2019 20:21
[Node-RED] Controlling Lights with deCONZ and Philips Hue Dimmer
[{"id":"683f5521.03d7ec","type":"link in","z":"2fe9ea1c.17c506","name":"Master Bedroom Dimmer","links":["29f6fa70.0111d6","ddd0422.a7f81c","d8c78531.f3efb8"],"x":55,"y":400,"wires":[["6f9fb9d2.d630a8"]]},{"id":"98b9b53a.831548","type":"switch","z":"2fe9ea1c.17c506","name":"Philips Hue Dimmer","property":"payload.button_id","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"str"},{"t":"eq","v":"2","vt":"str"},{"t":"eq","v":"3","vt":"str"},{"t":"eq","v":"4","vt":"str"}],"checkall":"false","repair":false,"outputs":4,"x":460,"y":440,"wires":[["c4451284.bb852"],["d330587c.ec3558"],["94d7b051.17b7e"],["6e72b653.bc8898"]],"outputLabels":["On","Bright","Dim","Off"]},{"id":"c4451284.bb852","type":"switch","z":"2fe9ea1c.17c506","name":"On","property":"payload.button_action","propertyType":"msg","rules":[{"t":"eq","v":"press","vt":"str"},{"t":"eq","v":"hold","vt":"str"},{"t":"eq","v":"release_short","vt":"str"},{"t":"eq","v":"release_long","vt":"str"}],"checkall":"false","repair":false,"outputs":4,"x":710,"y":320,"wi
@dale3h
dale3h / Ender 3 + OctoPrint.fff
Created September 18, 2019 16:59
[Simplify3D] Ender 3 + OctoPrint Profile
<?xml version="1.0"?>
<profile name="Ender 3 + OctoPrint" version="2019-09-18 11:52:09" app="S3D-Software 4.1.2">
<baseProfile>Creality Ender 3 (modified)</baseProfile>
<printMaterial>PLA</printMaterial>
<printQuality>Medium</printQuality>
<printExtruders></printExtruders>
<extruder name="Primary Extruder">
<toolheadNumber>0</toolheadNumber>
<diameter>0.4</diameter>
<autoWidth>0</autoWidth>
@dale3h
dale3h / bigtimer-outputs.md
Created June 26, 2019 22:51
Node-RED BigTimer Outputs Documentation

BigTimer Outputs Documentation

Sample Node Configuration

Node Property Value Node Property Value
Name Big Timer
Comment empty
On Time Dusk Off Time 23:45
On Time2 13:00 Off Time2 13:15
@dale3h
dale3h / hassio_rpi3bp
Last active June 12, 2019 18:52
Hass.io Installer for Raspberry Pi 3 B+
#!/bin/bash
###########################################################
###########################################################
## ##
## THIS SCRIPT SHOULD ONLY BE RUN ON A RASPBERRY PI 3 B+ ##
## ##
###########################################################
###########################################################
@dale3h
dale3h / ui-lovelace.yaml
Created July 23, 2018 22:32
[Lovelace] Create a header by using `panel: true` with nested stack cards
title: Home
views:
- title: Header
icon: mdi:car
panel: true
cards:
- type: vertical-stack
cards:
- type: glance
entities:
@dale3h
dale3h / lovelace-migrate.py
Created June 29, 2018 00:02
Lovelace UI Migration Script
"""
Migration tool for Home Assistant Lovelace UI.
"""
import argparse
import logging
import sys
import json
from collections import OrderedDict
from getpass import getpass
@dale3h
dale3h / motion_lights_off.yaml
Created April 27, 2018 18:43
Delay and transition lights off after motion is no longer detected
################################################################
## Packages / Motion Lights Off
##
## @description Delay and transition lights off after motion is no longer detected
## @component automation, binary_sensor, input_number, light, sensor
## @license MIT
## @author @Vasiley, Dale Higgs <@dale3h>
################################################################
homeassistant: