json korrekt format
This commit is contained in:
@@ -82,11 +82,12 @@ class Boiler_2_Stufig_Landwirtschaft extends IPSModule
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getNextTimeAndTemperature($zeitplan) {
|
public function getNextTimeAndTemperature($zeitplan) {
|
||||||
if (empty($zeitplan)) {
|
$arr = json_decode($arrString);
|
||||||
|
if (empty($arr)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$currentTime = date('H:i');
|
$currentTime = date('H:i');
|
||||||
foreach ($zeitplan as $entry) {
|
foreach ($arr as $entry) {
|
||||||
if ($entry['Uhrzeit'] > $currentTime) {
|
if ($entry['Uhrzeit'] > $currentTime) {
|
||||||
return $entry;
|
return $entry;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@
|
|||||||
"compatibility": {
|
"compatibility": {
|
||||||
"version": "7.1"
|
"version": "7.1"
|
||||||
},
|
},
|
||||||
"version": "1.032",
|
"version": "1.033",
|
||||||
"build": 0,
|
"build": 0,
|
||||||
"date": 0
|
"date": 0
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user