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
web-this/boiler/web-boiler-ajax.c
- Committer:
- andrewboyson
- Date:
- 2021-04-23
- Revision:
- 106:41ed3ea0bbba
- Parent:
- 105:1899f7ed17ec
File content as of revision 106:41ed3ea0bbba:
#include <stdint.h> #include <stdio.h> #include "http.h" #include "boiler.h" #include "radiator.h" #include "ds18b20.h" #include "program.h" #include "1-wire-device.h" void WebBoilerAjax() { HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL); HttpAddInt16AsHex(BoilerGetTankDS18B20Value() ); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetOutputDS18B20Value()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetReturnDS18B20Value()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetRtnDelDS18B20Value()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetDeltaTDS18B20Value()); HttpAddChar('\n'); int nibble = 0; if (BoilerCall ) nibble |= 1; if (BoilerPump ) nibble |= 2; if (BoilerCallEnable ) nibble |= 4; HttpAddNibbleAsHex (nibble); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetFullSpeedSecs ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetTankSetPoint ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetTankHysteresis ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetRunOnDeltaT ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetRunOnTime ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerPumpSpeed); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerPumpPwm); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetPumpSpeedCalling ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetRampDownTime ()); HttpAddChar('\n'); HttpAddByteAsHex (BoilerGetOutputTarget ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetMinSpeed ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetMidSpeedPwm ()); HttpAddChar('\n'); HttpAddInt16AsHex(BoilerGetFullSpeedDeltaT ()); HttpAddChar('\n'); }