Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard Osterloh rosterloh

View GitHub Profile
@jfurcean
jfurcean / COVID-19-Vaccine-MatrixPortal.py
Last active Jan 21, 2021
Display COVID-19 Vaccine Data on a Adafruit MatrixPortal
View COVID-19-Vaccine-MatrixPortal.py
# SPDX-FileCopyrightText: 2021 John Furcean
# SPDX-License-Identifier: MIT
import board
import busio
from digitalio import DigitalInOut
import adafruit_requests as requests
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_bitmap_font import bitmap_font
from adafruit_esp32spi import adafruit_esp32spi
@kongmunist
kongmunist / face_tracking_ppg.py
Last active Apr 5, 2021
Webcam Photoplethysmyography
View face_tracking_ppg.py
# Must be run in console to work properly
import numpy as np
import cv2
import time
from scipy import signal
import matplotlib.pyplot as plt
import matplotlib
import threading
import scipy.signal as sig
@jfurcean
jfurcean / mute-button.py
Last active Nov 23, 2020
CircuitPython Mute Button
View mute-button.py
# SPDX-FileCopyrightText: 2020 John Furcean
# SPDX-License-Identifier: MIT
import time
import board
from digitalio import DigitalInOut, Direction, Pull
import usb_hid
from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS
@dglaude
dglaude / Things_to_do.txt
Last active Nov 27, 2020
EnviroPlus-FeatherWing TODO
View Things_to_do.txt
Idea about the example
----------------------
simpletest example could be only present in each individual library.
More complex example that use the plotter could be in the main library for EnviroPlus-FeatherWing.
Move from gas to MICS6814
-------------------------
Replace gas.py from library with the new library https://github.com/pimoroni/Pimoroni_CircuitPython_MICS6814
@jfurcean
jfurcean / COVID-19-RGB-Matrix.py
Created Nov 9, 2020
COVID-19 Data - RGB Matrix
View COVID-19-RGB-Matrix.py
# SPDX-FileCopyrightText: 2020 John Furcean
# SPDX-License-Identifier: MIT
import board
import busio
from digitalio import DigitalInOut
import adafruit_requests as requests
import adafruit_esp32spi.adafruit_esp32spi_socket as socket
from adafruit_bitmap_font import bitmap_font
from adafruit_esp32spi import adafruit_esp32spi
@enegaard
enegaard / hassos-rpi-camera-howto.md
Last active Apr 10, 2021
Getting the Raspberry Pi Camera to Work on HASSOS
View hassos-rpi-camera-howto.md

Getting the Raspberry Pi Camera to Work on HASSOS

Enabling the Raspberry Pi camera on HASSOS installations is unfortunately not as simple as connecting the camera and configuring Home Assistant as described at https://www.home-assistant.io/integrations/rpi_camera.

For the camera to work at all, an alternate firmware needs to be loaded when the Raspberry Pi boots. On Raspberry Pi OS (and many others), the alternate firmware is included with the OS installation image, and switching to the alternate firmware is accomplished by running raspi-config and selecting "Enable Camera" from the menu. HASSOS does not include either the alternate firmware or the raspi-config program, so all of the steps need to be done manually.

The steps below attempt to describe the steps that need to be performed. They have worked for me on a Raspberry Pi 3B+ running HASSOS 4.11 through 4.15. If you have a different setup your mileage may vary (but hopefully you'll get enough hints from the below to get it working).

A Home Assista

View alab-ph-sensor.js
/* eslint-disable */
const {
fromZigbeeConverters,
toZigbeeConverters,
exposes
} = require('zigbee-herdsman-converters');
const ACCESS_STATE = 0b001, ACCESS_WRITE = 0b010, ACCESS_READ = 0b100;
const getKey = (object, value) => {
@jfierstein
jfierstein / check_mail.py
Created Apr 22, 2019
Python script for scraping Gmail inbox for Amazon package emails with today as delivery date (written for Home Assistant)
View check_mail.py
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
@mcfrojd
mcfrojd / Shield_Intents.MD
Last active Apr 7, 2021
Working INTENTS to use with Community Hass.io Add-ons: Android Debug Bridge for your Nvidia Shield TV
View Shield_Intents.MD

Latest Update 2021-03-06 : New image showing the new "Services" in Home Assistant and got some tips from the comments below.

Credits and thanks: Home Assistant Forum users & Github users: @ocso, @wiphye, @teachingbirds, @tboyce1, @simbesh, @JeffLIrion @ff12 @rebmemer @siaox @DiederikvandenB @Thebuz @clapbr @Finsterclown


Start apps on your android device (in the examples below, my Nvidia Shield TV) from Home Assistant

alt text

Starts Youtube App

entity_id: media_player.shield
command: >-