-
-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed a bug where a missing
/www/api/methods/ccu/getversion.tcl
file
resulted in an incomplete JSON API interface. While CCU.getVersion was properly defined in methods.conf the corresponding getversion.tcl was missing. This fixes #1123
- Loading branch information
Showing
5 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...8-WebUI-Fix-MissingReportValueUsage.patch → ...u/0088-WebUI-Fix-MissingJSONMethods.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...ches/occu/0088-WebUI-Fix-MissingJSONMethods/occu/WebUI/www/api/methods/ccu/getversion.tcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## | ||
# CCU.getVersion | ||
# Liefert die Firmware-Version der HomeMatic Zentrale | ||
# | ||
# Parameter: <keine> | ||
# | ||
# Rückgabewert: [string] | ||
# Firmware-Version der HomeMatic Zentrale | ||
## | ||
|
||
proc read_var { filename varname} { | ||
set fd [open $filename r] | ||
set var "" | ||
if { $fd >=0 } { | ||
while { [gets $fd buf] >=0 } { | ||
if [regexp "^ *$varname *= *(.*)$" $buf dummy var] break | ||
} | ||
close $fd | ||
} | ||
return $var | ||
} | ||
|
||
proc get_version { } { | ||
return [read_var /VERSION VERSION] | ||
} | ||
|
||
jsonrpc_response [json_toString [get_version]] |
File renamed without changes.
File renamed without changes.
Empty file.