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

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"
}

Development

For development is recommended to use a venv.

$ python3 -m venv .
$ source bin/activate
$ python3 setup.py develop

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.2.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

volkszaehler-0.2.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: volkszaehler-0.2.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for volkszaehler-0.2.1.tar.gz
Algorithm Hash digest
SHA256 94b03b83da624a932de346b0cb73acdaf7fe00755fad6eac4fbe588e00eef08f
MD5 11f701b6e9c8cc3ca257d3c0cb95948e
BLAKE2b-256 a2fed1fea8f614c1056124045f8763560dccc33c9ba3b8bd10b65e84f489b76a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: volkszaehler-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for volkszaehler-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8efcb4201f09f4c330860cdc7dc3afc9c47915c2c3e65ac5518f7deda9bcf7b0
MD5 e4c43d922e71d34fcbbc4c213a63944a
BLAKE2b-256 9f153928034561ffb08249bdb9591492d4357ccbac090f39e9a7853b7784fdbf

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