Aranet4 Python client
Project description
Aranet4 Python client
Functions
get_current_readings(mac_address: str) -> client.CurrentReading
Get from the device the current measurements
Returns CurrentReading object:
class CurrentReading:
name: str = ""
version: str = ""
temperature: float = -1
humidity: int = -1
pressure: float = -1
co2: int = -1
battery: int = -1
status: int = -1
interval: int = -1
ago: int = -1
stored: int = -1
get_all_records(mac_address: str, entry_filter: dict) -> client.Record
Get stored datapoints from device. Apply any filters requested
entry_filter
is a dictionary that can have the following values:
l
: int : Get last n entriesstart
: datetime : Get entries after specified timeend
: datetime : Get entries before specified timetemp
: bool : Get temperature data points (default = True)humi
: bool : Get humidity data points (default = True)pres
: bool : Get pressure data points (default = True)co2
: bool : Get co2 data points (default = True)
Returns CurrentReading object:
class Record:
name: str
version: str
records_on_device: int
filter: Filter
value: List[RecordItem] = field(default_factory=list)
Which includes these objects:
class RecordItem:
date: datetime
temperature: float
humidity: int
pressure: float
co2: int
class Filter:
begin: int
end: int
incl_temperature: bool
incl_humidity: bool
incl_pressure: bool
incl_co2: bool
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
File details
Details for the file aranet4-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: aranet4-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 026e5f82a589d52cc755c923fb5f464634c4abc80d2e74730d214c8f6a4020df |
|
MD5 | 028e13518f2c487633c3cffa2a50adb4 |
|
BLAKE2b-256 | c967d0806ff2d59eaf878c32249caed00b0e74c8f40d2ee5198ea35f6d83a76b |
File details
Details for the file aranet4-2.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: aranet4-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 163277fb95206881c19dacf36fa216e39d446bcc46268b30360c9c4228285119 |
|
MD5 | c79a66165b1fb25bf4b4d4aff8991dd3 |
|
BLAKE2b-256 | 7cea8b4d034b46e923675107cae2bc08baed92de1ff10e94ffa48356a74f9f60 |