Skip to content

Optim Shine is a tool designed to optimize energy storage systems (ESS) for efficient energy management using the FelicitySolar Shine API. It retrieves weather data and energy prices to define an optimization strategy.

License

Notifications You must be signed in to change notification settings

Xarium-Consulting/optimshine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Optim Shine

Optim Shine is a tool designed to optimize energy storage systems (ESS) for efficient energy management using the FelicitySolar Shine API. It retrieves weather data and energy prices to define an optimization strategy.

In the base strategy, each day the tool:

  1. Checks the weather.
  2. Judge if optimization is needed based on cloud level for plant location.
  3. Gets RCE energy prices.
  4. Sets charging strategy for energy storage systems.

Project Setup

  1. Clone the project
git clone git@github.com:Asiderr/optimshine.git
cd optimshine
  1. Create a python virtual environment
python -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Create your own .env configuration file based on tests/.testenv file.
  • Required Variables:
    • SHINE_USER: The username for accessing the SHINE system.
    • SHINE_PASSWORD: The password for the SHINE user.
  • Optional Variables:
    • SHINE_PLANT: The plant identifier for the SHINE system. Not required if you have only one plant.

Example usage

Use following command to run the program

python -m optimshine.optim_shine

You can also create your own linux service based on the following example: examples/optim-shine.service.example.

Testing

To test the project use a unittest module

python -m unittest discover

You can test single module using following command

python -m unittest -v tests.test_api_weather

Coverage

To check test coverage use

coverage run --source=optimshine -m unittest discover

License

This project is licensed under the GNU Lesser General Public License v3.0 or later (LGPL-3.0-or-later).

You are free to use, modify, and redistribute this software under the terms of the license. See the COPYING file or visit https://www.gnu.org/licenses/lgpl-3.0.html for full details.

About

Optim Shine is a tool designed to optimize energy storage systems (ESS) for efficient energy management using the FelicitySolar Shine API. It retrieves weather data and energy prices to define an optimization strategy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages