Jump to content

Disassembling the .json file. How to get variables?


Recommended Posts

Hello!

Sorry for my english. I'm using a translator
There is an OpenHardwareMonitor program, which in WEB serwer unloads the .json file with system information. The file is attached to the topic.
How to get the data correctly? For example, the processor temperature is in the branch:

IGOR-ПК  ->  MSI 760GM-P21(FX) (MS-7641)  ->  AMD FX-6100  -> Temperatures   ->  Core #1 - #6  ->  Value   ->  48,0 °C

How to get it right? I tried Json_Dump():

Spoiler

+-> .Text  =Sensor
+-> .Children[0].id  =1
+-> .Children[0].Text  =IGOR-ПК
+-> .Children[0].Children[0].id  =2
+-> .Children[0].Children[0].Text  =MSI 760GM-P21(FX) (MS-7641)
+-> .Children[0].Children[0].Children[0].id  =3
+-> .Children[0].Children[0].Children[0].Text  =Fintek F71869A
+-> .Children[0].Children[0].Children[0].Children[0].id  =4
+-> .Children[0].Children[0].Children[0].Children[0].Text  =Voltages
+-> .Children[0].Children[0].Children[0].Children[0].Children[0].id  =5
+-> .Children[0].Children[0].Children[0].Children[0].Children[0].Text  =VCC3V
+-> .Children[0].Children[0].Children[0].Children[0].Children[0].Min  =3,104 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[0].Value  =3,248 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[0].Max  =3,312 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[1].id  =6
+-> .Children[0].Children[0].Children[0].Children[0].Children[1].Text  =CPU VCore
+-> .Children[0].Children[0].Children[0].Children[0].Children[1].Min  =0,840 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[1].Value  =1,360 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[1].Max  =1,392 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[2].id  =7
+-> .Children[0].Children[0].Children[0].Children[0].Children[2].Text  =Voltage #3
+-> .Children[0].Children[0].Children[0].Children[0].Children[2].Min  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[2].Value  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[2].Max  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[2].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[3].id  =8
+-> .Children[0].Children[0].Children[0].Children[0].Children[3].Text  =Voltage #4
+-> .Children[0].Children[0].Children[0].Children[0].Children[3].Min  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[3].Value  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[3].Max  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[3].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[4].id  =9
+-> .Children[0].Children[0].Children[0].Children[0].Children[4].Text  =Voltage #5
+-> .Children[0].Children[0].Children[0].Children[0].Children[4].Min  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[4].Value  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[4].Max  =0,000 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[4].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[5].id  =10
+-> .Children[0].Children[0].Children[0].Children[0].Children[5].Text  =Voltage #6
+-> .Children[0].Children[0].Children[0].Children[0].Children[5].Min  =0,824 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[5].Value  =0,848 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[5].Max  =0,864 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[5].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[6].id  =11
+-> .Children[0].Children[0].Children[0].Children[0].Children[6].Text  =Voltage #7
+-> .Children[0].Children[0].Children[0].Children[0].Children[6].Min  =1,024 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[6].Value  =1,072 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[6].Max  =1,096 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[6].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[7].id  =12
+-> .Children[0].Children[0].Children[0].Children[0].Children[7].Text  =VSB3V
+-> .Children[0].Children[0].Children[0].Children[0].Children[7].Min  =3,216 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[7].Value  =3,248 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[7].Max  =3,248 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[7].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].Children[8].id  =13
+-> .Children[0].Children[0].Children[0].Children[0].Children[8].Text  =VBat
+-> .Children[0].Children[0].Children[0].Children[0].Children[8].Min  =3,232 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[8].Value  =3,264 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[8].Max  =3,264 V
+-> .Children[0].Children[0].Children[0].Children[0].Children[8].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[0].ImageURL  =images_icon/voltage.png
+-> .Children[0].Children[0].Children[0].Children[1].id  =14
+-> .Children[0].Children[0].Children[0].Children[1].Text  =Temperatures
+-> .Children[0].Children[0].Children[0].Children[1].Children[0].id  =15
+-> .Children[0].Children[0].Children[0].Children[1].Children[0].Text  =Temperature #1
+-> .Children[0].Children[0].Children[0].Children[1].Children[0].Min  =41,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[0].Value  =42,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[0].Max  =45,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[1].Children[1].id  =16
+-> .Children[0].Children[0].Children[0].Children[1].Children[1].Text  =Temperature #2
+-> .Children[0].Children[0].Children[0].Children[1].Children[1].Min  =61,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[1].Value  =61,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[1].Max  =68,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[1].Children[2].id  =17
+-> .Children[0].Children[0].Children[0].Children[1].Children[2].Text  =Temperature #3
+-> .Children[0].Children[0].Children[0].Children[1].Children[2].Min  =41,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[2].Value  =42,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[2].Max  =48,0 °C
+-> .Children[0].Children[0].Children[0].Children[1].Children[2].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[1].ImageURL  =images_icon/temperature.png
+-> .Children[0].Children[0].Children[0].Children[2].id  =18
+-> .Children[0].Children[0].Children[0].Children[2].Text  =Fans
+-> .Children[0].Children[0].Children[0].Children[2].Children[0].id  =19
+-> .Children[0].Children[0].Children[0].Children[2].Children[0].Text  =Fan #1
+-> .Children[0].Children[0].Children[0].Children[2].Children[0].Min  =1901 RPM
+-> .Children[0].Children[0].Children[0].Children[2].Children[0].Value  =2190 RPM
+-> .Children[0].Children[0].Children[0].Children[2].Children[0].Max  =3371 RPM
+-> .Children[0].Children[0].Children[0].Children[2].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[2].Children[1].id  =20
+-> .Children[0].Children[0].Children[0].Children[2].Children[1].Text  =Fan #2
+-> .Children[0].Children[0].Children[0].Children[2].Children[1].Min  =939 RPM
+-> .Children[0].Children[0].Children[0].Children[2].Children[1].Value  =970 RPM
+-> .Children[0].Children[0].Children[0].Children[2].Children[1].Max  =977 RPM
+-> .Children[0].Children[0].Children[0].Children[2].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[0].Children[0].Children[2].ImageURL  =images_icon/fan.png
+-> .Children[0].Children[0].Children[0].ImageURL  =images_icon/chip.png
+-> .Children[0].Children[0].ImageURL  =images_icon/mainboard.png
+-> .Children[0].Children[1].id  =21
+-> .Children[0].Children[1].Text  =AMD FX-6100
+-> .Children[0].Children[1].Children[0].id  =22
+-> .Children[0].Children[1].Children[0].Text  =Clocks
+-> .Children[0].Children[1].Children[0].Children[0].id  =23
+-> .Children[0].Children[1].Children[0].Children[0].Text  =Bus Speed
+-> .Children[0].Children[1].Children[0].Children[0].Min  =200 MHz
+-> .Children[0].Children[1].Children[0].Children[0].Value  =200 MHz
+-> .Children[0].Children[1].Children[0].Children[0].Max  =200 MHz
+-> .Children[0].Children[1].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].Children[1].id  =24
+-> .Children[0].Children[1].Children[0].Children[1].Text  =CPU Core #1
+-> .Children[0].Children[1].Children[0].Children[1].Min  =1400 MHz
+-> .Children[0].Children[1].Children[0].Children[1].Value  =3300 MHz
+-> .Children[0].Children[1].Children[0].Children[1].Max  =3900 MHz
+-> .Children[0].Children[1].Children[0].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].Children[2].id  =25
+-> .Children[0].Children[1].Children[0].Children[2].Text  =CPU Core #2
+-> .Children[0].Children[1].Children[0].Children[2].Min  =1400 MHz
+-> .Children[0].Children[1].Children[0].Children[2].Value  =3300 MHz
+-> .Children[0].Children[1].Children[0].Children[2].Max  =3900 MHz
+-> .Children[0].Children[1].Children[0].Children[2].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].Children[3].id  =26
+-> .Children[0].Children[1].Children[0].Children[3].Text  =CPU Core #3
+-> .Children[0].Children[1].Children[0].Children[3].Min  =1400 MHz
+-> .Children[0].Children[1].Children[0].Children[3].Value  =3300 MHz
+-> .Children[0].Children[1].Children[0].Children[3].Max  =3900 MHz
+-> .Children[0].Children[1].Children[0].Children[3].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].Children[4].id  =27
+-> .Children[0].Children[1].Children[0].Children[4].Text  =CPU Core #4
+-> .Children[0].Children[1].Children[0].Children[4].Min  =1400 MHz
+-> .Children[0].Children[1].Children[0].Children[4].Value  =3300 MHz
+-> .Children[0].Children[1].Children[0].Children[4].Max  =3900 MHz
+-> .Children[0].Children[1].Children[0].Children[4].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].Children[5].id  =28
+-> .Children[0].Children[1].Children[0].Children[5].Text  =CPU Core #5
+-> .Children[0].Children[1].Children[0].Children[5].Min  =1400 MHz
+-> .Children[0].Children[1].Children[0].Children[5].Value  =3600 MHz
+-> .Children[0].Children[1].Children[0].Children[5].Max  =3900 MHz
+-> .Children[0].Children[1].Children[0].Children[5].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].Children[6].id  =29
+-> .Children[0].Children[1].Children[0].Children[6].Text  =CPU Core #6
+-> .Children[0].Children[1].Children[0].Children[6].Min  =1400 MHz
+-> .Children[0].Children[1].Children[0].Children[6].Value  =3600 MHz
+-> .Children[0].Children[1].Children[0].Children[6].Max  =3900 MHz
+-> .Children[0].Children[1].Children[0].Children[6].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[0].ImageURL  =images_icon/clock.png
+-> .Children[0].Children[1].Children[1].id  =30
+-> .Children[0].Children[1].Children[1].Text  =Temperatures
+-> .Children[0].Children[1].Children[1].Children[0].id  =31
+-> .Children[0].Children[1].Children[1].Children[0].Text  =Core #1 - #6
+-> .Children[0].Children[1].Children[1].Children[0].Min  =35,6 °C
+-> .Children[0].Children[1].Children[1].Children[0].Value  =48,0 °C
+-> .Children[0].Children[1].Children[1].Children[0].Max  =63,5 °C
+-> .Children[0].Children[1].Children[1].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[1].ImageURL  =images_icon/temperature.png
+-> .Children[0].Children[1].Children[2].id  =32
+-> .Children[0].Children[1].Children[2].Text  =Load
+-> .Children[0].Children[1].Children[2].Children[0].id  =33
+-> .Children[0].Children[1].Children[2].Children[0].Text  =CPU Total
+-> .Children[0].Children[1].Children[2].Children[0].Min  =0,7 %
+-> .Children[0].Children[1].Children[2].Children[0].Value  =13,6 %
+-> .Children[0].Children[1].Children[2].Children[0].Max  =68,5 %
+-> .Children[0].Children[1].Children[2].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].Children[1].id  =34
+-> .Children[0].Children[1].Children[2].Children[1].Text  =CPU Core #1
+-> .Children[0].Children[1].Children[2].Children[1].Min  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[1].Value  =24,6 %
+-> .Children[0].Children[1].Children[2].Children[1].Max  =92,3 %
+-> .Children[0].Children[1].Children[2].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].Children[2].id  =35
+-> .Children[0].Children[1].Children[2].Children[2].Text  =CPU Core #2
+-> .Children[0].Children[1].Children[2].Children[2].Min  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[2].Value  =9,2 %
+-> .Children[0].Children[1].Children[2].Children[2].Max  =90,8 %
+-> .Children[0].Children[1].Children[2].Children[2].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].Children[3].id  =36
+-> .Children[0].Children[1].Children[2].Children[3].Text  =CPU Core #3
+-> .Children[0].Children[1].Children[2].Children[3].Min  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[3].Value  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[3].Max  =86,2 %
+-> .Children[0].Children[1].Children[2].Children[3].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].Children[4].id  =37
+-> .Children[0].Children[1].Children[2].Children[4].Text  =CPU Core #4
+-> .Children[0].Children[1].Children[2].Children[4].Min  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[4].Value  =18,5 %
+-> .Children[0].Children[1].Children[2].Children[4].Max  =70,8 %
+-> .Children[0].Children[1].Children[2].Children[4].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].Children[5].id  =38
+-> .Children[0].Children[1].Children[2].Children[5].Text  =CPU Core #5
+-> .Children[0].Children[1].Children[2].Children[5].Min  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[5].Value  =27,7 %
+-> .Children[0].Children[1].Children[2].Children[5].Max  =76,9 %
+-> .Children[0].Children[1].Children[2].Children[5].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].Children[6].id  =39
+-> .Children[0].Children[1].Children[2].Children[6].Text  =CPU Core #6
+-> .Children[0].Children[1].Children[2].Children[6].Min  =0,0 %
+-> .Children[0].Children[1].Children[2].Children[6].Value  =1,5 %
+-> .Children[0].Children[1].Children[2].Children[6].Max  =80,0 %
+-> .Children[0].Children[1].Children[2].Children[6].ImageURL  =images/transparent.png
+-> .Children[0].Children[1].Children[2].ImageURL  =images_icon/load.png
+-> .Children[0].Children[1].ImageURL  =images_icon/cpu.png
+-> .Children[0].Children[2].id  =40
+-> .Children[0].Children[2].Text  =Generic Memory
+-> .Children[0].Children[2].Children[0].id  =41
+-> .Children[0].Children[2].Children[0].Text  =Load
+-> .Children[0].Children[2].Children[0].Children[0].id  =42
+-> .Children[0].Children[2].Children[0].Children[0].Text  =Memory
+-> .Children[0].Children[2].Children[0].Children[0].Min  =45,6 %
+-> .Children[0].Children[2].Children[0].Children[0].Value  =68,1 %
+-> .Children[0].Children[2].Children[0].Children[0].Max  =97,6 %
+-> .Children[0].Children[2].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[2].Children[0].ImageURL  =images_icon/load.png
+-> .Children[0].Children[2].Children[1].id  =43
+-> .Children[0].Children[2].Children[1].Text  =Data
+-> .Children[0].Children[2].Children[1].Children[0].id  =44
+-> .Children[0].Children[2].Children[1].Children[0].Text  =Used Memory
+-> .Children[0].Children[2].Children[1].Children[0].Min  =3,6 GB
+-> .Children[0].Children[2].Children[1].Children[0].Value  =5,4 GB
+-> .Children[0].Children[2].Children[1].Children[0].Max  =7,8 GB
+-> .Children[0].Children[2].Children[1].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[2].Children[1].Children[1].id  =45
+-> .Children[0].Children[2].Children[1].Children[1].Text  =Available Memory
+-> .Children[0].Children[2].Children[1].Children[1].Min  =0,2 GB
+-> .Children[0].Children[2].Children[1].Children[1].Value  =2,5 GB
+-> .Children[0].Children[2].Children[1].Children[1].Max  =4,3 GB
+-> .Children[0].Children[2].Children[1].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[2].Children[1].ImageURL  =images_icon/power.png
+-> .Children[0].Children[2].ImageURL  =images_icon/ram.png
+-> .Children[0].Children[3].id  =46
+-> .Children[0].Children[3].Text  =NVIDIA GeForce GT 630
+-> .Children[0].Children[3].Children[0].id  =47
+-> .Children[0].Children[3].Children[0].Text  =Clocks
+-> .Children[0].Children[3].Children[0].Children[0].id  =48
+-> .Children[0].Children[3].Children[0].Children[0].Text  =GPU Core
+-> .Children[0].Children[3].Children[0].Children[0].Min  =0 MHz
+-> .Children[0].Children[3].Children[0].Children[0].Value  =405 MHz
+-> .Children[0].Children[3].Children[0].Children[0].Max  =810 MHz
+-> .Children[0].Children[3].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[0].Children[1].id  =49
+-> .Children[0].Children[3].Children[0].Children[1].Text  =GPU Memory
+-> .Children[0].Children[3].Children[0].Children[1].Min  =405 MHz
+-> .Children[0].Children[3].Children[0].Children[1].Value  =405 MHz
+-> .Children[0].Children[3].Children[0].Children[1].Max  =500 MHz
+-> .Children[0].Children[3].Children[0].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[0].Children[2].id  =50
+-> .Children[0].Children[3].Children[0].Children[2].Text  =GPU Shader
+-> .Children[0].Children[3].Children[0].Children[2].Min  =0 MHz
+-> .Children[0].Children[3].Children[0].Children[2].Value  =810 MHz
+-> .Children[0].Children[3].Children[0].Children[2].Max  =1620 MHz
+-> .Children[0].Children[3].Children[0].Children[2].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[0].ImageURL  =images_icon/clock.png
+-> .Children[0].Children[3].Children[1].id  =51
+-> .Children[0].Children[3].Children[1].Text  =Temperatures
+-> .Children[0].Children[3].Children[1].Children[0].id  =52
+-> .Children[0].Children[3].Children[1].Children[0].Text  =GPU Core
+-> .Children[0].Children[3].Children[1].Children[0].Min  =44,0 °C
+-> .Children[0].Children[3].Children[1].Children[0].Value  =46,0 °C
+-> .Children[0].Children[3].Children[1].Children[0].Max  =85,0 °C
+-> .Children[0].Children[3].Children[1].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[1].ImageURL  =images_icon/temperature.png
+-> .Children[0].Children[3].Children[2].id  =53
+-> .Children[0].Children[3].Children[2].Text  =Load
+-> .Children[0].Children[3].Children[2].Children[0].id  =54
+-> .Children[0].Children[3].Children[2].Children[0].Text  =GPU Core
+-> .Children[0].Children[3].Children[2].Children[0].Min  =0,0 %
+-> .Children[0].Children[3].Children[2].Children[0].Value  =3,0 %
+-> .Children[0].Children[3].Children[2].Children[0].Max  =100,0 %
+-> .Children[0].Children[3].Children[2].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[2].Children[1].id  =55
+-> .Children[0].Children[3].Children[2].Children[1].Text  =GPU Memory Controller
+-> .Children[0].Children[3].Children[2].Children[1].Min  =0,0 %
+-> .Children[0].Children[3].Children[2].Children[1].Value  =6,0 %
+-> .Children[0].Children[3].Children[2].Children[1].Max  =77,0 %
+-> .Children[0].Children[3].Children[2].Children[1].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[2].Children[2].id  =56
+-> .Children[0].Children[3].Children[2].Children[2].Text  =GPU Video Engine
+-> .Children[0].Children[3].Children[2].Children[2].Min  =0,0 %
+-> .Children[0].Children[3].Children[2].Children[2].Value  =0,0 %
+-> .Children[0].Children[3].Children[2].Children[2].Max  =0,0 %
+-> .Children[0].Children[3].Children[2].Children[2].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[2].Children[3].id  =57
+-> .Children[0].Children[3].Children[2].Children[3].Text  =GPU Memory
+-> .Children[0].Children[3].Children[2].Children[3].Min  =18,5 %
+-> .Children[0].Children[3].Children[2].Children[3].Value  =21,8 %
+-> .Children[0].Children[3].Children[2].Children[3].Max  =58,9 %
+-> .Children[0].Children[3].Children[2].Children[3].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[2].ImageURL  =images_icon/load.png
+-> .Children[0].Children[3].Children[3].id  =58
+-> .Children[0].Children[3].Children[3].Text  =Controls
+-> .Children[0].Children[3].Children[3].Children[0].id  =59
+-> .Children[0].Children[3].Children[3].Children[0].Text  =GPU Fan
+-> .Children[0].Children[3].Children[3].Children[0].Min  =52,0 %
+-> .Children[0].Children[3].Children[3].Children[0].Value  =52,0 %
+-> .Children[0].Children[3].Children[3].Children[0].Max  =79,0 %
+-> .Children[0].Children[3].Children[3].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[3].Children[3].ImageURL  =images_icon/control.png
+-> .Children[0].Children[3].ImageURL  =images_icon/nvidia.png
+-> .Children[0].Children[4].id  =60
+-> .Children[0].Children[4].Text  =Generic Hard Disk
+-> .Children[0].Children[4].ImageURL  =images_icon/hdd.png
+-> .Children[0].Children[5].id  =61
+-> .Children[0].Children[5].Text  =Generic Hard Disk
+-> .Children[0].Children[5].ImageURL  =images_icon/hdd.png
+-> .Children[0].Children[6].id  =62
+-> .Children[0].Children[6].Text  =Generic Hard Disk
+-> .Children[0].Children[6].Children[0].id  =63
+-> .Children[0].Children[6].Children[0].Text  =Load
+-> .Children[0].Children[6].Children[0].Children[0].id  =64
+-> .Children[0].Children[6].Children[0].Children[0].Text  =Used Space
+-> .Children[0].Children[6].Children[0].Children[0].Min  =88,4 %
+-> .Children[0].Children[6].Children[0].Children[0].Value  =88,4 %
+-> .Children[0].Children[6].Children[0].Children[0].Max  =88,4 %
+-> .Children[0].Children[6].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[6].Children[0].ImageURL  =images_icon/load.png
+-> .Children[0].Children[6].ImageURL  =images_icon/hdd.png
+-> .Children[0].Children[7].id  =65
+-> .Children[0].Children[7].Text  =BIWIN SSD
+-> .Children[0].Children[7].Children[0].id  =66
+-> .Children[0].Children[7].Children[0].Text  =Temperatures
+-> .Children[0].Children[7].Children[0].Children[0].id  =67
+-> .Children[0].Children[7].Children[0].Children[0].Text  =Temperature
+-> .Children[0].Children[7].Children[0].Children[0].Min  =42,0 °C
+-> .Children[0].Children[7].Children[0].Children[0].Value  =43,0 °C
+-> .Children[0].Children[7].Children[0].Children[0].Max  =52,0 °C
+-> .Children[0].Children[7].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[7].Children[0].ImageURL  =images_icon/temperature.png
+-> .Children[0].Children[7].Children[1].id  =68
+-> .Children[0].Children[7].Children[1].Text  =Load
+-> .Children[0].Children[7].Children[1].Children[0].id  =69
+-> .Children[0].Children[7].Children[1].Children[0].Text  =Used Space
+-> .Children[0].Children[7].Children[1].Children[0].Min  =89,8 %
+-> .Children[0].Children[7].Children[1].Children[0].Value  =89,8 %
+-> .Children[0].Children[7].Children[1].Children[0].Max  =90,4 %
+-> .Children[0].Children[7].Children[1].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[7].Children[1].ImageURL  =images_icon/load.png
+-> .Children[0].Children[7].ImageURL  =images_icon/hdd.png
+-> .Children[0].Children[8].id  =70
+-> .Children[0].Children[8].Text  =TOSHIBA DT01ACA100
+-> .Children[0].Children[8].Children[0].id  =71
+-> .Children[0].Children[8].Children[0].Text  =Temperatures
+-> .Children[0].Children[8].Children[0].Children[0].id  =72
+-> .Children[0].Children[8].Children[0].Children[0].Text  =Temperature
+-> .Children[0].Children[8].Children[0].Children[0].Min  =38,0 °C
+-> .Children[0].Children[8].Children[0].Children[0].Value  =39,0 °C
+-> .Children[0].Children[8].Children[0].Children[0].Max  =44,0 °C
+-> .Children[0].Children[8].Children[0].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[8].Children[0].ImageURL  =images_icon/temperature.png
+-> .Children[0].Children[8].Children[1].id  =73
+-> .Children[0].Children[8].Children[1].Text  =Load
+-> .Children[0].Children[8].Children[1].Children[0].id  =74
+-> .Children[0].Children[8].Children[1].Children[0].Text  =Used Space
+-> .Children[0].Children[8].Children[1].Children[0].Min  =93,8 %
+-> .Children[0].Children[8].Children[1].Children[0].Value  =93,8 %
+-> .Children[0].Children[8].Children[1].Children[0].Max  =93,9 %
+-> .Children[0].Children[8].Children[1].Children[0].ImageURL  =images/transparent.png
+-> .Children[0].Children[8].Children[1].ImageURL  =images_icon/load.png
+-> .Children[0].Children[8].ImageURL  =images_icon/hdd.png
+-> .Children[0].ImageURL  =images_icon/computer.png
+-> .Min  =Min
+-> .Value  =Value
+-> .Max  =Max

I tried decoding the data (with json_get), but the answer is empty. maybe I'm wrong code written?

#include "json.au3"

$Url = "http://" & IniRead("Settings.ini", "Settings", "ohwm_ip","") & ":" & IniRead("Settings.ini", "Settings", "ohwm_port","") & "/data.json"
$data = BinaryToString(InetRead($Url))
$object = Json_Decode($data)

$sFinaldata = json_get($object, 'Children[0].id')
MsgBox(0,"", $sFinaldata)

How do I get the data correctly? For example, the temperature of the processor, or the speed of the cooler, etc.?

2.json

Link to comment
Share on other sites

Using your 2.json try this - it should point you in the right direction.

 

#Include "Json.au3"

_Test()

Func _Test()
    Local $Json1 = FileRead(@ScriptDir & "\2.json")
    Json_Dump($Json1)
    Local $Data1 = Json_Decode($Json1)
    Local $temp = json_get($Data1, '.Children[0].Children[0].Children[0].Children[1].Children[0].Value')
    Local $fs = json_get($Data1, '.Children[0].Children[0].Children[0].Children[2].Children[0].Value')
    MsgBox(0, "", "Tempature = " & $temp & @CRLF &"Fan Speed = " & $fs)
EndFunc

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...