Created
August 30, 2012 07:51
-
-
Save KitWallace/3523873 to your computer and use it in GitHub Desktop.
barometer reader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def baroReader(interval_secs) : | |
""" dummy reader until the chip is added to the RPi | |
generator | |
""" | |
station = Weather("horfield","http://www.martynhicks.co.uk/weather/clientraw.txt") | |
while True : | |
station.refresh() | |
if station.baro is None : | |
time.sleep(10) | |
else : | |
yield(station.baro) | |
time.sleep(interval_secs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment