mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-12 22:17:17 +02:00
0.7.55
* fix prometheus builds * fix ESP32 default pinout #1159 * added `opendtufusion-dev` because of anoying `-DARDUINO_USB_CDC_ON_BOOT=1` flag * fix display of current power on `index` * fix OTA, was damaged by version `0.7.51`, need to use webinstaller (from `0.7.51` to `0.7.54`)
This commit is contained in:
parent
9a09b5f4f8
commit
a18a738a0a
8 changed files with 40 additions and 23 deletions
|
@ -585,7 +585,7 @@ class RestApi {
|
|||
invObj[F("enabled")] = (bool)iv->config->enabled;
|
||||
invObj[F("id")] = i;
|
||||
invObj[F("name")] = String(iv->config->name);
|
||||
invObj[F("cur_pwr")] = iv->getPosByChFld(CH0, FLD_PAC, rec);
|
||||
invObj[F("cur_pwr")] = ah::round3(iv->getChannelFieldValue(CH0, FLD_PAC, rec));
|
||||
invObj[F("is_avail")] = iv->isAvailable();
|
||||
invObj[F("is_producing")] = iv->isProducing();
|
||||
invObj[F("ts_last_success")] = iv->getLastTs(rec);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue