Format JSON

This commit is contained in:
atse 2024-07-03 13:40:50 +08:00
parent 0330b2ae7c
commit cff5bd9d61

View File

@ -1,417 +1,417 @@
{
"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,
"tip": "The measured temperature, according to the B-Parameter equation"
},
{
"name":"tec_i",
"title":"Current through TEC",
"type":"float",
"siPrefix":true,
"suffix":"A",
"decimals":6,
"readonly":true,
"name": "tec_i",
"title": "Current through TEC",
"type": "float",
"siPrefix": true,
"suffix": "A",
"decimals": 6,
"readonly": true,
"tip": "The measured current going through the TEC"
},
{
"name":"output",
"title":"Output Settings",
"expanded":true,
"type":"group",
"name": "output",
"title": "Output Settings",
"expanded": true,
"type": "group",
"tip": "Settings of the output through to the load",
"children":[
"children": [
{
"name":"i_set",
"title":"Set Current (mA)",
"type":"float_auto",
"value":0,
"step":100,
"limits":[
"name": "i_set",
"title": "Set Current (mA)",
"type": "float_auto",
"value": 0,
"step": 100,
"limits": [
-2000,
2000
],
"decimals":6,
"compactHeight":false,
"param":[
"decimals": 6,
"compactHeight": false,
"param": [
"pwm",
"$ch",
"i_set"
],
"auto":false,
"auto_label":"PID",
"auto_tip":"Control by PID",
"auto_param":[
"auto": false,
"auto_label": "PID",
"auto_tip": "Control by PID",
"auto_param": [
"pwm",
"$ch",
"pid"
],
"tip": "",
"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"
],
"tip": "The maximum cooling (+ve) current through the output pins",
"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"
],
"tip": "The maximum heating (-ve) current through the output pins",
"lock":false
"lock": false
},
{
"name":"max_v",
"title":"Max Absolute Voltage (V)",
"type":"float",
"value":0,
"step":0.1,
"limits":[
"name": "max_v",
"title": "Max Absolute Voltage (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"
],
"tip": "The maximum voltage across the output pins",
"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, including for the B-Parameter conversion.",
"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 equation",
"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 equation",
"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"
],
"tip": "The B-Parameter",
"lock":false
"lock": false
},
{
"name":"rate",
"title":"Postfilter Rate",
"type":"list",
"value":16.67,
"param":[
"name": "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
},
"tip": "Filter some frequencies on the SENS input",
"lock":false
"lock": false
}
]
},
{
"name":"pid",
"title":"PID Settings",
"expanded":false,
"type":"group",
"name": "pid",
"title": "PID Settings",
"expanded": false,
"type": "group",
"tip": "",
"children":[
"children": [
{
"name":"target",
"title":"Setpoint (°C)",
"type":"float",
"value":25,
"step":0.1,
"limits":[
"name": "target",
"title": "Setpoint (°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"
],
"tip": "",
"lock":false
"lock": false
},
{
"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"
],
"tip": "Proportional gain",
"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"
],
"tip": "Integral gain",
"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"
],
"tip": "Differential gain",
"lock":false
"lock": false
},
{
"name":"pid_output_clamping",
"title":"PID Output Clamping",
"expanded":true,
"type":"group",
"name": "pid_output_clamping",
"title": "PID Output Clamping",
"expanded": true,
"type": "group",
"tip": "Clamps PID outputs to specified range\nCould be different than output limits",
"children":[
"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"
],
"tip": "Minimum PID output",
"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"
],
"tip": "Maximum PID output",
"lock":false
"lock": false
}
]
},
{
"name":"pid_autotune",
"title":"PID Autotune",
"expanded":false,
"type":"group",
"name": "pid_autotune",
"title": "PID Autotune",
"expanded": false,
"type": "group",
"tip": "Automatically tune PID parameters",
"children":[
"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"
],
"tip": "The target temperature to autotune for"
},
{
"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"
],
"tip": "The testing current when autotuning"
},
{
"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"
],
"tip": "The temperature swing around the target"
},
{
"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"
],
"tip": "Amount of time to lookback"
},
{
"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"
}
]
}
}