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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for mate3-0.2.1.tar.gz
Algorithm Hash digest
SHA256 55e4359bddb0831b23bf087fbbb05ad780662664437b7f7015401db80faf571b
MD5 eaad814576b7bc959d6db84854ef3996
BLAKE2b-256 aada29f02a9e302aa3714c4485835f6e2b9d0e155536c1c1471d182a7562301f

See more details on using hashes here.

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

Hashes for mate3-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e03d49b8560747e5524a95004daf865ad6521ac4d44f1d80e9ea879f4452b16
MD5 05e4eedfe4e6e97eec50fde81fb55667
BLAKE2b-256 a671da35b758a5d0ebc0fab0b7913c2fcc8c6890b322832561a636a3667e27de

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