David00 / rpi-power-monitor

Power Monitor (for Raspberry Pi)
https://david00.github.io/rpi-power-monitor/
GNU General Public License v3.0
1k stars 103 forks source link

Terminal mode showing watts under amps column in summary section #126

Closed David00 closed 5 months ago

David00 commented 5 months ago

This issue was reported by a user via email, and I'm documenting it here to track and associate an incoming fix for.

The problem is that, when using terminal mode (--mode terminal) to run the power monitor, the Amps column in the Summary table section shows the same value as the Watts column. Here is an example:

INFO :
+-------------+---------+---------+-------+-------+-------+--------+
|             |   ct1   |   ct2   |  ct3  |  ct4  |  ct5  |  ct6   |
+-------------+---------+---------+-------+-------+-------+--------+
|    Watts    |  42.948 | 572.302 | 15.49 | 4.141 | 6.895 | 27.443 |
|   Current   |  0.771  |  5.123  | 0.142 | 0.142 | 0.149 | 0.142  |
|     P.F.    |  0.462  |  0.927  | 0.452 | 0.121 | 0.192 | 0.803  |
|   Voltage   | 120.569 |         |       |       |       |        |
| Sample Rate |  74.48  |   kSPS  |       |       |       |        |
+-------------+---------+---------+-------+-------+-------+--------+
+------------------+-----------+-----------+--------------+
|   Summary Name   |   Watts   |    Amps   | Power Factor |
+------------------+-----------+-----------+--------------+
| Home Consumption | 615.251 W | 615.251 A |      --      |
|    Production    |   0.0 W   |   0.0 A   |     0.0      |
|       Net        | 615.251 W | 615.251 A |      --      |
+------------------+-----------+-----------+--------------+