The python wrapper of a gateway rest API of a flespi platform.
Project description
Flespi gateway python library
flespy-gateway is a python library.
>>> from flespi_gateway.gateway import Device
>>> dv = Device(device_number=device_number, flespi_token=flespi_token)
>>> telemetry = dv.get_telemetry()
>>> print(telemetry)
{'result': [{'id': xxxxxx,
'telemetry': {'battery.current': {'ts': 1609521935, 'value': 0},
'battery.voltage': {'ts': 1609521935, 'value': 4.049},
'can.absolute.load': {'ts': 1609327396, 'value': 23}]
}
Flespi gateway allows you to send http requests easily.
Installing Flespi gateway and Supported Versions
Flespi gateway is available on PyPI:
$ python3 -m pip install flespi-gateway
Flespi gateway supports Python 3.8+.
API Reference and User Guide available on Read the Docs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
flespi-gateway-0.0.4.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for flespi_gateway-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2fae7b11b2f05d403cd7b45ec56e7c037fa60ec775ee15e0406a7aac59e910b |
|
MD5 | 9e7ee3af57a62e36928e0b8415ae54bd |
|
BLAKE2b-256 | f1103c3750d917e14e3ef3223dac33bf5dc2e7f842d00dcc5d49e7cd6e6843b5 |