Skip to main content

Asynchronous Python client for the Omnik Inverter

Project description

Python - Omnik Inverter Client

GitHub Release Python Versions Project Stage Project Maintenance License

GitHub Activity Forks Stargazers Issues Contributors

Code Quality Maintainability GitHub Last Commit

Asynchronous Python client for the Omnik Inverter.

About

A python package with which you can read the data from your Omnik Inverter. Keep in mind that this repository uses webscraping, this is not a neat way of data processing but due to the lack of a local API this is the only option.

NOTE: In mid-2021, manufacturer Omnik was declared bankrupt. You can find more information about what your alternatives are here.

Supported models

  • Omnik2000TL2

Installation

pip install omnikinverter

Usage

import asyncio

from omnikinverter import OmnikInverter


async def main():
    """Show example on getting Omnik Inverter data."""
    async with OmnikInverter(host="example_host") as client:
        inverter = await client.inverter()
        print(inverter)


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

Data

You can read the following data with this package:

  • Serial Number
  • Inverter Model
  • Firmware Version
  • Current Power Production (W)
  • Day Energy Production (kWh)
  • Total Energy Production (kWh)

Setting up development environment

This Python project is fully managed using the Poetry dependency manager. But also relies on the use of NodeJS for certain checks during development.

You need at least:

Create a virtualenv and enter it:

python3 -m venv venv
source venv/bin/activate

To install all packages, including all development requirements:

poetry install
pre-commit install

As this repository uses the pre-commit framework, all changes are linted and tested with each commit. You can run all checks and tests manually, using the following command:

poetry run pre-commit run --all-files

To run just the Python tests:

poetry run pytest

License

MIT License

Copyright (c) 2021 Klaas Schoute

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

omnikinverter-0.2.2.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omnikinverter-0.2.2-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file omnikinverter-0.2.2.tar.gz.

File metadata

  • Download URL: omnikinverter-0.2.2.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.11 Linux/5.8.0-1039-azure

File hashes

Hashes for omnikinverter-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b2366f64c7f16d5132969c830844946d923345d9e1ca38dcd4e8dcf535aee36c
MD5 b6f2dd83cae84a171b23fa73519671cf
BLAKE2b-256 4f5c3a5f3c1954c46f0aef563888ab5c546c09c37162d030d11a63382bd3232d

See more details on using hashes here.

File details

Details for the file omnikinverter-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: omnikinverter-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.8.11 Linux/5.8.0-1039-azure

File hashes

Hashes for omnikinverter-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 357de29fb7848c6d4c8ecff447a88faf7baff9d0f5b5e7f361938e2da2b6ef5b
MD5 fb16094684d6e6f89f7315313f5f7b81
BLAKE2b-256 2a8023d6cf954839a44f0ea85964260f96377b52475f372fbf68fc1d657325bd

See more details on using hashes here.

Supported by

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