WeatherStation class usage


In [1]:
from weatherdata_utils import WeatherStation

In [2]:
station = WeatherStation("http://w1.weather.gov/xml/current_obs/KNYC.xml")

In [3]:
station.update()

In [4]:
station.temp()


Out[4]:
78.0

In [5]:
station.humidity()


Out[5]:
48.0

In [6]:
station.pressure()


Out[6]:
1015.0

In [ ]: