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", "title": "Temperature",
"type":"float", "type": "float",
"format":"{value:.4f} °C", "format": "{value:.4f} °C",
"readonly":true, "readonly": true,
"tip": "The measured temperature, according to the B-Parameter equation" "tip": "The measured temperature, according to the B-Parameter equation"
}, },
{ {
"name":"tec_i", "name": "tec_i",
"title":"Current through TEC", "title": "Current through TEC",
"type":"float", "type": "float",
"siPrefix":true, "siPrefix": true,
"suffix":"A", "suffix": "A",
"decimals":6, "decimals": 6,
"readonly":true, "readonly": true,
"tip": "The measured current going through the TEC" "tip": "The measured current going through the TEC"
}, },
{ {
"name":"output", "name": "output",
"title":"Output Settings", "title": "Output Settings",
"expanded":true, "expanded": true,
"type":"group", "type": "group",
"tip": "Settings of the output through to the load", "tip": "Settings of the output through to the load",
"children":[ "children": [
{ {
"name":"i_set", "name": "i_set",
"title":"Set Current (mA)", "title": "Set Current (mA)",
"type":"float_auto", "type": "float_auto",
"value":0, "value": 0,
"step":100, "step": 100,
"limits":[ "limits": [
-2000, -2000,
2000 2000
], ],
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pwm", "pwm",
"$ch", "$ch",
"i_set" "i_set"
], ],
"auto":false, "auto": false,
"auto_label":"PID", "auto_label": "PID",
"auto_tip":"Control by PID", "auto_tip": "Control by PID",
"auto_param":[ "auto_param": [
"pwm", "pwm",
"$ch", "$ch",
"pid" "pid"
], ],
"tip": "", "tip": "",
"lock":false "lock": false
}, },
{ {
"name":"limits", "name": "limits",
"title":"Limits", "title": "Limits",
"expanded":true, "expanded": true,
"type":"group", "type": "group",
"children":[ "children": [
{ {
"name":"max_i_pos", "name": "max_i_pos",
"title":"Max Cooling Current (mA)", "title": "Max Cooling Current (mA)",
"type":"float", "type": "float",
"value":0, "value": 0,
"step":100, "step": 100,
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"limits":[ "limits": [
0, 0,
2000 2000
], ],
"param":[ "param": [
"pwm", "pwm",
"$ch", "$ch",
"max_i_pos" "max_i_pos"
], ],
"tip": "The maximum cooling (+ve) current through the output pins", "tip": "The maximum cooling (+ve) current through the output pins",
"lock":false "lock": false
}, },
{ {
"name":"max_i_neg", "name": "max_i_neg",
"title":"Max Heating Current (mA)", "title": "Max Heating Current (mA)",
"type":"float", "type": "float",
"value":0, "value": 0,
"step":100, "step": 100,
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"limits":[ "limits": [
0, 0,
2000 2000
], ],
"param":[ "param": [
"pwm", "pwm",
"$ch", "$ch",
"max_i_neg" "max_i_neg"
], ],
"tip": "The maximum heating (-ve) current through the output pins", "tip": "The maximum heating (-ve) current through the output pins",
"lock":false "lock": false
}, },
{ {
"name":"max_v", "name": "max_v",
"title":"Max Absolute Voltage (V)", "title": "Max Absolute Voltage (V)",
"type":"float", "type": "float",
"value":0, "value": 0,
"step":0.1, "step": 0.1,
"limits":[ "limits": [
0, 0,
5 5
], ],
"siPrefix":true, "siPrefix": true,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pwm", "pwm",
"$ch", "$ch",
"max_v" "max_v"
], ],
"tip": "The maximum voltage across the output pins", "tip": "The maximum voltage across the output pins",
"lock":false "lock": false
} }
] ]
} }
] ]
}, },
{ {
"name":"thermistor", "name": "thermistor",
"title":"Thermistor Settings", "title": "Thermistor Settings",
"expanded":true, "expanded": true,
"type":"group", "type": "group",
"tip": "Settings of the connected Thermistor, including for the B-Parameter conversion.", "tip": "Settings of the connected Thermistor, including for the B-Parameter conversion.",
"children":[ "children": [
{ {
"name":"t0", "name": "t0",
"title":"T₀ (°C)", "title": "T₀ (°C)",
"type":"float", "type": "float",
"value":25, "value": 25,
"step":0.1, "step": 0.1,
"limits":[ "limits": [
-100, -100,
100 100
], ],
"format":"{value:.4f}", "format": "{value:.4f}",
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"s-h", "s-h",
"$ch", "$ch",
"t0" "t0"
], ],
"tip": "The origin temperature for the B-Parameter equation", "tip": "The origin temperature for the B-Parameter equation",
"lock":false "lock": false
}, },
{ {
"name":"r0", "name": "r0",
"title":"R₀ (Ω)", "title": "R₀ (Ω)",
"type":"float", "type": "float",
"value":10000, "value": 10000,
"step":1, "step": 1,
"siPrefix":true, "siPrefix": true,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"s-h", "s-h",
"$ch", "$ch",
"r0" "r0"
], ],
"tip": "The origin resistance for the B-Parameter equation", "tip": "The origin resistance for the B-Parameter equation",
"lock":false "lock": false
}, },
{ {
"name":"b", "name": "b",
"title":"B (K)", "title": "B (K)",
"type":"float", "type": "float",
"value":3950, "value": 3950,
"step":1, "step": 1,
"decimals":4, "decimals": 4,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"s-h", "s-h",
"$ch", "$ch",
"b" "b"
], ],
"tip": "The B-Parameter", "tip": "The B-Parameter",
"lock":false "lock": false
}, },
{ {
"name":"rate", "name": "rate",
"title":"Postfilter Rate", "title": "Postfilter Rate",
"type":"list", "type": "list",
"value":16.67, "value": 16.67,
"param":[ "param": [
"postfilter", "postfilter",
"$ch", "$ch",
"rate" "rate"
], ],
"limits":{ "limits": {
"Off":null, "Off": null,
"16.67 Hz":16.67, "16.67 Hz": 16.67,
"20 Hz":20.0, "20 Hz": 20.0,
"21.25 Hz":21.25, "21.25 Hz": 21.25,
"27 Hz":27.0 "27 Hz": 27.0
}, },
"tip": "Filter some frequencies on the SENS input", "tip": "Filter some frequencies on the SENS input",
"lock":false "lock": false
} }
] ]
}, },
{ {
"name":"pid", "name": "pid",
"title":"PID Settings", "title": "PID Settings",
"expanded":false, "expanded": false,
"type":"group", "type": "group",
"tip": "", "tip": "",
"children":[ "children": [
{ {
"name":"target", "name": "target",
"title":"Setpoint (°C)", "title": "Setpoint (°C)",
"type":"float", "type": "float",
"value":25, "value": 25,
"step":0.1, "step": 0.1,
"limits":[ "limits": [
-273, -273,
300 300
], ],
"format":"{value:.4f}", "format": "{value:.4f}",
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pid", "pid",
"ch", "ch",
"target" "target"
], ],
"tip": "", "tip": "",
"lock":false "lock": false
}, },
{ {
"name":"kp", "name": "kp",
"title":"Kp", "title": "Kp",
"type":"float", "type": "float",
"step":0.1, "step": 0.1,
"suffix":"", "suffix": "",
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pid", "pid",
"$ch", "$ch",
"kp" "kp"
], ],
"tip": "Proportional gain", "tip": "Proportional gain",
"lock":false "lock": false
}, },
{ {
"name":"ki", "name": "ki",
"title":"Ki", "title": "Ki",
"type":"float", "type": "float",
"step":0.1, "step": 0.1,
"suffix":"Hz", "suffix": "Hz",
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pid", "pid",
"$ch", "$ch",
"ki" "ki"
], ],
"tip": "Integral gain", "tip": "Integral gain",
"lock":false "lock": false
}, },
{ {
"name":"kd", "name": "kd",
"title":"Kd", "title": "Kd",
"type":"float", "type": "float",
"step":0.1, "step": 0.1,
"suffix":"s", "suffix": "s",
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pid", "pid",
"$ch", "$ch",
"kd" "kd"
], ],
"tip": "Differential gain", "tip": "Differential gain",
"lock":false "lock": false
}, },
{ {
"name":"pid_output_clamping", "name": "pid_output_clamping",
"title":"PID Output Clamping", "title": "PID Output Clamping",
"expanded":true, "expanded": true,
"type":"group", "type": "group",
"tip": "Clamps PID outputs to specified range\nCould be different than output limits", "tip": "Clamps PID outputs to specified range\nCould be different than output limits",
"children":[ "children": [
{ {
"name":"output_min", "name": "output_min",
"title":"Minimum (mA)", "title": "Minimum (mA)",
"type":"float", "type": "float",
"step":100, "step": 100,
"limits":[ "limits": [
-2000, -2000,
2000 2000
], ],
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pid", "pid",
"$ch", "$ch",
"output_min" "output_min"
], ],
"tip": "Minimum PID output", "tip": "Minimum PID output",
"lock":false "lock": false
}, },
{ {
"name":"output_max", "name": "output_max",
"title":"Maximum (mA)", "title": "Maximum (mA)",
"type":"float", "type": "float",
"step":100, "step": 100,
"limits":[ "limits": [
-2000, -2000,
2000 2000
], ],
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pid", "pid",
"$ch", "$ch",
"output_max" "output_max"
], ],
"tip": "Maximum PID output", "tip": "Maximum PID output",
"lock":false "lock": false
} }
] ]
}, },
{ {
"name":"pid_autotune", "name": "pid_autotune",
"title":"PID Autotune", "title": "PID Autotune",
"expanded":false, "expanded": false,
"type":"group", "type": "group",
"tip": "Automatically tune PID parameters", "tip": "Automatically tune PID parameters",
"children":[ "children": [
{ {
"name":"target_temp", "name": "target_temp",
"title":"Target Temperature (°C)", "title": "Target Temperature (°C)",
"type":"float", "type": "float",
"value":20, "value": 20,
"step":0.1, "step": 0.1,
"format":"{value:.4f}", "format": "{value:.4f}",
"compactHeight":false, "compactHeight": false,
"pid_autotune":[ "pid_autotune": [
"target_temp", "target_temp",
"$ch" "$ch"
], ],
"tip": "The target temperature to autotune for" "tip": "The target temperature to autotune for"
}, },
{ {
"name":"test_current", "name": "test_current",
"title":"Test Current (mA)", "title": "Test Current (mA)",
"type":"float", "type": "float",
"value":0, "value": 0,
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"step":100, "step": 100,
"limits":[ "limits": [
-2000, -2000,
2000 2000
], ],
"pid_autotune":[ "pid_autotune": [
"test_current", "test_current",
"$ch" "$ch"
], ],
"tip": "The testing current when autotuning" "tip": "The testing current when autotuning"
}, },
{ {
"name":"temp_swing", "name": "temp_swing",
"title":"Temperature Swing (°C)", "title": "Temperature Swing (°C)",
"type":"float", "type": "float",
"value":1.5, "value": 1.5,
"step":0.1, "step": 0.1,
"prefix":"±", "prefix": "±",
"format":"{value:.4f}", "format": "{value:.4f}",
"compactHeight":false, "compactHeight": false,
"pid_autotune":[ "pid_autotune": [
"temp_swing", "temp_swing",
"$ch" "$ch"
], ],
"tip": "The temperature swing around the target" "tip": "The temperature swing around the target"
}, },
{ {
"name":"lookback", "name": "lookback",
"title":"Lookback (s)", "title": "Lookback (s)",
"type":"float", "type": "float",
"value":3.0, "value": 3.0,
"step":0.1, "step": 0.1,
"format":"{value:.4f}", "format": "{value:.4f}",
"compactHeight":false, "compactHeight": false,
"pid_autotune":[ "pid_autotune": [
"lookback", "lookback",
"$ch" "$ch"
], ],
"tip": "Amount of time to lookback" "tip": "Amount of time to lookback"
}, },
{ {
"name":"run_pid", "name": "run_pid",
"title":"Run", "title": "Run",
"type":"action", "type": "action",
"tip":"Run PID Autotune with above settings" "tip": "Run PID Autotune with above settings"
} }
] ]
} }
] ]
}, },
{ {
"name":"save", "name": "save",
"title":"Save to flash", "title": "Save to flash",
"type":"action", "type": "action",
"tip":"Save settings to thermostat, applies on reset" "tip": "Save settings to thermostat, applies on reset"
}, },
{ {
"name":"load", "name": "load",
"title":"Load from flash", "title": "Load from flash",
"type":"action", "type": "action",
"tip":"Load settings from flash" "tip": "Load settings from flash"
} }
] ]
} }