Skip to main content

Connecting to and getting data from Barry Energy's API (http://barry.energy)

Project description

Welcome to Barry Energy API Client 👋

Version License: MIT

Simple python package to work with the API of Barry Energy. The API documentation can be found here.

Please be aware that this project is NOT offical.

Install

pip3 install barry-energy-api

Usage

Get your API Token

Get from mobile app under "Add-ons" -> "Barry API"

  1. Import the package
from barry_energy_api import PriceZone, BarryEnergyAPI
  1. Initialize the API
api = BarryEnergyAPI('api-token', 5, PriceZone.DK_EAST)
  1. Get aggregated consumption for the last 5 days as defined when API was initialized.
api.consumption()
  1. Get prices from the last two days.
Notice that methode has overloading
api.spotprices(2)

Author

👤 Emil Elkjær Nielsen

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2021 Emil Elkjær Nielsen
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

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

barry-energy-api-1.0.0.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file barry-energy-api-1.0.0.tar.gz.

File metadata

  • Download URL: barry-energy-api-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for barry-energy-api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 95dae4165660e6c08515a106020bc2ecdc99b45e62fe85c735a8a94023d93d60
MD5 0c8ca0adfb814da6bc569f5198689fc9
BLAKE2b-256 a9df082a98600da8c9e6946b7bc14308c9092b005893cb5ebf11f160e7838f17

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