Format JSON

This commit is contained in:
atse 2024-07-03 13:40:50 +08:00
parent 9617d64c56
commit 8b1e62962f

View File

@ -1,36 +1,36 @@
{
"ctrl_panel":[
"ctrl_panel": [
{
"name":"temperature",
"name": "temperature",
"title": "Temperature",
"type":"float",
"format":"{value:.4f} °C",
"readonly":true
"type": "float",
"format": "{value:.4f} °C",
"readonly": true
},
{
"name":"current",
"title":"Current through TEC",
"type":"float",
"siPrefix":true,
"suffix":"A",
"decimals":6,
"readonly":true
"name": "current",
"title": "Current through TEC",
"type": "float",
"siPrefix": true,
"suffix": "A",
"decimals": 6,
"readonly": true
},
{
"name":"output",
"title":"Output Settings",
"expanded":true,
"type":"group",
"children":[
"name": "output",
"title": "Output Settings",
"expanded": true,
"type": "group",
"children": [
{
"name":"control_method",
"title":"Control Method",
"type":"mutex",
"limits":{
"name": "control_method",
"title": "Control Method",
"type": "mutex",
"limits": {
"Constant Current": "constant_current",
"Temperature PID": "temperature_pid"
},
"activaters":[
"activaters": [
null,
[
"pwm",
@ -38,370 +38,370 @@
"pid"
]
],
"children":[
"children": [
{
"name":"set_current",
"title":"Set Current (mA)",
"type":"float",
"value":0,
"step":100,
"limits":[
"name": "set_current",
"title": "Set Current (mA)",
"type": "float",
"value": 0,
"step": 100,
"limits": [
-2000,
2000
],
"triggerOnShow":true,
"decimals":6,
"compactHeight":false,
"param":[
"triggerOnShow": true,
"decimals": 6,
"compactHeight": false,
"param": [
"pwm",
"ch",
"i_set"
],
"lock":false
"lock": false
},
{
"name": "set_temperature",
"title":"Set Temperature (°C)",
"type":"float",
"value":25,
"step":0.1,
"limits":[
"title": "Set Temperature (°C)",
"type": "float",
"value": 25,
"step": 0.1,
"limits": [
-273,
300
],
"format":"{value:.4f}",
"compactHeight":false,
"param":[
"format": "{value:.4f}",
"compactHeight": false,
"param": [
"pid",
"ch",
"target"
],
"lock":false
"lock": false
}
]
},
{
"name":"limits",
"title":"Limits",
"expanded":true,
"type":"group",
"children":[
"name": "limits",
"title": "Limits",
"expanded": true,
"type": "group",
"children": [
{
"name":"max_i_pos",
"title":"Max Cooling Current (mA)",
"type":"float",
"value":0,
"step":100,
"decimals":6,
"compactHeight":false,
"limits":[
"name": "max_i_pos",
"title": "Max Cooling Current (mA)",
"type": "float",
"value": 0,
"step": 100,
"decimals": 6,
"compactHeight": false,
"limits": [
0,
2000
],
"param":[
"param": [
"pwm",
"ch",
"max_i_pos"
],
"lock":false
"lock": false
},
{
"name":"max_i_neg",
"title":"Max Heating Current (mA)",
"type":"float",
"value":0,
"step":100,
"decimals":6,
"compactHeight":false,
"limits":[
"name": "max_i_neg",
"title": "Max Heating Current (mA)",
"type": "float",
"value": 0,
"step": 100,
"decimals": 6,
"compactHeight": false,
"limits": [
0,
2000
],
"param":[
"param": [
"pwm",
"ch",
"max_i_neg"
],
"lock":false
"lock": false
},
{
"name":"max_v",
"title":"Max Voltage Difference (V)",
"type":"float",
"value":0,
"step":0.1,
"limits":[
"name": "max_v",
"title": "Max Voltage Difference (V)",
"type": "float",
"value": 0,
"step": 0.1,
"limits": [
0,
5
],
"siPrefix":true,
"compactHeight":false,
"param":[
"siPrefix": true,
"compactHeight": false,
"param": [
"pwm",
"ch",
"max_v"
],
"lock":false
"lock": false
}
]
}
]
},
{
"name":"thermistor",
"title":"Thermistor Settings",
"expanded":true,
"type":"group",
"name": "thermistor",
"title": "Thermistor Settings",
"expanded": true,
"type": "group",
"tip": "Settings of the connected Thermistor",
"children":[
"children": [
{
"name":"t0",
"title":"T₀ (°C)",
"type":"float",
"value":25,
"step":0.1,
"limits":[
"name": "t0",
"title": "T₀ (°C)",
"type": "float",
"value": 25,
"step": 0.1,
"limits": [
-100,
100
],
"format":"{value:.4f}",
"compactHeight":false,
"param":[
"format": "{value:.4f}",
"compactHeight": false,
"param": [
"s-h",
"ch",
"t0"
],
"tip": "The origin temperature for the B-Parameter Formula",
"lock":false
"lock": false
},
{
"name":"r0",
"title":"R₀ (Ω)",
"type":"float",
"value":10000,
"step":1,
"siPrefix":true,
"compactHeight":false,
"param":[
"name": "r0",
"title": "R₀ (Ω)",
"type": "float",
"value": 10000,
"step": 1,
"siPrefix": true,
"compactHeight": false,
"param": [
"s-h",
"ch",
"r0"
],
"tip": "The origin resistance for the B-Parameter Formula",
"lock":false
"lock": false
},
{
"name":"b",
"title":"B (K)",
"type":"float",
"value":3950,
"step":1,
"decimals":4,
"compactHeight":false,
"param":[
"name": "b",
"title": "B (K)",
"type": "float",
"value": 3950,
"step": 1,
"decimals": 4,
"compactHeight": false,
"param": [
"s-h",
"ch",
"b"
],
"lock":false
"lock": false
},
{
"name":"postfilter_rate",
"title":"Postfilter Rate",
"type":"list",
"value":16.67,
"param":[
"name": "postfilter_rate",
"title": "Postfilter Rate",
"type": "list",
"value": 16.67,
"param": [
"postfilter",
"ch",
"rate"
],
"limits":{
"Off":null,
"16.67 Hz":16.67,
"20 Hz":20.0,
"21.25 Hz":21.25,
"27 Hz":27.0
"limits": {
"Off": null,
"16.67 Hz": 16.67,
"20 Hz": 20.0,
"21.25 Hz": 21.25,
"27 Hz": 27.0
},
"lock":false
"lock": false
}
]
},
{
"name":"pid",
"title":"PID Settings",
"expanded":true,
"type":"group",
"children":[
"name": "pid",
"title": "PID Settings",
"expanded": true,
"type": "group",
"children": [
{
"name":"kp",
"title":"Kp",
"type":"float",
"step":0.1,
"suffix":"",
"compactHeight":false,
"param":[
"name": "kp",
"title": "Kp",
"type": "float",
"step": 0.1,
"suffix": "",
"compactHeight": false,
"param": [
"pid",
"ch",
"kp"
],
"lock":false
"lock": false
},
{
"name":"ki",
"title":"Ki",
"type":"float",
"step":0.1,
"suffix":"Hz",
"compactHeight":false,
"param":[
"name": "ki",
"title": "Ki",
"type": "float",
"step": 0.1,
"suffix": "Hz",
"compactHeight": false,
"param": [
"pid",
"ch",
"ki"
],
"lock":false
"lock": false
},
{
"name":"kd",
"title":"Kd",
"type":"float",
"step":0.1,
"suffix":"s",
"compactHeight":false,
"param":[
"name": "kd",
"title": "Kd",
"type": "float",
"step": 0.1,
"suffix": "s",
"compactHeight": false,
"param": [
"pid",
"ch",
"kd"
],
"lock":false
"lock": false
},
{
"name":"pid_output_clamping",
"title":"PID Output Clamping",
"expanded":true,
"type":"group",
"children":[
"name": "pid_output_clamping",
"title": "PID Output Clamping",
"expanded": true,
"type": "group",
"children": [
{
"name":"output_min",
"title":"Minimum (mA)",
"type":"float",
"step":100,
"limits":[
"name": "output_min",
"title": "Minimum (mA)",
"type": "float",
"step": 100,
"limits": [
-2000,
2000
],
"decimals":6,
"compactHeight":false,
"param":[
"decimals": 6,
"compactHeight": false,
"param": [
"pid",
"ch",
"output_min"
],
"lock":false
"lock": false
},
{
"name":"output_max",
"title":"Maximum (mA)",
"type":"float",
"step":100,
"limits":[
"name": "output_max",
"title": "Maximum (mA)",
"type": "float",
"step": 100,
"limits": [
-2000,
2000
],
"decimals":6,
"compactHeight":false,
"param":[
"decimals": 6,
"compactHeight": false,
"param": [
"pid",
"ch",
"output_max"
],
"lock":false
"lock": false
}
]
},
{
"name":"pid_autotune",
"title":"PID Autotune",
"expanded":false,
"type":"group",
"children":[
"name": "pid_autotune",
"title": "PID Autotune",
"expanded": false,
"type": "group",
"children": [
{
"name":"target_temp",
"title":"Target Temperature (°C)",
"type":"float",
"value":20,
"step":0.1,
"format":"{value:.4f}",
"compactHeight":false,
"pid_autotune":[
"name": "target_temp",
"title": "Target Temperature (°C)",
"type": "float",
"value": 20,
"step": 0.1,
"format": "{value:.4f}",
"compactHeight": false,
"pid_autotune": [
"target_temp",
"ch"
]
},
{
"name":"test_current",
"title":"Test Current (mA)",
"type":"float",
"value":0,
"decimals":6,
"compactHeight":false,
"step":100,
"limits":[
"name": "test_current",
"title": "Test Current (mA)",
"type": "float",
"value": 0,
"decimals": 6,
"compactHeight": false,
"step": 100,
"limits": [
-2000,
2000
],
"pid_autotune":[
"pid_autotune": [
"test_current",
"ch"
]
},
{
"name":"temp_swing",
"title":"Temperature Swing (°C)",
"type":"float",
"value":1.5,
"step":0.1,
"prefix":"±",
"format":"{value:.4f}",
"compactHeight":false,
"pid_autotune":[
"name": "temp_swing",
"title": "Temperature Swing (°C)",
"type": "float",
"value": 1.5,
"step": 0.1,
"prefix": "±",
"format": "{value:.4f}",
"compactHeight": false,
"pid_autotune": [
"temp_swing",
"ch"
]
},
{
"name":"lookback",
"title":"Lookback (s)",
"type":"float",
"value":3.0,
"step":0.1,
"format":"{value:.4f}",
"compactHeight":false,
"pid_autotune":[
"name": "lookback",
"title": "Lookback (s)",
"type": "float",
"value": 3.0,
"step": 0.1,
"format": "{value:.4f}",
"compactHeight": false,
"pid_autotune": [
"lookback",
"ch"
]
},
{
"name":"run_pid",
"title":"Run",
"type":"action",
"tip":"Run PID Autotune with above settings"
"name": "run_pid",
"title": "Run",
"type": "action",
"tip": "Run PID Autotune with above settings"
}
]
}
]
},
{
"name":"save",
"title":"Save to flash",
"type":"action",
"tip":"Save settings to thermostat, applies on reset"
"name": "save",
"title": "Save to flash",
"type": "action",
"tip": "Save settings to thermostat, applies on reset"
},
{
"name":"load",
"title":"Load from flash",
"type":"action",
"tip":"Load settings from flash"
"name": "load",
"title": "Load from flash",
"type": "action",
"tip": "Load settings from flash"
}
]
}
}