File tree Expand file tree Collapse file tree 7 files changed +22
-8
lines changed
Expand file tree Collapse file tree 7 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ RUN apt-get upgrade -y
1212
1313# handige tools
1414RUN 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
1818RUN mkdir /root/dao
@@ -28,7 +28,11 @@ ENV DAO_VERSION=$BUILD_VERSION
2828RUN 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
3337COPY miplib.tar.gz /tmp/
3438WORKDIR /root/dao/prog
Original file line number Diff line number Diff line change 11---
22build_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
Original file line number Diff line number Diff line change 11---
22name : 刀 Day Ahead Optimizer
3- version : 2025.9.0
3+ version : 2025.9.1
44slug : day_ahead_opt
55description : Home Assistant Community Add-ons for day ahead optimizations
66url : https://github.com/corneel27/day-ahead
Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ numpy~=2.0.2
66mysql ~= 0.0.3
77mysql-connector-python ~= 9.4.0
88hassapi ~= 0.2.1
9- mip ~= 1.16rc0
9+ mip
1010python-dateutil ~= 2.9.0.post0
1111nordpool ~= 0.5.0
1212entsoe-py ~= 0.7.4
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11---
22name : 刀 Day Ahead Optimizer (TESTING)
3- version : 2025.9.1.rc2
3+ version : 2025.9.1.rc3
44stage : experimental
55slug : day_ahead_opt-testing
66description : Beta version of DAO. Use only for testing!
You can’t perform that action at this time.
0 commit comments