Expose output format selectors in editor

This commit is contained in:
Rene De Ren
2026-03-12 16:39:25 +01:00
parent 0570df208c
commit 22927d24c4

View File

@@ -9,6 +9,8 @@ RED.nodes.registerType('diffuser', {
i_diff_density: { value: 2.4, required: true }, i_diff_density: { value: 2.4, required: true },
i_m_water: { value: 0, required: true }, i_m_water: { value: 0, required: true },
alfaf: { value: 0.7, required: true }, alfaf: { value: 0.7, required: true },
processOutputFormat: { value: 'process' },
dbaseOutputFormat: { value: 'influxdb' },
enableLog: { value: false }, enableLog: { value: false },
logLevel: { value: 'error' }, logLevel: { value: 'error' },
}, },
@@ -48,6 +50,23 @@ RED.nodes.registerType('diffuser', {
<label for="node-input-alfaf"><i class="fa fa-flask"></i> Alfa Factor</label> <label for="node-input-alfaf"><i class="fa fa-flask"></i> Alfa Factor</label>
<input type="number" id="node-input-alfaf" step="0.01" min="0"> <input type="number" id="node-input-alfaf" step="0.01" min="0">
</div> </div>
<h3>Output Formats</h3>
<div class="form-row">
<label for="node-input-processOutputFormat"><i class="fa fa-random"></i> Process Output</label>
<select id="node-input-processOutputFormat" style="width:60%;">
<option value="process">process</option>
<option value="json">json</option>
<option value="csv">csv</option>
</select>
</div>
<div class="form-row">
<label for="node-input-dbaseOutputFormat"><i class="fa fa-database"></i> Database Output</label>
<select id="node-input-dbaseOutputFormat" style="width:60%;">
<option value="influxdb">influxdb</option>
<option value="json">json</option>
<option value="csv">csv</option>
</select>
</div>
<div class="form-row"> <div class="form-row">
<label for="node-input-enableLog"><i class="fa fa-book"></i> Enable Log</label> <label for="node-input-enableLog"><i class="fa fa-book"></i> Enable Log</label>
<input type="checkbox" id="node-input-enableLog" style="width: auto;"> <input type="checkbox" id="node-input-enableLog" style="width: auto;">