Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

my-pv-lib-1.2202.2.tar.gz (45.4 kB view hashes)

Uploaded Source

Built Distribution

my_pv_lib-1.2202.2-py3-none-any.whl (60.4 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