get logFile show all entrys, englisch commandref updated

This commit is contained in:
Marko Oldenburg 2016-12-18 13:21:09 +01:00
parent e424250cc1
commit e6db747785
2 changed files with 37 additions and 18 deletions

View File

@ -46,7 +46,7 @@ use JSON;
use HttpUtils; use HttpUtils;
my $version = "0.3.40"; my $version = "0.3.41";
@ -547,21 +547,17 @@ sub NUKIBridge_getLogfile($) {
Log3 $name, 4, "NUKIBridge ($name) - Tabelle mit Logdaten wird aufgebaut"; Log3 $name, 4, "NUKIBridge ($name) - Tabelle mit Logdaten wird aufgebaut";
my $ret = '<html><table width=100%><tr><td>'; my $ret = '<html><table width=100%><tr><td>';
$ret .= '<table class="block wide">'; $ret .= '<table class="block wide">';
$ret .= '<tr class="odd">';
$ret .= "<td><b>Timestamp</b></td>";
$ret .= "<td> </td>";
$ret .= "<td><b>Type</b></td>";
$ret .= '</tr>';
foreach my $logs (@{$decode_json}) { foreach my $logs (@{$decode_json}) {
$ret .= '<tr class="odd">';
foreach my $d (reverse sort keys %{$logs}) {
$ret .= "<td><b>$d:</b> </td>";
$ret .= "<td>$logs->{$d}</td>";
$ret .= '<td> </td>';
}
$ret .= "<td>$logs->{timestamp}</td>";
$ret .= "<td> </td>";
$ret .= "<td>$logs->{type}</td>";
$ret .= '</tr>'; $ret .= '</tr>';
} }
@ -670,7 +666,7 @@ sub NUKIBridge_CallBlocking($$$) {
=item summary_DE Modul zur Steuerung des Nuki Smartlock über die Nuki Bridge. =item summary_DE Modul zur Steuerung des Nuki Smartlock über die Nuki Bridge.
=begin html =begin html
timestamp
<a name="NUKIBridge"></a> <a name="NUKIBridge"></a>
<h3>NUKIBridge</h3> <h3>NUKIBridge</h3>
<ul> <ul>
@ -699,6 +695,15 @@ sub NUKIBridge_CallBlocking($$$) {
<li>0_name - Name of the first found Nuki Smartlock</li> <li>0_name - Name of the first found Nuki Smartlock</li>
<li>smartlockCount - number of all found Smartlocks</li> <li>smartlockCount - number of all found Smartlocks</li>
<li>bridgeAPI - API Version of bridge</li> <li>bridgeAPI - API Version of bridge</li>
<li>bridgeType - Hardware bridge / Software bridge</li>
<li>currentTime - Current timestamp</li>
<li>firmwareVersion - Version of the bridge firmware</li>
<li>hardwareId - Hardware ID</li>
<li>lastError - Last connected error</li>
<li>serverConnected - Flag indicating whether or not the bridge is connected to the Nuki server</li>
<li>serverId - Server ID</li>
<li>uptime - Uptime of the bridge in seconds</li>
<li>wifiFirmwareVersion- Version of the WiFi modules firmware</li>
<br> <br>
The preceding number is continuous, starts with 0 und returns the properties of <b>one</b> Smartlock. The preceding number is continuous, starts with 0 und returns the properties of <b>one</b> Smartlock.
</ul> </ul>
@ -707,7 +712,19 @@ sub NUKIBridge_CallBlocking($$$) {
<b>Set</b> <b>Set</b>
<ul> <ul>
<li>autocreate - Prompts to re-read all Smartlocks from the bridge and if not already present in FHEM, create the autimatic.</li> <li>autocreate - Prompts to re-read all Smartlocks from the bridge and if not already present in FHEM, create the autimatic.</li>
<li>statusRequest - starts a checkAlive of the bridge, it is determined whether the bridge is still online</li> <li>callbackRemove - Removes a previously added callback</li>
<li>clearLog - Clears the log of the Bridge</li>
<li>fwUpdate - Immediately checks for a new firmware update and installs it</li>
<li>info - Returns all Smart Locks in range and some device information of the bridge itself</li>
<li>reboot - reboots the bridge</li>
<br>
</ul>
<br><br>
<a name="NUKIBridgeget"></a>
<b>Get</b>
<ul>
<li>callbackList - List of register url callbacks. The Bridge register up to 3 url callbacks.</li>
<li>logFile - Retrieves the log of the Bridge</li>
<br> <br>
</ul> </ul>
<br><br> <br><br>

View File

@ -33,7 +33,7 @@ use warnings;
use JSON; use JSON;
#use Time::HiRes qw(gettimeofday); #use Time::HiRes qw(gettimeofday);
my $version = "0.3.40"; my $version = "0.3.41";
@ -562,8 +562,8 @@ sub NUKIDevice_CGI() {
<b>Attributes</b> <b>Attributes</b>
<ul> <ul>
<li>disable - disables the Nuki device</li> <li>disable - disables the Nuki device</li>
<li>webhookFWinstance - zu verwendene Webinstanz für den Callbackaufruf</li> <li>webhookFWinstance - Webinstanz of the Callback</li>
<li>webhookHttpHostname - IP oder FQDN vom FHEM Server für den Callbackaufruf</li> <li>webhookHttpHostname - IP or FQDN of the FHEM Server Callback</li>
<br> <br>
</ul> </ul>
</ul> </ul>
@ -619,6 +619,8 @@ sub NUKIDevice_CGI() {
<b>Attribute</b> <b>Attribute</b>
<ul> <ul>
<li>disable - deaktiviert das Nuki Device</li> <li>disable - deaktiviert das Nuki Device</li>
<li>webhookFWinstance - zu verwendene Webinstanz für den Callbackaufruf</li>
<li>webhookHttpHostname - IP oder FQDN vom FHEM Server für den Callbackaufruf</li>
<br> <br>
</ul> </ul>
</ul> </ul>