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

Uploaded Source

Built Distribution

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

my_pv_lib-1.2202.2-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

Details for the file my-pv-lib-1.2202.2.tar.gz.

File metadata

  • Download URL: my-pv-lib-1.2202.2.tar.gz
  • Upload date:
  • Size: 45.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for my-pv-lib-1.2202.2.tar.gz
Algorithm Hash digest
SHA256 fa3b7949c8004cbd1fe9e19326faa03a455b40c23f93f8f2c82e6abe2fb16188
MD5 34ed9416c3dc04645cf237a522400934
BLAKE2b-256 a0bec84813b966561696bb87eeeb5f6d35417ee4ff522c9b45bd2e156a6db427

See more details on using hashes here.

File details

Details for the file my_pv_lib-1.2202.2-py3-none-any.whl.

File metadata

  • Download URL: my_pv_lib-1.2202.2-py3-none-any.whl
  • Upload date:
  • Size: 60.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9

File hashes

Hashes for my_pv_lib-1.2202.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ccf3045dc716e87c3f4a7b075676414b01ec26f8592d6f75ddb5c863711ab833
MD5 05eac91199341d26beecb3203b4da078
BLAKE2b-256 8d13aa8386ab14d913fc9404895be84a55ef248b3b552224464d9734061579a0

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