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

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.

$ curl http://demo.volkszaehler.org/middleware.php/data/57acbef0-88a9-11e4-934f-6b0f9ecd95a8.json
{
   "version":"0.3",
   "data":{
      "tuples":[
         [
            1521193871692,
            0.18,
            1
         ]
      ],
      "uuid":"57acbef0-88a9-11e4-934f-6b0f9ecd95a8",
      "from":1521193871682,
      "to":1521193871692,
      "min":[
         1521193871692,
         0.18
      ],
      "max":[
         1521193871692,
         0.18
      ],
      "average":0.18,
      "consumption":0,
      "rows":2
   }
}

Development

For development is recommended to use a venv.

$ python3.6 -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.1.2.tar.gz (3.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: volkszaehler-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for volkszaehler-0.1.2.tar.gz
Algorithm Hash digest
SHA256 14bcaf9c2bffce9009b2833feca85aa26c44f17036a1ebb5bd4d2718ffba8491
MD5 12522399837b1a9a6d51060229a49790
BLAKE2b-256 d76fd76b4ea96888ffa994778885e8f732e3c603b20d3b034388e426173179d6

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