Skip to content

OnFreund/pyrympro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status

Build Status

pyrympro

A python library to communitcate with Read Your Meter Pro.

Installation

You can install pyvolumio from PyPI:

pip3 install pyrympro

Python 3.7 and above are supported.

How to use

from pyrympro import RymPro
rym = RymPro()
# you can also pass in your own session
rym = RymPro(session)

# device_id can be anything you choose
await rym.login("<email>", "<password>", "<device_id>")
info = await rym.account_info()
meter_reads = await rym.last_read()
...

Testing PRs

Every pull request automatically publishes a test build as a GitHub pre-release. You can find the install command in the PR comment posted by the bot, or on the Releases page (pre-releases are tagged pr-{number}).

pip:

pip install https://github.com/OnFreund/pyrympro/releases/download/pr-42/pyrympro-0.0.0.dev42-py3-none-any.whl

Home Assistant — temporarily update the rympro integration's manifest.json to use the PEP 508 URL form so HA doesn't overwrite it on restart:

{
  "requirements": ["pyrympro @ https://github.com/OnFreund/pyrympro/releases/download/pr-42/pyrympro-0.0.0.dev42-py3-none-any.whl"]
}

Replace 42 with the actual PR number. Revert to the pinned version (e.g. pyrympro==0.0.9) after testing.

The install URL is stable for the lifetime of the PR — new commits to the same PR reuse the same tag and wheel name, so you don't need to update manifest.json if more commits are pushed.

The pre-release and comment are deleted automatically when the PR is merged or closed.

About

A Python package to community with Read Your Meter Pro

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages