Skip to content

Commit

Permalink
- update to CCU3 3.38.8 version
Browse files Browse the repository at this point in the history
- some code cleanup (WebUI)
  • Loading branch information
Wolfgang Willinghöfer committed Sep 2, 2018
1 parent c879c35 commit 5aa2ad8
Show file tree
Hide file tree
Showing 45 changed files with 163 additions and 4,702 deletions.
Binary file modified HMserver/opt/HMServer/HMIPServer.jar
Binary file not shown.
Binary file modified HMserver/opt/HMServer/HMServer.jar
Binary file not shown.
5 changes: 3 additions & 2 deletions WebUI/www/api/methods/user/restartlighttpd.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#
# Rückgabewert: true

exec -- /usr/bin/nohup /etc/init.d/S50lighttpd restart >/dev/null

exec /etc/init.d/S50lighttpd restart
#exec /etc/init.d/S50lighttpd restart

jsonrpc_response true
jsonrpc_response true
6 changes: 3 additions & 3 deletions WebUI/www/config/cp_maintenance.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -561,9 +561,9 @@ proc action_put_page {} {
}
}

table_data {align="center"} {class="CLASS20904"} {
# puts "\${lblTDReGaVersionHelp}"
division {Class="StdTableBtnHelp"} {puts "<img id='showReGaVersionHelp' src='/ise/img/help.png'>"}
table_data {align="left"} {class="CLASS20904"} {
# division {Class="StdTableBtnHelp"} {puts "<img id='showReGaVersionHelp' src='/ise/img/help.png'>"}
division {Class="StdTableBtnHelp"} {puts "\${lblTDReGaVersionHelp}"}
}
}

