jfparis / aioeafm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aioeafm

This is a thin wrapper for the Real Time flood monitoring API.

This wrapper is built for home-assistant. We target the same python versions as home-assistant and follow similar code style guidelines.

pip install aioeafm

You can get a list of monitoring stations with:

from aioeafm import get_stations
import aiohttp


async with aiohttp.ClientSession() as session:
    print(await get_stations(session))

And you can get the current data for that station with:

from aioeafm import get_station
import aiohttp


async with aiohttp.ClientSession() as session:
    print(await get_station(session, "1491TH"))

About

License:Apache License 2.0


Languages

Language:Python 90.5%Language:Shell 9.5%