tuyamcu commands, time zone offset simple setting for ntp

This commit is contained in:
openshwprojects
2022-04-08 19:38:17 +02:00
parent e880a86e9a
commit 5a28f9f3a0
14 changed files with 627 additions and 114 deletions

View File

@ -132,6 +132,31 @@ int http_fn_index(http_request_t *request) {
hprintf128(request,"Temperature Channel %i value %i C<br>",i, iValue);
} else if(channelType == ChType_Temperature_div10) {
int iValue;
float fValue;
iValue = CHANNEL_Get(i);
fValue = iValue * 0.1f;
hprintf128(request,"Temperature Channel %i value %f C<br>",i, fValue);
} else if(channelType == ChType_Humidity) {
int iValue;
iValue = CHANNEL_Get(i);
hprintf128(request,"Humidity Channel %i value %i Percent<br>",i, iValue);
} else if(channelType == ChType_Humidity_div10) {
int iValue;
float fValue;
iValue = CHANNEL_Get(i);
fValue = iValue * 0.1f;
hprintf128(request,"Humidity Channel %i value %f Percent<br>",i, fValue);
} else if(BIT_CHECK(relayFlags,i)) {
const char *c;
if(CHANNEL_Check(i)) {