Skip to main content

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 PDF
  • code_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mate3-0.3.0.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

mate3-0.3.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file mate3-0.3.0.tar.gz.

File metadata

  • Download URL: mate3-0.3.0.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.3 Darwin/18.7.0

File hashes

Hashes for mate3-0.3.0.tar.gz
Algorithm Hash digest
SHA256 bc2060a3680402e6a329510a532af9995b6614dd15a3ae44ac22c515fb7e46de
MD5 755183d108771bad657c9bbcb0c6b55c
BLAKE2b-256 b1e24b573427b11b29959424dbe9056da5f1ea289eea999b8ec8fc6c1dea1f0d

See more details on using hashes here.

File details

Details for the file mate3-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mate3-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 32.9 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

Hashes for mate3-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e36fb5a60ae72ab5d07c51bb239e67f01ceaddc16abcc8700e32395ee5604014
MD5 cce4c8c507083a03a7666cd9e5e99631
BLAKE2b-256 9921e1d4b2aba37758f939254b620d1c0708992a4d5a8f3f68f9556e3bf5fa5a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page