Skip to content

Retrieve weather data from your La Crosse Weather Station data stored in the cloud

License

Notifications You must be signed in to change notification settings

keithprickett/lacrosse_weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Retrieve your weather station's data from La Crosse Technology's cloud storage

Example:

# Get the latest temperature value from a device named 'temperature'
# First setup your La Crosse View app
email = 'ENTER YOUR LA CROSSE E-MAIL HERE'
password = 'ENTER YOUR LA CROSSE PASSWORD HERE'
print("Logging in...")
token = lacrosse_login(email, password)
print("Getting locations...")
locations = lacrosse_get_locations(token)
print("Getting devices...")
devices = lacrosse_get_devices(token, locations)

for device in devices:
    if device['device_name'] == 'temperature':
        weather_data = lacrosse_get_weather_data(token, device)
        print("Current temperature is: {} {}".format(weather_data['Temperature']['values'][-1]['s'], weather_data['Temperature']['unit']))

Credit for original code: https://github.com/dbconfession78/py_weather_station

About

Retrieve weather data from your La Crosse Weather Station data stored in the cloud

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages