Skip to main content

Python Wrapper for interacting with the Volkszahler API.

Project description

Python API for interacting with Volkszaehler. At the moment only the consumption of data is supported. Sorry, uploading is not possible.

This module is not official, developed, supported or endorsed by Volkzaehler.

Installation

The module is available from the Python Package Index.

$ pip3 install volkszaehler

On a Fedora-based system or a CentOS/RHEL host with EPEL.

$ sudo dnf -y install python3-volkszaehler

For Nix or NixOS users is a package available. Keep in mind that the lastest releases might only be present in the unstable channel.

$ nix-env -iA nixos.python39Packages.volkszaehler

Usage

The file example.py contains an example about how to use this module.

Basically it’s just a wrapper to get the JSON data from a given UUID which represents the device.

$ http https://demo.volkszaehler.org/middleware.php/data/57acbef0-88a9-11e4-934f-6b0f9ecd95a8.json
[...]
{
    "data": {
        "average": 0.01,
        "consumption": 38.099,
        "from": 1584390593336,
        "max": [
            1597701600000,
            0.01
        ],
        "min": [
            1597701600000,
            0.01
        ],
        "rows": 3,
        "to": 1598106085887,
        "tuples": [
            [
                1597701600000,
                0.01,
                1
            ],
            [
                1598106085887,
                0.01,
                1
            ]
        ],
        "uuid": "57acbef0-88a9-11e4-934f-6b0f9ecd95a8"
    },
    "version": "0.3"
}

License

python-volkszaehler is licensed under MIT, for more details check LICENSE.

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

volkszaehler-0.3.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

volkszaehler-0.3.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file volkszaehler-0.3.0.tar.gz.

File metadata

  • Download URL: volkszaehler-0.3.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for volkszaehler-0.3.0.tar.gz
Algorithm Hash digest
SHA256 7881cbe28e8fc521d19e1753f1757662c579ec1d9ceb1412b8e2a6d155eb6f43
MD5 1d08aa70cbecee80dc288ecaa20e0fe9
BLAKE2b-256 a82d7bceb809408c91762434cbb5dbc64d90863453af06a22310eae616f00f4c

See more details on using hashes here.

File details

Details for the file volkszaehler-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: volkszaehler-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for volkszaehler-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a697eb568a352fdcbb3df4a52f6383f52539c9ce61cae6755bbc60a4c581fa5
MD5 39351aa3fa878d9576385bb1e3512f09
BLAKE2b-256 f9cbb9b66208912fe62b3659022d409f43783db4824d5a82860994d77535ca80

See more details on using hashes here.

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