Skip to content

Instantly share code, notes, and snippets.

View partofthething's full-sized avatar

Nick Touran partofthething

View GitHub Profile
@partofthething
partofthething / measureIntensities.py
Created October 5, 2015 01:31
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 = video.read()
@partofthething
partofthething / configuration.yaml
Last active April 29, 2020 13:50
Home-assistant configuration with some z-wave devices, HUE lights, some custom commands, weather, etc.
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