Skip to content

Instantly share code, notes, and snippets.


Nick Touran partofthething

View GitHub Profile
partofthething / configuration.yaml
Last active Apr 29, 2020
Home-assistant configuration with some z-wave devices, HUE lights, some custom commands, weather, etc.
View configuration.yaml
# Name of the location where Home Assistant is running
name: [redacted]
# Location required to calculate the time the sun rises and sets
latitude: [redacted]
longitude: [redacted]
# C for Celcius, F for Fahrenheit
temperature_unit: C
# Pick yours from here:
time_zone: America/Los_Angeles
partofthething /
Created Oct 5, 2015
Getting pixel intensity vs. time for reading a Crookes radiometer
import cv2
def measureIntensities(videoFileName, pointOfInterest):
Find the intensity of a point of interest for each frame
video = cv2.VideoCapture(videoFileName)
intensities = []
while video.isOpened():
_returnCode, frame =