Skip to content

Instantly share code, notes, and snippets.

# Copyright 2014 Matt Lovett
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//-----------------------------------------------
// SPARK CORE CUSTOM PWM FREQUENCY EXAMPLE
//===============================================
// Define your own frequency below!
// PWM Glitch issue fixed, only sets up PWM once,
// ... thereafter sets duty cycle.
// This allows true 0 - 100% PWM.
// Copy this into a new application at:
// https://www.spark.io/build and go nuts!
//-----------------------------------------------
@Sperryfreak01
Sperryfreak01 / coxmon.py
Last active December 20, 2016 09:35
Cox Cable internet usage scrapper. Scrapes the usage monitor page and reports the used and remaining data for the billing cycle. Sends a push notification using pushover
The MIT License (MIT)
Copyright (c) [2015] [Matthew Lovett]
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@Sperryfreak01
Sperryfreak01 / supermicro-java-console.sh
Created February 8, 2017 06:23 — forked from DavidWittman/supermicro-java-console.sh
Retrieves the plaintext JNLP for the iKVM console from a SuperMicro IPMI webserver
#!/usr/bin/env bash
# Retrieves the plaintext JNLP from a SuperMicro IPMI webserver
# Usage: supermicro-java-console.sh <hostname>
# supermicro-java-console.sh 10.1.2.34 > login.jnlp
set -x
HOST="$1"
IPMI_USER=${IPMI_USER:-ADMIN}
@Sperryfreak01
Sperryfreak01 / lutron_pico_4_light.yaml
Last active January 2, 2024 00:11 — forked from smartqasa/lutron_pico_5_light.yaml
Lutron Pico 5 Button - Light Entity Control
blueprint:
name: Lutron Pico 4 Button - Light Entity Control
description: "This blueprint allows for the association a Lutron Pico 4 Button (model PJ2-2BRL-GXX-X01) remote with a light entity. It is designed to simulate the operation of a standard Lutron Caseta wall dimmer including the press and hold functionality for the raise/lower buttons. It allows for the control over the brightness step percentage and transition speed and the assignment of any action to the middle button."
source_url: https://gist.github.com/Sperryfreak01/59e16cda1d661daf5c1ba1e9682de897 based on work by cymone, https://gist.github.com/cymone-smart/9814a750a0d0cfb196fa1fa7ae3630bb
domain: automation
input:
pico_1:
name: Pico Device
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.9.2",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.11.5",
"docker": true,
"arch": "x86_64",