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.2.1.tar.gz (30.0 kB view hashes)

Uploaded Source

Built Distribution

mate3-0.2.1-py3-none-any.whl (32.5 kB view hashes)

Uploaded Python 3

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