Skip to main content

A python module to post meter readings to Mindergas

Project description

pymindergas

A module to post meter readings to MinderGas.nl.

Installation

$ pip3 install pymindergas

Usage

In order to be able to post readings, you first need to obtain an API token.

The postReading() method requires an authentication token (String) and the meter reading (Float). The reading date can be any valid date (String), but is optional.

Parameter Required Description
token yes String
reading yes Float
date no Any date string that can be parsed. If not passed, uses today.

Code sample:

from datetime import date
from datetime import timedelta
from pymindergas import Mindergas

token = "supersecretstring"
reading = 1234.567
yesterday = date.today() - timedelta(days = 1)

# Post reading as yesterday's
success = Mindergas().postReading(token, reading, yesterday.strftime('%y-%m-%d'))
print(success)

# Post reading as today's
success = Mindergas().postReading(token, reading)
print(success)

Disclaimer

This is an open source project and does not have any affiliation with MinderGas.nl.

All product names, trademarks and registered trademarks in this repository are property of their respective owners. All images in this repository are used by the project for identification purposes only.

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

pymindergas-0.1.6.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

pymindergas-0.1.6-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pymindergas-0.1.6.tar.gz.

File metadata

  • Download URL: pymindergas-0.1.6.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for pymindergas-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c1b55dc7d56ebdf90de1c0de5271610ed82e23f690359afabf374ebcbbf0d37e
MD5 e0bf82d89bc8620e1e42a7dbd40dbf0c
BLAKE2b-256 bc867132fb384636cdd8fb4b263ab5c67d18515198bb5549b65109ba92f94c50

See more details on using hashes here.

File details

Details for the file pymindergas-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pymindergas-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for pymindergas-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8c7ba83b6ce5961a438bf46c7bf9238ede24b740f7ac587e01c69b575fe9dc58
MD5 436db8f606e1b71b9e78932e33ae45a5
BLAKE2b-256 d6105c0dae2b535503cbc72fc62c1deb0e2873b25c1b70e71a2f95641dbfd725

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