Skip to content

Commit

Permalink
Update v2.0.20231119
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilkware committed Nov 22, 2023
1 parent 40c5ef0 commit 8743562
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions AbfallNavi/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AbfallNavi extends IPSModule
private const ELEM_LABEL = 1;
private const ELEM_PROVI = 2;
private const ELEM_REGIO = 3;
private const ELEM_VISU = 4;
private const ELEM_VISU = 4;

/**
* Create.
Expand Down Expand Up @@ -262,8 +262,8 @@ public function GetConfigurationForm()
// Debug output
$this->SendDebug(__FUNCTION__, $io);
//Only add default element if we do not have anything in persistence
$colors = json_decode($this->ReadPropertyString("settingsTileColors"), true);
if(empty($colors)) {
$colors = json_decode($this->ReadPropertyString('settingsTileColors'), true);
if (empty($colors)) {
$this->SendDebug(__FUNCTION__, 'Translate Waste Visu');
$jsonForm['elements'][self::ELEM_VISU]['items'][2]['values'] = $this->GetWasteValues();
}
Expand Down Expand Up @@ -385,7 +385,7 @@ public function Update()
$this->SendDebug(__FUNCTION__, 'TileVisu: ' . $btw);
if ($btw == true) {
$skin = $this->ReadPropertyString('settingsTileSkin');
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$this->BuildWidget($waste, $skin, $list);
}

Expand Down
8 changes: 4 additions & 4 deletions Abfall_IO/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Abfall_IO extends IPSModule
private const ELEM_LABEL = 1;
private const ELEM_PROVI = 2;
private const ELEM_ABPIO = 3;
private const ELEM_VISU = 4;
private const ELEM_VISU = 4;

/**
* Create.
Expand Down Expand Up @@ -280,8 +280,8 @@ public function GetConfigurationForm()
// Debug output
$this->SendDebug(__FUNCTION__, $io);
//Only add default element if we do not have anything in persistence
$colors = json_decode($this->ReadPropertyString("settingsTileColors"), true);
if(empty($colors)) {
$colors = json_decode($this->ReadPropertyString('settingsTileColors'), true);
if (empty($colors)) {
$this->SendDebug(__FUNCTION__, 'Translate Waste Visu');
$jsonForm['elements'][self::ELEM_VISU]['items'][2]['values'] = $this->GetWasteValues();
}
Expand Down Expand Up @@ -534,7 +534,7 @@ public function Update()
$this->SendDebug(__FUNCTION__, 'TileVisu: ' . $btw);
if ($btw == true) {
$skin = $this->ReadPropertyString('settingsTileSkin');
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$this->BuildWidget($waste, $skin, $list);
}

Expand Down
8 changes: 4 additions & 4 deletions Awido/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Awido extends IPSModule
private const ELEM_LABEL = 1;
private const ELEM_PROVI = 2;
private const ELEM_AWIDO = 3;
private const ELEM_VISU = 4;
private const ELEM_VISU = 4;

/**
* Create.
Expand Down Expand Up @@ -135,8 +135,8 @@ public function GetConfigurationForm()
$jsonForm['actions'][0]['visible'] = ($addonId != 'null');
$jsonForm['actions'][1]['visible'] = ($addonId != 'null');
//Only add default element if we do not have anything in persistence
$colors = json_decode($this->ReadPropertyString("settingsTileColors"), true);
if(empty($colors)) {
$colors = json_decode($this->ReadPropertyString('settingsTileColors'), true);
if (empty($colors)) {
$this->SendDebug(__FUNCTION__, 'Translate Waste Visu');
$jsonForm['elements'][self::ELEM_VISU]['items'][2]['values'] = $this->GetWasteValues();
}
Expand Down Expand Up @@ -281,7 +281,7 @@ public function Update()
$this->SendDebug(__FUNCTION__, 'TileVisu: ' . $btw);
if ($btw == true) {
$skin = $this->ReadPropertyString('settingsTileSkin');
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$this->BuildWidget($waste, $skin, $list);
}

Expand Down
8 changes: 4 additions & 4 deletions MuellMax/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class MuellMax extends IPSModule
private const ELEM_LABEL = 1;
private const ELEM_PROVI = 2;
private const ELEM_WASTE = 3;
private const ELEM_VISU = 4;
private const ELEM_VISU = 4;

/**
* Create.
Expand Down Expand Up @@ -307,8 +307,8 @@ public function GetConfigurationForm()
// Debug output
$this->SendDebug(__FUNCTION__, $io);
//Only add default element if we do not have anything in persistence
$colors = json_decode($this->ReadPropertyString("settingsTileColors"), true);
if(empty($colors)) {
$colors = json_decode($this->ReadPropertyString('settingsTileColors'), true);
if (empty($colors)) {
$this->SendDebug(__FUNCTION__, 'Translate Waste Visu');
$jsonForm['elements'][self::ELEM_VISU]['items'][2]['values'] = $this->GetWasteValues();
}
Expand Down Expand Up @@ -504,7 +504,7 @@ public function Update()
$this->SendDebug(__FUNCTION__, 'TileVisu: ' . $btw);
if ($btw == true) {
$skin = $this->ReadPropertyString('settingsTileSkin');
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$this->BuildWidget($waste, $skin, $list);
}

Expand Down
8 changes: 4 additions & 4 deletions MyMuell/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MyMuell extends IPSModule
private const ELEM_LABEL = 1;
private const ELEM_PROVI = 2;
private const ELEM_MYMDE = 3;
private const ELEM_VISU = 4;
private const ELEM_VISU = 4;

/**
* Create.
Expand Down Expand Up @@ -106,8 +106,8 @@ public function GetConfigurationForm()
}

//Only add default element if we do not have anything in persistence
$colors = json_decode($this->ReadPropertyString("settingsTileColors"), true);
if(empty($colors)) {
$colors = json_decode($this->ReadPropertyString('settingsTileColors'), true);
if (empty($colors)) {
$this->SendDebug(__FUNCTION__, 'Translate Waste Visu');
$jsonForm['elements'][self::ELEM_VISU]['items'][2]['values'] = $this->GetWasteValues();
}
Expand Down Expand Up @@ -214,7 +214,7 @@ public function Update()
$this->SendDebug(__FUNCTION__, 'TileVisu: ' . $btw);
if ($btw == true) {
$skin = $this->ReadPropertyString('settingsTileSkin');
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$list = json_decode($this->ReadPropertyString('settingsTileColors'), true);
$this->BuildWidget($waste, $skin, $list);
}

Expand Down

0 comments on commit 8743562

Please sign in to comment.