Skip to content

Instantly share code, notes, and snippets.

View vwillcox's full-sized avatar
🏠
Working from home

Vincent Willcox vwillcox

🏠
Working from home
View GitHub Profile
@vwillcox
vwillcox / gertboard-wind-led.py
Last active January 2, 2016 04:09
Read from PYWWS Weather raw file and display the wind speed as a range of LEDs on the GertBoard
#!/usr/bin/env python2.7
# Python to read pywws raw weather-file and output windspeed
# To the GertBoard LED's based on strength
from collections import deque
import csv
import wiringpi
from time import sleep
import sys
import math
import imaplib
import email
#connect to gmail
mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login('email@gmail.com','yourPassWordPlease')
mail.select('inbox')
mail.list()