Description
An asyncio-native library designed to request data from a Ruuvi Gateway. It supports bearer token authentication and allows for efficient data retrieval and parsing.
The Ruuvi Gateway is a device that allows you to remotely access your Ruuvi sensors from anywhere in the world.
This library offers both an API and a command-line interface for accessing and displaying data from the Ruuvi Gateway.
Example usage:
from aioruuvigateway.api import get_gateway_history_data
async with httpx.AsyncClient() as client: history = await get_gateway_history_data( client=client, host="192.168.1.249", bearer_token="your_token_here", ) print(history)
Command-line interface example:
python -m aioruuvigateway --host 192.168.1.249 --token bearbear --parse --json
This will output data from the gateway in JSON format, printing changed information every 10 seconds.