A library and CLI-tool to fetch the data from a Kostal Piko inverter
Project description
pykostalpiko
A simple python library to interface with a Kostal Piko Solar inverter
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
About The Project
This project aims to support the same functionallity as the web interface of the Piko inverter and provide a friendly way to access it using python.
Usage
Installation
pip install pykostalpiko
Examples
Print the current values of the inverter
import asyncio
from aiohttp import ClientSession
from pykostalpiko import Piko
from pykostalpiko.dxs.current_values import LIST
async def asnyc_main():
async with ClientSession() as session:
async with Piko(session, "<ip-address>") as piko:
print(await piko.async_fetch_multiple(LIST))
asyncio.run(asnyc_main())
Change the name of the inverter
import asyncio
from aiohttp import ClientSession
from pykostalpiko import Piko
from pykostalpiko.dxs.inverter import NAME
async def asnyc_main():
async with ClientSession() as session:
async with Piko(session, "<ip-address>", "username", "password") as piko:
await piko.async_set_descriptors([(NAME, "<new-name>")])
asyncio.run(asnyc_main())
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Florian Schmidt - floriansch7843@gmail.com
Project Link: https://github.com/Florian7843/pykostalpiko
Acknowledgments
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
Hashes for pykostalpiko-1.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9d15ac9d07a57dd6f14348ad1f9ccc80d40e7f63ce69ef419792bf42d9281b8 |
|
MD5 | c34fa927d98b4cb2f990b0ffab8a6242 |
|
BLAKE2b-256 | aa9210b5bab77fe42b9f7767feb04b3d60b562ea954c90dfb78ff1aab16eac01 |