Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
Diff: web-this/boiler/web-boiler-query.c
- Revision:
- 105:1899f7ed17ec
- Parent:
- 104:46ce1aaf8be7
- Child:
- 106:41ed3ea0bbba
diff -r 46ce1aaf8be7 -r 1899f7ed17ec web-this/boiler/web-boiler-query.c --- a/web-this/boiler/web-boiler-query.c Wed Feb 10 17:24:36 2021 +0000 +++ b/web-this/boiler/web-boiler-query.c Tue Feb 23 20:35:07 2021 +0000 @@ -10,7 +10,19 @@ char* pName; char* pValue; pQuery = HttpQuerySplit(pQuery, &pName, &pValue); - + + + if (HttpSameStr(pName, "boilercallenable")) + { + BoilerCallEnable = !BoilerCallEnable; + } + + if (HttpSameStr(pName, "fullspeedsecs" )) + { + int value = HttpQueryValueAsInt(pValue); + BoilerSetFullSpeedSecs(value); + return; + } if (HttpSameStr(pName, "tanksetpoint" )) { int value = HttpQueryValueAsInt(pValue); @@ -26,7 +38,7 @@ if (HttpSameStr(pName, "boilerresidual")) { double value = HttpQueryValueAsDouble(pValue); - BoilerSetRunOnResidual16ths((int)(value * 16)); + BoilerSetRunOnDeltaT((int)(value * 16)); return; } if (HttpSameStr(pName, "boilerrunon" )) @@ -37,6 +49,15 @@ } if (HttpSameStr(pName, "pumpspeedcalling")) { + if (!pValue) return; + switch (pValue[0]) + { + case 0 : return; + case 'a': + case 'A': BoilerSetPumpSpeedCalling(-1); return; + case 't': + case 'T': BoilerSetPumpSpeedCalling(-2); return; + } int value = HttpQueryValueAsInt(pValue); BoilerSetPumpSpeedCalling(value); return; @@ -56,19 +77,19 @@ if (HttpSameStr(pName, "blrriseat0")) { double value = HttpQueryValueAsDouble(pValue); - BoilerSetRise16thsAt0((int)(value * 16)); + BoilerSetMinimumFlow(value); return; } if (HttpSameStr(pName, "blrriseat50")) { double value = HttpQueryValueAsDouble(pValue); - BoilerSetRise16thsAt50((int)(value * 16)); + BoilerSetMidFlowSpeed(value); return; } if (HttpSameStr(pName, "blrriseat100")) { double value = HttpQueryValueAsDouble(pValue); - BoilerSetRise16thsAt100((int)(value * 16)); + BoilerSetFullSpeedDeltaT((int)(value * 16)); return; } }