my-PV python library
Project description
Introduction
The my-pv-lib Python package provides easy useage of products from my-pv GmbH in python projects.
Installation
pip install my-pv-lib
Usage
The Python package basicaly provides the following functionalities:
- Device implementations for access device data and settings in own projects like for example home automation solutions.
- Connecting Devices to Cloud Services
- Additional Tools
Devices
A device will handle connections to a real device and provides access to settings and data in an easy to use way. All devices provide acces to data via so called channels. Which channels are provided is depending on the specific device and it's functionalities an is descriped in the device description. Channels can be read-only, write-only or read-and-write depending on the devices capabilities. Using a channel in a wrong direction will cause an exception.
Power Meter
Channels
- power: power measured in W
Constructor
Powermeter(Serialnumber, [Hostname or IP Address of the device])`
Examples
Getting latest power value by reading the power channel
device = Powermeter("1530638", None)
device.readallregisters()
power = device.getchannelvalue("power")
print("Channel power: " + str(power))
Contribute
Please report bug, feature requests or your own code to info@my-pv.com
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 my_pv_lib-1.2112.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf38d1f604f38d23703419778d34c3c721b6c61adbb62801390dde4e1996c92 |
|
MD5 | 07e9725abdb17f854535e5b94520c39e |
|
BLAKE2b-256 | 7431e01fa4331d83cd764206ec234bcdfd939289c67112e6d01fc26ca77c62e8 |