Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 73.894
» Latest member: catwade6
» Forum threads: 215
» Forum posts: 924
Full Statistics
|
Online Users |
There are currently 89 online users. » 0 Member(s) | 89 Guest(s)
|
Latest Threads |
Grafana Dashboard Summenl...
Forum: SmartPi - Deutsch
Last Post: daniel.pernold
24.05.2023, 15:07
» Replies: 15
» Views: 22.752
|
SmartPi nicht mehr mit In...
Forum: SmartPi - Deutsch
Last Post: jens
04.04.2023, 12:28
» Replies: 3
» Views: 1.738
|
InFluxDB
Forum: SmartPi - Deutsch
Last Post: daniel.pernold
28.02.2023, 22:49
» Replies: 9
» Views: 4.980
|
Tagesverbrauch über die l...
Forum: SmartPi - Deutsch
Last Post: daniel.pernold
19.09.2022, 10:05
» Replies: 12
» Views: 21.480
|
Weboberfläche nicht errei...
Forum: SmartPi - Deutsch
Last Post: sysop
19.09.2022, 09:17
» Replies: 1
» Views: 1.740
|
Grafana in beta.smartpi.e...
Forum: SmartPi - Deutsch
Last Post: sysop
19.09.2022, 09:14
» Replies: 1
» Views: 1.612
|
MQTT - verfügbare Werte
Forum: SmartPi - Deutsch
Last Post: daniel.pernold
25.08.2022, 01:45
» Replies: 2
» Views: 5.580
|
SmartPi aus Kickstarterpr...
Forum: SmartPi - Deutsch
Last Post: jens
01.06.2022, 11:20
» Replies: 7
» Views: 7.394
|
Consumption Total und Pro...
Forum: SmartPi - Deutsch
Last Post: jens
31.05.2022, 10:19
» Replies: 15
» Views: 13.325
|
SmartPi-buster Image Fehl...
Forum: SmartPi - Deutsch
Last Post: jens
24.05.2022, 09:24
» Replies: 3
» Views: 3.652
|
|
|
Understanding the data/code |
Posted by: SuperQ - 26.04.2017, 17:11 - Forum: SmartPi - English
- Replies (5)
|
 |
I've been reading the code, trying to understand how/why everything works. Mostly I've been going over main/reader.go and smartpi/ade7878.go.
I'm wondering if there is some additional documentation on all of the inputs and outputs.
I'm considering refactoring this code to make it easier to follow. The big one is smartpi.ReadoutValues(), which returns a completely unformated slice of floats. This should really be a struct, or broken up into several smaller sub-functions.
For example, in the main for{} loop of readout.go, there is a sub-loop that updates all of the current/voltage gauges (I think), but it ignores the cumulative counters every 5 seconds.
Then every 12 iterations (1min) it updates the database storage and two persistent cumulative counters.
Then it resets the value state for everything and starts the temporary cumulative counters over again.
Does this all sound correct?
I'm also wondering what unit these values are:
EB1: 1.116625 EB2: 0.0341316 EB3: 0.033458143 EL1: 0 EL2: 0 EL3: 0
One more question, it looks like there is no way to ignore disconnected phases, my apartment only has one phase, I can turn off voltage readings, but it appears to be counting some current against the cumulative counter on phases that are disconnected.
|
|
|
Welcome |
Posted by: jens - 26.04.2017, 13:42 - Forum: SmartPi - English
- Replies (1)
|
 |
Dear users,
Welcome to the SmartPi forum.
Here you can post questions, wishes, suggestions and ideas to the SmartPi.
Best regards Jens
|
|
|
Herzlich willkommen |
Posted by: jens - 26.04.2017, 13:41 - Forum: SmartPi - Deutsch
- Replies (1)
|
 |
Liebe Benutzer,
herzlich willkommen im Forum zum SmartPi.
Hier könnt ihr Fragen, Wünsche, Anregungen und Ideen zum SmartPi posten.
Viele Grüße Jens
|
|
|
|