Skip to content

Commit

Permalink
HB-DIS-EP-42BW: send short/long key press after startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Jul 2, 2019
1 parent 9b2de03 commit 1034e50
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
23 changes: 23 additions & 0 deletions src/addon/firmware/rftypes/hb-dis-ep-42bw_e_v1_1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,29 @@
<value_map device_value="0x01" parameter_value="1"/>
</conversion>
</parameter>
<parameter id="POWERUP_ACTION">
<logical type="option">
<option id="POWERUP_OFF" default="true"/>
<option id="PRESS_SHORT"/>
<option id="PRESS_LONG"/>
</logical>
<physical type="integer" interface="config" list="0" index="52.0" size="0.2"/>
</parameter>
<parameter id="KEY_TRANSCEIVER">
<logical type="option">
<option id="1" default="true"/>
<option id="2"/>
<option id="3"/>
<option id="4"/>
<option id="5"/>
<option id="6"/>
<option id="7"/>
<option id="8"/>
<option id="9"/>
<option id="10"/>
</logical>
<physical type="integer" interface="config" list="0" index="52.2" size="0.4"/>
</parameter>
</paramset>
<channels>
<channel index="0" type="MAINTENANCE" ui_flags="internal" class="maintenance" count="1">
Expand Down
23 changes: 23 additions & 0 deletions src/addon/firmware/rftypes/hb-dis-ep-42bw_e_v1_1_mains.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,29 @@
<value_map device_value="0x01" parameter_value="1"/>
</conversion>
</parameter>
<parameter id="POWERUP_ACTION">
<logical type="option">
<option id="POWERUP_OFF" default="true"/>
<option id="PRESS_SHORT"/>
<option id="PRESS_LONG"/>
</logical>
<physical type="integer" interface="config" list="0" index="52.0" size="0.2"/>
</parameter>
<parameter id="KEY_TRANSCEIVER">
<logical type="option">
<option id="1" default="true"/>
<option id="2"/>
<option id="3"/>
<option id="4"/>
<option id="5"/>
<option id="6"/>
<option id="7"/>
<option id="8"/>
<option id="9"/>
<option id="10"/>
</logical>
<physical type="integer" interface="config" list="0" index="52.2" size="0.4"/>
</parameter>
</paramset>
<channels>
<channel index="0" type="MAINTENANCE" ui_flags="internal" class="maintenance" count="1">
Expand Down
28 changes: 27 additions & 1 deletion src/addon/www/config/easymodes/HB-DIS-EP-42BW_dev_master.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,33 @@ proc set_htmlParams {iface address pps pps_descr special_input_id peer_type} {
append HTML_PARAMS(separate_1) "<td>[getTextField $prn $param $ps($param)]&nbsp;s&nbsp;[getMinMaxValueDescr $param]&nbsp;[getHelpIcon $param $hlpBoxWidth $hlpBoxHeight]</td>"
append HTML_PARAMS(separate_1) "</tr>"

incr prn
set param POWERUP_ACTION
append HTML_PARAMS(separate_1) "<tr>"
array_clear options
set options(0) "\${stringTablePowerUpOFF}"
set options(1) "\${stringTableKeyPressShort}"
set options(2) "\${stringTableKeyPressLong}"
append HTML_PARAMS(separate_1) "<td>\${stringTableDimmerPowerUpAction}</td>"
append HTML_PARAMS(separate_1) "<td>[getComboBox options $prn '$param' $ps($param)]</td>"
incr prn
set param KEY_TRANSCEIVER
array_clear options
set options(0) "1"
set options(1) "2"
set options(2) "3"
set options(3) "4"
set options(4) "5"
set options(5) "6"
set options(6) "7"
set options(7) "8"
set options(8) "9"
set options(9) "10"
append HTML_PARAMS(separate_1) "<td>\${stringTableKeyTranseiverTitle}</td>"
append HTML_PARAMS(separate_1) "<td>[getComboBox options $prn '$param' $ps($param)]&nbsp;(1-10)&nbsp;[getHelpIcon $param $hlpBoxWidth $hlpBoxHeight]</td>"

append HTML_PARAMS(separate_1) "</tr>"

append HTML_PARAMS(separate_1) "</table>"

}
constructor
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ jQuery.extend(true,langJSON, {
"W&auml;hrend des Refreshs ist das gesamte Ger&auml;t mehrere Sekunden blockiert und kann keine Funktelegramme senden/empfangen.<br/><br/>"+
"Sollen z.B. mehrere Informationen nacheinander/aufgesplittet an das Ger&auml;t gesendet werden (z.B. wegen &Uuml;berschreitung der max. Telegramml&auml;nge"+
"je &Uuml;bertragung), empfiehlt sich eine Einstellung von <u>mind. 5 Sekunden</u>.</i>",
"KEY_TRANSCEIVER" :
"Kurzen oder langen Tastendruck nach dem Starten des Displays senden."
},
"en" :{
"HelpTitle" : "Help",

"HB_DISPLAY_REFRESH_WAIT_TIME" :
"Insert translation here...",
"KEY_TRANSCEIVER" :
"Send a short or long key press after startup"
}
});

0 comments on commit 1034e50

Please sign in to comment.