LoRaWAN network servers and devices codec library
Project description
pyLibLoRaWAN - Python library to interface with LoRaWAN devices and network servers
Introduction
This library aims to enable LoRaWAN the Home Assistant integration to interact with LoRaWAN network servers and devices, but can be reused for other purposes.
Compatibility list
Network servers
- Helium, either from the the foundation or self hosted
- Orange Live Objects, a French operator
- The Things Stack: TTN, TTI or self hosted
Devices
- Browan TBMS100: PIR motion sensor
Usage
Usage - Network servers
Import the network server object then call the input normalization formatter function:
from pyliblorawan.network_servers.ttn import TTN
ns = TTN(**kwargs)
uplink = ns.normalize_uplink(ttn_uplink_dict)
Some other functions are available:
list_devices
: List devices in the authorized scope
Usage - Devices
Import the device object then call the payload parser function:
from pyliblorawan.devices.browan.tbms100 import TBMS100
device = TBMS100()
await tbms100.parse_uplink(uplink_object)
Test
Install requirements.txt
and requirements-dev.txt
then:
python3 -m pytest -vv --cov=. --cov-config=tests/.coveragerc tests/
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
pyliblorawan-0.4.0.tar.gz
(25.9 kB
view hashes)
Built Distribution
Close
Hashes for pyliblorawan-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59201c2a6f41013ebe201bdae9ae779015bea651fa7368138a5cd0ee20de3042 |
|
MD5 | 62ff75e675b66c3fc90aef3f4410829e |
|
BLAKE2b-256 | 5798353c127a41bfb233bc33fde75e27d30bb5077512f93bba4eaf28f58704db |