Automate web based communication with BL-NET to UVR1611
Project description
# PyBLNET - a very basic python BL-NET bridge
A package that connects to the BL-NET that is connected itself to a UVR1611 device by Technische Alternative.
It is able to read digital and analog values as well as to set switches to ON/OFF/AUTO
```python
ip = '192.168.178.10'
# Check if there is a blnet at given address
print(test_blnet(ip))
# Easy to use high level interface
blnet = BLNET(ip, timeout=5)
print(blnet.turn_on(10))
print(blnet.fetch())
# Fetch the latest data via web interface
blnet = BLNETWeb(ip, timeout=5)
print(blnet.read_analog_values())
print(blnet.read_digital_values())
# For publishing values
#print(blnet.set_digital_value("10", 'AUS'))
#print(blnet.read_digital_values())
blnet = BLNETDirect(ip)
# Fetching the latest data from the backend
print(blnet.get_latest())
# Still inofficial because unexplicably failing often
print(blnet._get_data(1))
```
A package that connects to the BL-NET that is connected itself to a UVR1611 device by Technische Alternative.
It is able to read digital and analog values as well as to set switches to ON/OFF/AUTO
```python
ip = '192.168.178.10'
# Check if there is a blnet at given address
print(test_blnet(ip))
# Easy to use high level interface
blnet = BLNET(ip, timeout=5)
print(blnet.turn_on(10))
print(blnet.fetch())
# Fetch the latest data via web interface
blnet = BLNETWeb(ip, timeout=5)
print(blnet.read_analog_values())
print(blnet.read_digital_values())
# For publishing values
#print(blnet.set_digital_value("10", 'AUS'))
#print(blnet.read_digital_values())
blnet = BLNETDirect(ip)
# Fetching the latest data from the backend
print(blnet.get_latest())
# Still inofficial because unexplicably failing often
print(blnet._get_data(1))
```
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 Distribution
PyBLNET-0.6.6.tar.gz
(10.6 kB
view hashes)
Built Distribution
Close
Hashes for PyBLNET-0.6.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb99b6a62734ae3cf57cfc447a815ac1c21e7ef7f41bbd5e3525b6e77360a4dc |
|
MD5 | 2b5081b74d279d3c257216d1a17eef72 |
|
BLAKE2b-256 | 46e9e3dd2d585dce633729c23b78633b83ebe3fe2d195ef9bc224a4a60c6534a |