Skip to content

Commit 67afcba

Browse files
Add Internal Modules (Using Hardcoded List)
1 parent 775ff90 commit 67afcba

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

docs/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ table.openknxTitleTable .isPart {
7070
color: #449841;
7171
text-align: center;
7272
}
73+
table.openknxTitleTable .isInternalModule {
74+
color: #666;
75+
text-align: center;
76+
}
7377
/* TODO remove td.left */
7478
table.openknxTitleTable td.left {
7579
text-align: left;

scripts/update_releases.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,26 @@ def process_releases(releases_data):
176176
def generate_oam_data(oam_dependencies, oam_hardware, oam_details):
177177
logging.debug(f"OAM Hardware {oam_hardware}")
178178

179+
# TODO find better place to define, as long not extracted from OAMs
180+
internal_modules = {
181+
"GW-REG1-Dali" : ["DaliModule"],
182+
"OAM-Aircondition" : ["AirconditionModule"],
183+
"OAM-BinaryClock" : ["BinaryClockModule"],
184+
"OAM-BinaryInput" : ["BinaryInputModule"],
185+
"OAM-ElectricDoorDrive": ["DoorControllerModule"],
186+
"OAM-EnoceanGateway_V2": ["EnOcean"],
187+
"OAM-TestApp" : ["DummyModule"],
188+
"OAM-WeatherWN90LP" : ["WN90LPModule"],
189+
"SOM-UP" : ["SoundModule"],
190+
"TAS-UP-8xLJ" : ["HardwareModule"],
191+
}
192+
179193
oam_data = {}
180194
for oam, dependencies in oam_dependencies.items():
181195
oam_data[oam] = {
182196
"description": oam_details.get(oam, {}).get("description", "(keine Kurzbeschreibung)"),
183197
"modules": dependencies,
198+
"modules_internal": internal_modules.get(oam, []),
184199
"devices": [], # set empty list for OAMs without releases # TODO check cleanup of data-collection
185200
}
186201
if oam not in oam_details:

templates/dependencies_template.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<tbody>
7070
{% for oamName, oam_details in oam_data.items() %}
7171
{% set oamModules = oam_details['modules'] %}
72+
{%- set oamInternalModules = oam_details['modules_internal'] %}
7273
{% set oamDevices = oam_details['devices'] %}
7374
{% set oamDescription = oam_details['description'] %}
7475
{% set oamUrl = "https://github.com/OpenKNX/" ~ oamName %}
@@ -81,7 +82,10 @@
8182
{% endfor %}
8283
<td class="left before-new-cols" data-ofm="*special*">
8384
{%- for module in modules_sorted | selectattr('1', 'equalto', 1) | map(attribute='0') | select('in', oamModules) %}
84-
<span data-ofm="{{module}}"><span class="isPart">&#9632;</span>&nbsp;<a href="https://github.com/OpenKNX/{{ module }}">{{ module }}</a></span>{% if not loop.last %}, {% endif %}
85+
<span data-ofm="{{module}}"><span class="isPart">&#9632;</span>&nbsp;<a href="https://github.com/OpenKNX/{{ module }}">{{ module }}</a></span>{% if not loop.last or ((oamInternalModules | length) > 0) %}, {% endif %}
86+
{%- endfor %}
87+
{%- for module in oamInternalModules %}
88+
<span data-ofm="" title="Internes Modul"><span class="isInternalModule">&#9632;</span>&nbsp;{{ module }}</span>{% if not loop.last %}, {% endif %}
8589
{%- endfor %}
8690
</td>
8791
{% endif %}

0 commit comments

Comments
 (0)