Skip to content

Commit d8d4cb4

Browse files
authored
Versie 2025.9.1.rc3 (#377)
- Fixed error with postgresql da-database - Fixed optimalisation-error on amd64 machines
1 parent fdafea2 commit d8d4cb4

File tree

7 files changed

+22
-8
lines changed

7 files changed

+22
-8
lines changed

dao/Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get upgrade -y
1212

1313
#handige tools
1414
RUN apt-get install -y pkgconf nano file mariadb-client inotify-tools procps gunicorn libmariadb3 libmariadb-dev
15-
RUN apt-get install -y postgresql-client sqlite3 gcc libjpeg-dev
15+
RUN apt-get install -y postgresql-client sqlite3 gcc libjpeg-dev libffi-dev
1616

1717
# Copy software for add-on
1818
RUN mkdir /root/dao
@@ -28,7 +28,11 @@ ENV DAO_VERSION=$BUILD_VERSION
2828
RUN printf '__version__ ="%s"\n' "$DAO_VERSION" > /root/dao/prog/version.py
2929

3030
#benodigde libraries voor mip
31-
RUN apt-get install -y wget libnauty2-dev coinor-libcgl-dev libcholmod3
31+
RUN apt-get install -y wget libnauty-dev coinor-libcgl-dev
32+
33+
RUN if [ "${BUILD_ARCH}" = "aarch64" ]; then \
34+
apt-get install -y libcholmod3 \
35+
; fi
3236

3337
COPY miplib.tar.gz /tmp/
3438
WORKDIR /root/dao/prog

dao/build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
build_from:
33
aarch64: ghcr.io/hassio-addons/debian-base/aarch64:7.8.3
4-
amd64: ghcr.io/hassio-addons/debian-base/amd64:7.8.3
4+
amd64: ghcr.io/hassio-addons/ubuntu-base/amd64:10.0.7
5+
56

dao/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: 刀 Day Ahead Optimizer
3-
version: 2025.9.0
3+
version: 2025.9.1
44
slug: day_ahead_opt
55
description: Home Assistant Community Add-ons for day ahead optimizations
66
url: https://github.com/corneel27/day-ahead

dao/prog/db_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ def get_column_data(
471471
"""
472472
variabel_table = Table("variabel", self.metadata, autoload_with=self.engine)
473473
values_table = Table(tablename, self.metadata, autoload_with=self.engine)
474+
hour_column = self.hour_start(values_table.c.time).label("uur")
474475
if agg_func is None:
475476
time_column = values_table.c.time.label("time")
476477
agg_column = values_table.c.value.label("value")
@@ -481,7 +482,7 @@ def get_column_data(
481482
time_column = func.min(values_table.c.time).label("time")
482483
agg_column = func.sum(values_table.c.value).label("value")
483484
query = select(
484-
self.hour_start(values_table.c.time).label("uur"),
485+
hour_column,
485486
time_column,
486487
agg_column,
487488
).where(
@@ -495,7 +496,7 @@ def get_column_data(
495496
query = query.group_by("uur")
496497
if end is not None:
497498
query = query.where(values_table.c.time < self.unix_timestamp(end))
498-
query = query.order_by(values_table.c.time)
499+
query = query.order_by("uur")
499500

500501
with self.engine.connect() as connection:
501502
result = connection.execute(query)

dao/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ numpy~=2.0.2
66
mysql~=0.0.3
77
mysql-connector-python~=9.4.0
88
hassapi~=0.2.1
9-
mip~=1.16rc0
9+
mip
1010
python-dateutil~=2.9.0.post0
1111
nordpool~=0.5.0
1212
entsoe-py~=0.7.4

release-testing/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog 刀 DAO
22
# Day Ahead Optimizer
3+
# 2025.9.1.rc3
4+
- Fixed error with postgresql da-database
5+
- Fixed optimalisation-error on amd64 machines
6+
7+
Known issues:
8+
- boiler module does not calculate well
9+
- saving-reports generates "internal server error"
10+
311
# 2025.9.1.rc2
412

513
- Fixed error when saving prognoses in the exact 15min time

release-testing/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: 刀 Day Ahead Optimizer (TESTING)
3-
version: 2025.9.1.rc2
3+
version: 2025.9.1.rc3
44
stage: experimental
55
slug: day_ahead_opt-testing
66
description: Beta version of DAO. Use only for testing!

0 commit comments

Comments
 (0)