Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ logs/
*.dump
iframe_figures/
/docker-compose-data
/flexmeasures-instance

# Ignore all forecasting artifacts (models, predictions, etc.)
flexmeasures/data/models/forecasting/**/artifacts/
Expand Down
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@ services:
- |
pip install --break-system-packages -r /usr/var/flexmeasures-instance/requirements.txt
flexmeasures db upgrade
flexmeasures add toy-account --name 'Docker Toy Account'
if [ ! -f /usr/var/flexmeasures-instance/.toy-account-created ]; then
flexmeasures add toy-account --name 'Docker Toy Account'
touch /usr/var/flexmeasures-instance/.toy-account-created
else
echo "Not creating toy account (already happened once). You can run 'flexmeasures add toy-account' any time."
fi
gunicorn --bind 0.0.0.0:5000 --worker-tmp-dir /dev/shm --workers 2 --threads 4 wsgi:application
worker:
build:
Expand Down
3 changes: 2 additions & 1 deletion documentation/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@
**********************
FlexMeasures Changelog
**********************
* Support fetching a schedule in a different unit still compatible to the sensor unit [see `PR #1993 <https://www.github.com/FlexMeasures/flexmeasures/pull/1993>`_]


v0.32.0 | April XX, 2026
============================

New features
-------------
* Support fetching a schedule in a different unit still compatible to the sensor unit [see `PR #1993 <https://www.github.com/FlexMeasures/flexmeasures/pull/1993>`_]
* Support saving state-of-charge schedules to sensors with ``"%"`` unit, using the ``soc-max`` flex-model field as the capacity for unit conversion [see `PR #1996 <https://www.github.com/FlexMeasures/flexmeasures/pull/1996>`_]

Infrastructure / Support
----------------------
* Stop creating new toy assets when restarting the docker-compose stack [see `PR #2018 <https://www.github.com/FlexMeasures/flexmeasures/pull/2018>`_]
* Make the test environment used by agents and by the test workflow identical [see `PR #1998 <https://www.github.com/FlexMeasures/flexmeasures/pull/1998>`_]


Expand Down
4 changes: 2 additions & 2 deletions documentation/dev/docker-compose.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ In case your configuration loads FlexMeasures plugins that have additional depen
Data
-------

The postgres database is a test database with toy data filled in when the flexmeasures container starts.
The postgres database is a test database with toy data filled in when the flexmeasures container starts for the first time.
You could also connect it to some other database (on your PC, in the cloud), by setting a different ``SQLALCHEMY_DATABASE_URI`` in the config.

The database within the ``dev-db`` postgres container resides in ``/var/lib/postgresql/data``, which we map the local path ``./docker-compose-data/dev-db`` iso as developer you can have persistence for your data across re-building the compose stack.
Expand All @@ -90,7 +90,7 @@ Seeing it work: Running the toy tutorial

A good way to see if these containers work well together, and maybe to inspire how to use them for your own purposes, is the :ref:`tut_toy_schedule`.

The `flexmeasures-server` container already creates the toy account when it starts (see its initial command). We'll now walk through the rest of the toy tutorial, with one twist at the end, when we create the battery schedule.
The `flexmeasures-server` container creates the toy account only the first time it starts (signalled by the ``flexmeasures-instance/.toy-account-created`` file, which is created after the first run). We'll now walk through the rest of the toy tutorial, with one twist at the end, when we create the battery schedule.

Let's go into the `flexmeasures-worker` container:

Expand Down