mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-09 09:45:45 +00:00
Rebase and squash, add ALERT to CHT831X (#1259)
This commit is contained in:
committed by
GitHub
parent
de84034584
commit
8a7a68cb09
@ -273,8 +273,8 @@ static int http_tasmota_json_SENSOR(void* request, jsonCb_t printer) {
|
||||
// close ENERGY block
|
||||
printer(request, "},");
|
||||
}
|
||||
if (DRV_IsRunning("CHT8305")) {
|
||||
g_pin_1 = PIN_FindPinIndexForRole(IOR_CHT8305_DAT, g_pin_1);
|
||||
if (DRV_IsRunning("CHT83XX")) {
|
||||
g_pin_1 = PIN_FindPinIndexForRole(IOR_CHT83XX_DAT, g_pin_1);
|
||||
channel_1 = g_cfg.pins.channels[g_pin_1];
|
||||
channel_2 = g_cfg.pins.channels2[g_pin_1];
|
||||
|
||||
@ -282,7 +282,7 @@ static int http_tasmota_json_SENSOR(void* request, jsonCb_t printer) {
|
||||
chan_val2 = CHANNEL_GetFloat(channel_2);
|
||||
|
||||
// writer header
|
||||
printer(request, "\"CHT8305\":");
|
||||
printer(request, "\"CHT83XX\":");
|
||||
// following check will clear NaN values
|
||||
printer(request, "{");
|
||||
printer(request, "\"Temperature\": %.1f,", chan_val1);
|
||||
|
||||
@ -441,8 +441,8 @@ const char* htmlPinRoleNames[] = {
|
||||
"DHT12",
|
||||
"DHT21",
|
||||
"DHT22",
|
||||
"CHT8305_SDA",
|
||||
"CHT8305_SCK",
|
||||
"CHT83XX_SDA",
|
||||
"CHT83XX_SCK",
|
||||
"SHT3X_SDA",
|
||||
"SHT3X_SCK",
|
||||
"SoftSDA",
|
||||
|
||||
Reference in New Issue
Block a user