The electricity_usage package provides a scheduler which will kick off processes only when there is a surplus in local energy production.
Project description
Welcome to electricity_usage
The electricity_usage package provides a scheduler which will kick off processes only when there is a surplus in local energy production. For more information see the usage documentation.
Installation
The Python package electricity_usage
can be installed by cloning the git repository and installing it using pip install.
pip install electricity_usage
To fully utilize this package, you also need a subscription to Electricity Maps, available here <https://api-portal.electricitymaps.com/>
.
Upon subscription, you'll receive an authentication token. This token is used to access additional electricity production and consumption data for specific locations from Electricity Maps.
We incorporate the token using an optional parameter --em_auth_token
, in our start
command.
Please note that the majority of locations do not require an authentication token.
More information about Electricity Maps can be found in :ref:api-ref
.
Development installation
If you want to contribute to the development of electricity_usage
, we recommend
the following editable installation from this repository:
git clone https://github.com/weyandtim/electricity_usage
cd electricity_usage
python -m pip install --editable .[tests]
Having done so, the test suite can be run using pytest
:
python -m pytest
Contributing
This project was done as a software practical by Tim Weyand and Nemo Glade, under supervision of Dominic Kempf.
If you wish to contribute to electricity_usage open an issue in the issue tracker of the GitHub project.
Acknowledgments
This repository was set up using the SSC Cookiecutter for Python Packages. The project relies on data from Electricity Maps.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for electricity_usage-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47e019c03438a7c15b72d305cd30b3a2c93ae21abf4d212b6cab1572e133c11d |
|
MD5 | 894243d6242f0bff57c6543e46a9bba7 |
|
BLAKE2b-256 | 3c89d338046fcee92a9f8b17ffe81f374c13e96e5d7a347e6ff363b8868cd7c3 |