Hallo allerseits,
wie kann ich dieses Array auswerten. Komme einfach nicht weiter.
möchte „Value“ in eine Variable schreiben.
Versucht habe ich z.B. so:
$test = ($value['0']['1']->Value);
stdClass Object
(
[id] => 0
[Text] => Sensor
[Min] => Min
[Value] => Value
[Max] => Max
[ImageURL] =>
[Children] => Array
(
[0] => stdClass Object
(
[id] => 1
[Text] => IPS-SERVER
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/computer.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 2
[Text] => Lenovo 312D
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/mainboard.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 3
[Text] => Intel Core i5-9400T
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/cpu.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 4
[Text] => Clocks
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/clock.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 5
[Text] => Bus Speed
[Min] => 100 MHz
[Value] => 100 MHz
[Max] => 100 MHz
[SensorId] => /intelcpu/0/clock/0
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 6
[Text] => CPU Core #1
[Min] => 800 MHz
[Value] => 800 MHz
[Max] => 3300 MHz
[SensorId] => /intelcpu/0/clock/1
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[2] => stdClass Object
(
[id] => 7
[Text] => CPU Core #2
[Min] => 800 MHz
[Value] => 3200 MHz
[Max] => 3300 MHz
[SensorId] => /intelcpu/0/clock/2
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[3] => stdClass Object
(
[id] => 8
[Text] => CPU Core #3
[Min] => 800 MHz
[Value] => 3300 MHz
[Max] => 3300 MHz
[SensorId] => /intelcpu/0/clock/3
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[4] => stdClass Object
(
[id] => 9
[Text] => CPU Core #4
[Min] => 800 MHz
[Value] => 3300 MHz
[Max] => 3300 MHz
[SensorId] => /intelcpu/0/clock/4
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[5] => stdClass Object
(
[id] => 10
[Text] => CPU Core #5
[Min] => 800 MHz
[Value] => 3300 MHz
[Max] => 3300 MHz
[SensorId] => /intelcpu/0/clock/5
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[6] => stdClass Object
(
[id] => 11
[Text] => CPU Core #6
[Min] => 800 MHz
[Value] => 3300 MHz
[Max] => 3300 MHz
[SensorId] => /intelcpu/0/clock/6
[Type] => Clock
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
)
)
[1] => stdClass Object
(
[id] => 12
[Text] => Temperatures
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/temperature.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 13
[Text] => CPU Core #1
[Min] => 39,0 °C
[Value] => 42,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/0
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 14
[Text] => CPU Core #2
[Min] => 38,0 °C
[Value] => 42,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/1
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[2] => stdClass Object
(
[id] => 15
[Text] => CPU Core #3
[Min] => 38,0 °C
[Value] => 42,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/2
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[3] => stdClass Object
(
[id] => 16
[Text] => CPU Core #4
[Min] => 38,0 °C
[Value] => 48,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/3
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[4] => stdClass Object
(
[id] => 17
[Text] => CPU Core #5
[Min] => 39,0 °C
[Value] => 43,0 °C
[Max] => 66,0 °C
[SensorId] => /intelcpu/0/temperature/4
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[5] => stdClass Object
(
[id] => 18
[Text] => CPU Core #6
[Min] => 39,0 °C
[Value] => 43,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/5
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[6] => stdClass Object
(
[id] => 19
[Text] => CPU Package
[Min] => 40,0 °C
[Value] => 48,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/6
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[7] => stdClass Object
(
[id] => 20
[Text] => CPU Core #1 Distance to TjMax
[Min] => 33,0 °C
[Value] => 58,0 °C
[Max] => 61,0 °C
[SensorId] => /intelcpu/0/temperature/7
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[8] => stdClass Object
(
[id] => 21
[Text] => CPU Core #2 Distance to TjMax
[Min] => 33,0 °C
[Value] => 58,0 °C
[Max] => 62,0 °C
[SensorId] => /intelcpu/0/temperature/8
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[9] => stdClass Object
(
[id] => 22
[Text] => CPU Core #3 Distance to TjMax
[Min] => 33,0 °C
[Value] => 58,0 °C
[Max] => 62,0 °C
[SensorId] => /intelcpu/0/temperature/9
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[10] => stdClass Object
(
[id] => 23
[Text] => CPU Core #4 Distance to TjMax
[Min] => 33,0 °C
[Value] => 52,0 °C
[Max] => 62,0 °C
[SensorId] => /intelcpu/0/temperature/10
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[11] => stdClass Object
(
[id] => 24
[Text] => CPU Core #5 Distance to TjMax
[Min] => 34,0 °C
[Value] => 57,0 °C
[Max] => 61,0 °C
[SensorId] => /intelcpu/0/temperature/11
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[12] => stdClass Object
(
[id] => 25
[Text] => CPU Core #6 Distance to TjMax
[Min] => 33,0 °C
[Value] => 57,0 °C
[Max] => 61,0 °C
[SensorId] => /intelcpu/0/temperature/12
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[13] => stdClass Object
(
[id] => 26
[Text] => Core Max
[Min] => 39,0 °C
[Value] => 48,0 °C
[Max] => 67,0 °C
[SensorId] => /intelcpu/0/temperature/13
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[14] => stdClass Object
(
[id] => 27
[Text] => Core Average
[Min] => 38,7 °C
[Value] => 43,3 °C
[Max] => 66,8 °C
[SensorId] => /intelcpu/0/temperature/14
[Type] => Temperature
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
)
)
[2] => stdClass Object
(
[id] => 28
[Text] => Load
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/load.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 29
[Text] => CPU Total
[Min] => 0,0 %
[Value] => 8,6 %
[Max] => 98,1 %
[SensorId] => /intelcpu/0/load/0
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 30
[Text] => CPU Core #1
[Min] => 0,0 %
[Value] => 6,3 %
[Max] => 100,0 %
[SensorId] => /intelcpu/0/load/1
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[2] => stdClass Object
(
[id] => 31
[Text] => CPU Core #2
[Min] => 0,0 %
[Value] => 10,9 %
[Max] => 100,0 %
[SensorId] => /intelcpu/0/load/2
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[3] => stdClass Object
(
[id] => 32
[Text] => CPU Core #3
[Min] => 0,0 %
[Value] => 4,7 %
[Max] => 100,0 %
[SensorId] => /intelcpu/0/load/3
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[4] => stdClass Object
(
[id] => 33
[Text] => CPU Core #4
[Min] => 0,0 %
[Value] => 9,4 %
[Max] => 100,0 %
[SensorId] => /intelcpu/0/load/4
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[5] => stdClass Object
(
[id] => 34
[Text] => CPU Core #5
[Min] => 0,0 %
[Value] => 10,9 %
[Max] => 100,0 %
[SensorId] => /intelcpu/0/load/5
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[6] => stdClass Object
(
[id] => 35
[Text] => CPU Core #6
[Min] => 0,0 %
[Value] => 9,4 %
[Max] => 100,0 %
[SensorId] => /intelcpu/0/load/6
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
)
)
[3] => stdClass Object
(
[id] => 36
[Text] => Powers
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/power.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 37
[Text] => CPU Package
[Min] => 2,1 W
[Value] => 6,1 W
[Max] => 35,5 W
[SensorId] => /intelcpu/0/power/0
[Type] => Power
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 38
[Text] => CPU Cores
[Min] => 1,7 W
[Value] => 5,2 W
[Max] => 34,4 W
[SensorId] => /intelcpu/0/power/1
[Type] => Power
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[2] => stdClass Object
(
[id] => 39
[Text] => CPU Graphics
[Min] => 0,0 W
[Value] => 0,0 W
[Max] => 0,9 W
[SensorId] => /intelcpu/0/power/2
[Type] => Power
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[3] => stdClass Object
(
[id] => 40
[Text] => CPU Memory
[Min] => 0,4 W
[Value] => 0,9 W
[Max] => 2,8 W
[SensorId] => /intelcpu/0/power/3
[Type] => Power
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
)
)
)
)
[2] => stdClass Object
(
[id] => 41
[Text] => Generic Memory
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/ram.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 42
[Text] => Load
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/load.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 43
[Text] => Memory
[Min] => 22,5 %
[Value] => 38,8 %
[Max] => 50,9 %
[SensorId] => /ram/load/0
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 44
[Text] => Virtual Memory
[Min] => 20,8 %
[Value] => 40,3 %
[Max] => 46,2 %
[SensorId] => /ram/load/1
[Type] => Load
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
)
)
[1] => stdClass Object
(
[id] => 45
[Text] => Data
[Min] =>
[Value] =>
[Max] =>
[ImageURL] => images_icon/power.png
[Children] => Array
(
[0] => stdClass Object
(
[id] => 46
[Text] => Memory Used
[Min] => 5,4 GB
[Value] => 9,3 GB
[Max] => 12,2 GB
[SensorId] => /ram/data/0
[Type] => Data
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[1] => stdClass Object
(
[id] => 47
[Text] => Memory Available
[Min] => 11,7 GB
[Value] => 14,6 GB
[Max] => 18,5 GB
[SensorId] => /ram/data/1
[Type] => Data
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[2] => stdClass Object
(
[id] => 48
[Text] => Virtual Memory Used
[Min] => 5,7 GB
[Value] => 11,0 GB
[Max] => 12,6 GB
[SensorId] => /ram/data/2
[Type] => Data
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
[3] => stdClass Object
(
[id] => 49
[Text] => Virtual Memory Available
[Min] => 14,7 GB
[Value] => 16,3 GB
[Max] => 21,7 GB
[SensorId] => /ram/data/3
[Type] => Data
[ImageURL] => images/transparent.png
[Children] => Array
(
)
)
)
)
)
)