Skip to content

rubalo/BarryAPIClient

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Barry Energy API Client 👋

Version License: MIT Build status

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

Inspiration

Package setup @Frankkkkk

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

Packages

No packages published

Languages

  • Python 100.0%