Expand Down
19 changes: 14 additions & 5 deletions WebUI/www/config/cp_security.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,15 @@ proc action_backup_restore_go {} {
# check the entered key against our current system key
if { [catch {exec crypttool -v -t 3 -k "$key"}]} {
#Der eingegebene System-Sicherheitsschl&uuml;ssel entspricht nicht dem aktuellen System-Sicherheitsschl&uuml;ssel der Zentrale.
cgi_javascript {puts "MessageBox.close();"}
put_message "\${dialogSettingsSecurityMessageSysBackupSecurityErrorTitle}" "\${dialogSettingsSecurityMessageSysBackupSecurityError1Content}"
return
}
}
if { $config_has_user_key } {
if { "$stored_signature" != "[exec crypttool -t 3 -k "$key" -s <usr_local.tar.gz]" } {
# Der eingegebene System-Sicherheitsschl&uuml;ssel entspricht nicht dem zur Backup-Datei geh&ouml;renden System-Sicherheitsschl&uuml;ssel.
cgi_javascript {puts "MessageBox.close();"}
put_message "\${dialogSettingsSecurityMessageSysBackupSecurityErrorTitle}" "\${dialogSettingsSecurityMessageSysBackupSecurityError2Content}"
return
}
Expand All @@ -515,7 +517,7 @@ proc action_backup_restore_go {} {
# set msg "Das Einspielen des Backups ist nicht m&ouml;glich. Das vorliegende Backup basiert auf der Zentralen-Firmware $config_version.<br>\n"
# append msg "Diese Firmware ist aktueller, als die derzeit auf der Zentrale installierte Version ($system_version).<br>\n"
# append msg "F&uuml;hren Sie zun&auml;chst ein Update der Zentralen-Firmware durch und starten Sie dann das Einspielen des Systembackups erneut."

cgi_javascript {puts "MessageBox.close();"}
put_message "\${dialogSettingsSecurityMessageSysBackupFWUpdateNecessaryTitle}" "\${dialogSettingsSecurityMessageSysBackupFWUpdateNecessaryContentA} $config_version \${dialogSettingsSecurityMessageSysBackupFWUpdateNecessaryContentB} ($system_version) \${dialogSettingsSecurityMessageSysBackupFWUpdateNecessaryContentC}"
return
}
Expand Down Expand Up @@ -713,8 +715,16 @@ proc action_backup_restore_go {} {
cd /
}

# Check if the backup can be used without problems
if {[file exists /etc/config/crRFD]} {

set source_version [read_version "/tmp/firmware_version"]

set source_version [split $source_version .]
set source_major [lindex $source_version 0]
set source_minor [lindex $source_version 1]
set source_patch [lindex $source_version 2]

# Check if a backup with HmIP support can be used without problems - A CCU with a version < 2.17.14 had no HmIP support. Therefore we don't check such backups
if {($source_major >= 3) || (($source_major == 2) && ($source_minor > 17)) || (($source_major == 2) && ($source_minor == 17) && ($source_patch >= 14))} {
set checkBackupState [checkUserBackupValidility $migration_mode]
if {$checkBackupState != 10} {
# It's not possible to use the backup
Expand All @@ -724,9 +734,8 @@ proc action_backup_restore_go {} {
cgi_javascript {puts "homematic('User.restartHmIPServer');"}
put_message "\${dialogSettingsSecurityMessageSysBackupErrorTitle}" "\${dialogSettingsSecurityMessageSysBackupErrorContent} [getBackupErrorMessage $checkBackupState]"
}

cgi_javascript {puts "MessageBox.close();"}
}
cgi_javascript {puts "MessageBox.close();"}

if { "false" == $backuperror } {
exec mount -o remount,ro /usr/local
Expand Down
2 changes: 1 addition & 1 deletion WebUI/www/config/cp_software.cgi
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ proc action_put_page {} {
if { ! [file executable $s] } continue
array set sw_info ""
get_info $s sw_info
if { ![info exists sw_info(Name) ] } continue
if { ![info exists sw_info(Name)] } continue
table_row {class="CLASS21407"} {
table_data {class="CLASS21408"} {
puts "$sw_info(Name)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,12 @@ proc set_htmlParams {iface address pps pps_descr special_input_id peer_type} {
# RAMPOFF_TIME
append HTML_PARAMS(separate_$prn) "[getTimeSelector RAMPOFF_TIME_FACTOR_DESCR ps PROFILE_$prn rampOnOff $prn $special_input_id SHORT_RAMPOFF_TIME TIMEBASE_LONG]"

set param SHORT_OUTPUT_BEHAVIOUR
if {[info exists ps($param)] == 1} {
incr pref
append HTML_PARAMS(separate_$prn) [getSelectColorElement PROFILE_$prn ${special_input_id} $param]
}

if {$longKeypressAvailable} {
incr pref
append HTML_PARAMS(separate_$prn) "<td colspan =\"2\"><hr>\${description_longkey}</td>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,14 @@ set PROFILE_2(UI_HINT) 2

set PROFILE_3(SHORT_COND_VALUE_HI) 150
set PROFILE_3(SHORT_COND_VALUE_LO) 50

set PROFILE_3(SHORT_CT_OFF) 0
set PROFILE_3(SHORT_CT_OFFDELAY) 0
set PROFILE_3(SHORT_CT_ON) 2
set PROFILE_3(SHORT_CT_ONDELAY) 2

set PROFILE_3(SHORT_JT_OFF) 1
set PROFILE_3(SHORT_JT_OFFDELAY) 3
set PROFILE_3(SHORT_JT_ON) 4
set PROFILE_3(SHORT_JT_ONDELAY) 6

set PROFILE_3(SHORT_CT_OFF) 1
set PROFILE_3(SHORT_CT_OFFDELAY) 1
set PROFILE_3(SHORT_CT_ON) 1
set PROFILE_3(SHORT_CT_ONDELAY) 2
set PROFILE_3(SHORT_JT_OFF) 3
set PROFILE_3(SHORT_JT_OFFDELAY) 3
set PROFILE_3(SHORT_JT_ON) 3
set PROFILE_3(SHORT_JT_ONDELAY) 6
set PROFILE_3(SHORT_OFFDELAY_TIME_BASE) {0 range 0 - 7}
set PROFILE_3(SHORT_OFFDELAY_TIME_FACTOR) {0 range 0 - 31}
set PROFILE_3(SHORT_OFF_TIME_BASE) {7 range 0 - 7}
Expand Down

This file was deleted.

21 changes: 0 additions & 21 deletions WebUI/www/config/easymodes/hmip/SHUTTER_CONTACT_TRANSCEIVER.tcl

This file was deleted.

21 changes: 0 additions & 21 deletions WebUI/www/config/easymodes/hmip/hmip-asir_2_master.tcl

This file was deleted.

22 changes: 0 additions & 22 deletions WebUI/www/config/easymodes/hmip/hmip-asir_3_master.tcl

This file was deleted.

67 changes: 0 additions & 67 deletions WebUI/www/config/easymodes/hmip/hmip-krc4_1_master.tcl

This file was deleted.

67 changes: 0 additions & 67 deletions WebUI/www/config/easymodes/hmip/hmip-krc4_2_master.tcl

This file was deleted.

Loading

0 comments on commit 5aa2ad8

Please sign in to comment.