Skip to content

Commit

Permalink
Change Reset from int to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunnyka98 committed Jul 25, 2023
1 parent d2ad278 commit 6ede72a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Schleppzeiger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ Die Statusvariablen/Kategorien werden automatisch angelegt. Das Löschen einzeln
Name | Typ | Beschreibung
------------- | ------- | ------------
Schleppzeiger | float | Zeigt den höchsten/niedrigsten Wert seit dem letzten Reset an
Zurücksetzen | int | Assoziation zum Zurücksetzen des Schleppzeigers
Zurücksetzen | boolean | Assoziation zum Zurücksetzen des Schleppzeigers

#### Profile

Name | Typ
------ | -------
SZ.Reset | int
Name | Typ
-------- | -------
SZ.Reset | bool

### 6. WebFront

Anzeige, sowie Zurücksetzen des Schleppzeigers
Anzeige des Schleppzeigers, sowie Zurücksetzen des Schleppzeigers

### 7. PHP-Befehlsreferenz

Expand Down
6 changes: 3 additions & 3 deletions Schleppzeiger/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public function Create()
$this->RegisterPropertyString('Option', 'Maximum');

if (!IPS_VariableProfileExists('SZ.Reset')) {
IPS_CreateVariableProfile('SZ.Reset', VARIABLETYPE_INTEGER);
IPS_SetVariableProfileAssociation('SZ.Reset', 0, $this->Translate('Reset'), '', 0x00FF00);
IPS_CreateVariableProfile('SZ.Reset', VARIABLETYPE_BOOLEAN);
IPS_SetVariableProfileAssociation('SZ.Reset', true, $this->Translate('Reset'), '', 0x00FF00);
}

$this->RegisterVariableFloat('TrailingPointer', $this->Translate('Trailing Pointer'), '', 0);
$this->RegisterVariableInteger('Reset', $this->Translate('Reset'), 'SZ.Reset', 1);
$this->RegisterVariableBoolean('Reset', $this->Translate('Reset'), 'SZ.Reset', 1);
$this->EnableAction('Reset');

$this->RegisterTimer('ResetTimer', 0, 'SZ_Reset($_IPS[\'TARGET\']);');
Expand Down

0 comments on commit 6ede72a

Please sign in to comment.