Format JSON

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

View File

@ -1,407 +1,407 @@
{ {
"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
}, },
{ {
"name":"current", "name": "current",
"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
}, },
{ {
"name":"output", "name": "output",
"title":"Output Settings", "title": "Output Settings",
"expanded":true, "expanded": true,
"type":"group", "type": "group",
"children":[ "children": [
{ {
"name":"control_method", "name": "control_method",
"title":"Control Method", "title": "Control Method",
"type":"mutex", "type": "mutex",
"limits":{ "limits": {
"Constant Current": "constant_current", "Constant Current": "constant_current",
"Temperature PID": "temperature_pid" "Temperature PID": "temperature_pid"
}, },
"activaters":[ "activaters": [
null, null,
[ [
"pwm", "pwm",
"ch", "ch",
"pid" "pid"
] ]
], ],
"children":[ "children": [
{ {
"name":"set_current", "name": "set_current",
"title":"Set Current (mA)", "title": "Set Current (mA)",
"type":"float", "type": "float",
"value":0, "value": 0,
"step":100, "step": 100,
"limits":[ "limits": [
-2000, -2000,
2000 2000
], ],
"triggerOnShow":true, "triggerOnShow": true,
"decimals":6, "decimals": 6,
"compactHeight":false, "compactHeight": false,
"param":[ "param": [
"pwm", "pwm",
"ch", "ch",
"i_set" "i_set"
], ],
"lock":false "lock": false
}, },
{ {
"name": "set_temperature", "name": "set_temperature",
"title":"Set Temperature (°C)", "title": "Set Temperature (°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"
], ],
"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"
], ],
"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"
], ],
"lock":false "lock": false
}, },
{ {
"name":"max_v", "name": "max_v",
"title":"Max Voltage Difference (V)", "title": "Max Voltage Difference (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"
], ],
"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", "tip": "Settings of the connected Thermistor",
"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 Formula", "tip": "The origin temperature for the B-Parameter Formula",
"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 Formula", "tip": "The origin resistance for the B-Parameter Formula",
"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"
], ],
"lock":false "lock": false
}, },
{ {
"name":"postfilter_rate", "name": "postfilter_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
}, },
"lock":false "lock": false
} }
] ]
}, },
{ {
"name":"pid", "name": "pid",
"title":"PID Settings", "title": "PID Settings",
"expanded":true, "expanded": true,
"type":"group", "type": "group",
"children":[ "children": [
{ {
"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"
], ],
"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"
], ],
"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"
], ],
"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",
"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"
], ],
"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"
], ],
"lock":false "lock": false
} }
] ]
}, },
{ {
"name":"pid_autotune", "name": "pid_autotune",
"title":"PID Autotune", "title": "PID Autotune",
"expanded":false, "expanded": false,
"type":"group", "type": "group",
"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"
] ]
}, },
{ {
"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"
] ]
}, },
{ {
"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"
] ]
}, },
{ {
"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"
] ]
}, },
{ {
"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"
} }
] ]
} }