Skip to content

Instantly share code, notes, and snippets.

View flufftronix's full-sized avatar

Michael Lasday flufftronix

View GitHub Profile
@flufftronix
flufftronix / failed-build-log.txt
Created June 2, 2022 05:30
Failed build log for kartben/artificial-nose in platform.io
`Processing seeed_wio_terminal (platform: atmelsam @ 7.0.0; board: seeed_wio_terminal; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/seeed_wio_terminal.html
PLATFORM: Atmel SAM (7.0.0) > Seeeduino Wio Terminal
HARDWARE: SAMD51P19A 120MHz, 192KB RAM, 496KB Flash
DEBUG: Current (atmel-ice) External (atmel-ice, blackmagic, jlink)
PACKAGES:
- framework-arduino-samd-seeed @ 1.8.1
- framework-cmsis @ 2.50400.181126 (5.4.0)
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:stack-in-card
mode: horizontal
style:
.: |
ha-card {
margin: 0;
background: rgba(0,0,0,0);
@flufftronix
flufftronix / peco-greenbutton.py
Created April 5, 2022 03:58
For automating the download of My Green Button data from PECO
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0
from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0
from pyshadow.main import Shadow
import time
options = Options()
options.headless = True
blueprint:
name: YERP! - Mappings
description: "
# YERP!
## Your Emergency Response Platform
---
[YERP!](https://yerp.io) is the first open source [harm reduction](https://harmreduction.org/about-us/principles-of-harm-reduction/) framework for [Home Assistant](https://home-assistant.io), designed to allow for early detection and response to potential medical emergencies (such as accidental drug overdose, cardiac arrest, or other types of syncope/fainting) in single occupancy rooms.
[Variables]
GW=(450*#scale#)
GH=(170*#scale#)
P=(22*#Scale#)
Shuffle=0
Control=1
Repeat=0
Heart=1