wewwx new variables

280 views
Skip to first unread message

maria gourniezaki

unread,
Jul 23, 2023, 1:13:40 PM7/23/23
to weewx-user
Hi all,

I have a weewx station running using the fileparse driver for about 4 years now.
All variables are read periodically from a memory file. Now I want to add two additional measurements from a solar panel.
Namely I need to store (and show as respective graphs) the current power in W and as an accumulative variable I would like to store (and show) the generated KWh values.
My question is: do I need to add those two fields into the db manually or is there an automatic way. Those two measurements are already present in my fileparse file together with the respective values.
What else should I add to the weewx config files so to define the nature of the variables (accumulative, etc).
Please help me to complete this task
BR
Maria

michael.k...@gmx.at

unread,
Jul 23, 2023, 1:19:14 PM7/23/23
to weewx-user
You probably want to use wee_database --add-column 

maria gourniezaki

unread,
Jul 23, 2023, 1:24:15 PM7/23/23
to weewx-user
Thank for your response. How to distinguish between accumulative fields and now accumulative ones?
Is this done into the weewx config file? And how about specifying the units (KW, Joule, etc)?

M.-

Rainer Lang

unread,
Jul 23, 2023, 5:04:33 PM7/23/23
to weewx...@googlegroups.com

the fields are oblivious of how the data stored was achieved (min, max, avg, sum ...).
This is defined in the accumulators for the weewx field map - and if your new variable is not contained or you want a different way from the default accumulator behaviour, you have to add this to the [Accumulator] stanza in weewx.conf

I suggest your study the weewx customization guide in the weewx documentation - I think most if not all of your questions are answered already there.
Your scenario is in principle described there - independent of the driver. Also how and where to define new units - or assign existing ones.

https://www.weewx.com/docs

If you get stuck, come back here 😁

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0fcdca9f-d88f-45fe-b754-9d457cee470fn%40googlegroups.com.

Graham Eddy

unread,
Jul 24, 2023, 1:08:12 AM7/24/23
to WeeWX User
values like rain - and, in my own case, energy created by solar panel inverter - need to be summed not averaged over the archive interval.
the default accumulator for a data_type is averaging, so you need to specify your new data_type explicitly as summed - in my case, ‘’weewx.conf'' has:

[Accumulator]

    [[gen_energy]]

        extractor = sum

not sure where this is documented. other types are average, last, first, ...
⊣GE⊢

Tom Keffer

unread,
Jul 24, 2023, 7:12:53 AM7/24/23
to weewx...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

maria gourniezaki

unread,
Jul 24, 2023, 7:17:15 AM7/24/23
to weewx...@googlegroups.com
Thanks, very good wiki indee

Reply all
Reply to author
Forward
0 new messages