No project description provided
Project description
Outback Mate 3 Python Library
This library provides complete support for all outback devices (at least in theory, I don't own all the devices so cannot test it).
This data is accessed though the Mate3's Modbus interface.
Tested on Python 3.7. May work on 3.6.
Enabling the Modbus interface on your Mate 3
TBA. System -> opticsre -> Modbus?
Using the library
Example use:
from mate3 import mate3_connection
import time
host = '192.168.0.123'
port = 502
with mate3_connection(host, port) as client:
while True:
for block in client.all_blocks():
print(block)
time.sleep(3)
Using the command line interface (CLI)
A simple CLI is available which will read all available values from the Mate3:
$ mate3 -h
usage: mate3 [-h] [--host HOST] [--port PORT]
[--format {text,prettyjson,json}]
Read all available data from the Mate3 controller
optional arguments:
-h, --help show this help message and exit
--host HOST, -H HOST The host name or IP address of the Mate3
--port PORT, -p PORT The port number address of the Mate3
--format {text,prettyjson,json}, -f {text,prettyjson,json}
Output format
Example use:
$ mate3 --host 192.168.0.123
Various notes
The structures.py
and parsers.py
files are auto generated
from the CSV files located in registry_data/
. The CSV files are
generated though text extraction from the
axs_app_note.pdf
PDF provided by OutBack. This process is handled by two python files:
csv_generator.py
– Extract the CSV data from the PDFcode_generator.py
– Generate the Python code from the CSV data
Future work
- Support the writing of values back to the Mate3
- Web interface?
Credits
This is a heavily refactored version of basrijn's Outback_Mate3 library. Thank you basrijn!
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
Built Distribution
File details
Details for the file mate3-0.2.1.tar.gz
.
File metadata
- Download URL: mate3-0.2.1.tar.gz
- Upload date:
- Size: 30.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.3 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e4359bddb0831b23bf087fbbb05ad780662664437b7f7015401db80faf571b |
|
MD5 | eaad814576b7bc959d6db84854ef3996 |
|
BLAKE2b-256 | aada29f02a9e302aa3714c4485835f6e2b9d0e155536c1c1471d182a7562301f |
File details
Details for the file mate3-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: mate3-0.2.1-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.7.3 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e03d49b8560747e5524a95004daf865ad6521ac4d44f1d80e9ea879f4452b16 |
|
MD5 | 05e4eedfe4e6e97eec50fde81fb55667 |
|
BLAKE2b-256 | a671da35b758a5d0ebc0fab0b7913c2fcc8c6890b322832561a636a3667e27de |