Skip to content

Instantly share code, notes, and snippets.

@jfierstein
jfierstein / gist:5c5e3cba8790cce9c739f35094ffa612
Created October 14, 2020 01:16
Whisper on Yell Classic Weak Aura
!WA:2!Dr1ZUjYrtCtCK2ioXsswLnN61h2SrYYAxRvwFxwPWqGGJSbNHXbBPib9mDnZ07o09SD3dy8TLdr(SZBaN)oXJapbJq5jWpcCiNYHu9ay7eoWu9VQ6UQF1)k1S6WQSQSB2tDvNWqnyA9do)1VVd(tnzlqwLbeeyoveelvNj5cJF9gT9A4UmqktyYXIUJ5PWGfBp2GfbXo8aPyWuJIhfbkD7xQ2iEt17Y0qFAYy6eTrLbXtzzkQHlf79M3MwziO10iOVmfquPAV39oxbfrlpJb(zHHEtqnTACYznp)ehdEWfgbcZD6m)cHUOn8RM3VETUE976vZ1ZjtWn(Pj0jGk)PlQhtnKtx7MIyrlZubqB0jduBCF6F0skKkYeufjgusq)cshbXeZ1egDY(OemHethbegqtmekjsb4d7NihtOruUqBisbqKHe7JmuINrpdmciGHC7d6fdKqAIgi9OQGyoeUpXfemItcn4dXubBF8kARnjG4f3tXZuasr3UN14KtMQtHKKJzy(5bE47fRW7m3YUnmAGktuCzxdFiWw9iv2m6G5p6WY6TQ51)0U)u)lrpCBMytTR8Cgx)(mrGHpcoKkMK(uAHS3A9NkzW)FNvylcOe0KFfl8yzT(QpaqAnmodmU2cD8TAijSOvk)ZXQQMASDaq8mKGUqeEh93EZxNw1axz6RJPyx1fR7hlL(8cWI)cLQHu0GncocmDF79Qt3BBs970ycfzhxerSLpLmnfLp4GdsR8ixuxMiv)CPsL29U1OBdsNAN71j9llaPzgj6lEqpoZe7udpUADWWVcyfGFA56zLl3eYlk0)(mTHhobjSsAqY6HGoT70UrEffsBRnZkmmOim2f)D7gwkmPvAQ4xt(LmkdtuuIN3)k5S1tllWglvSEkA60EBewhaJ4AUFcmydNF088IoNJJZ9D645150L370Ibnu1jh3UXdOD5xdpFddVVOu9rp5MG5V3Xpg4rXMp5KiPSJCS1)N5omlXWl7gKq16NL3PSJgFpRWmvrH3
@jfierstein
jfierstein / vent_control.ino
Created April 22, 2019 23:10
Arduino sketch for controlling vents wired to ESP8266
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ESP8266mDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
#define MOTOR_IN1 D1
#define MOTOR_IN2 D2
#define wifi_ssid "WIFISSID" //type your WIFI information inside the quotes
@jfierstein
jfierstein / deliveries_card.js
Created April 22, 2019 05:18
Custom Lovelace card for displaying Amazon Deliveries via check_mail command line sensor in Home Assistant
class DeliveriesCard extends HTMLElement {
set hass(hass) {
const entityId = this.config.entity;
const stateObj = hass.states[entityId];
const stateStr = stateObj ? stateObj.state : 'unavailable';
const items = JSON.parse(stateStr);
const itemCount = items.length;
if (!this.content) {
@jfierstein
jfierstein / check_mail.py
Created April 22, 2019 05:01
Python script for scraping Gmail inbox for Amazon package emails with today as delivery date (written for Home Assistant)
import sys, smtplib, time
import datetime
import imaplib
import email
import json
EMAIL = "<YOURADDRESS>@gmail.com"
PWD = "<YOURSECRETPASSWORD>"
SMTP_SERVER = "imap.gmail.com"
SMTP_PORT = 993