Skip to content

Instantly share code, notes, and snippets.

Avatar

Nick Touran partofthething

View GitHub Profile
@partofthething
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
homeassistant:
# 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: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: America/Los_Angeles
@partofthething
partofthething / measureIntensities.py
Created Oct 5, 2015
Getting pixel intensity vs. time for reading a Crookes radiometer
View measureIntensities.py
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 = video.read()