On 04 Jan 2019, at 06:02, 'daidl' via weewx-user wrote:

Hi,

I have an SunnyWebox in the network and installed the swb driver 
succesfully to trend the power from the solar paneels. 
the logfile shows me, that the "grid_power" and "grid_energy" are 
periodically mapped (yes, with values :-))

The "$current.grid_power" shows me values, but the "$day.grid_power.sum" 
seems unknown.
For me as a newbee, it looks like the data is not written to the database 
and can therefor not get calculated or used for trend graphics, right?

Is there anybody, who could give me a hint how I can bring the data to the 
database?



you need to extend the database schema as explained in the customization 
guide:

http://weewx.com/docs/customizing.htm#add_archive_type


another option is to use a schema (and database) dedicated to power 
monitoring.  this approach works well not just for the sunny webbox, but 
also for the outback/mate, enphase/envoy, vedirect, gem/ecm1240, and other 
power monitors and solar controllers.

in that case you would use something like this in your weewx configuration:


[Station]
   ...
   station_type = SunnyWebBox

[SunnyWebBox]
   driver = user.swb
   host = x.x.x.x

[DataBindings]
   [[wx_binding]]
       database = archive_sqlite
       table_name = archive
       manager = weewx.wxmanager.WXDaySummaryManager
       schema = user.swb.schema

[Databases]
   [[archive_sqlite]]
       database_type = SQLite
       database_name = swb.sdb

[DatabaseTypes]
   [[SQLite]]
       driver = weedb.sqlite
       SQLITE_ROOT = /var/lib/weewx


the schema is user.swb.schema instead of the default wview schema.

then when you start weewx for the first time, it will create the power 
monitoring schema and the data from the sunny webbox will go directly to 
database.

m

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to