Hi, Klaus 1. Yes, you can add extraTemp4 and extraTemp5 to your database. The Customizing Guide, section Customizing the database <http://weewx.com/docs/customizing.htm#archive_database>, has instructions on how to do this. By the way, so long as you're going to customize the database, you might as well pick better names than extraTemp[1-5].
2. Unfortunately, you cannot have more than one driver. What you can do is add a service that collects the additional data, preferably by using a separate thread. See the Wiki *Multi-threaded service <https://github.com/weewx/weewx/wiki/multi-threaded-service>* for how to do this. Note that these instructions are specific to reading from a socket, but they can be modified to read directly from a hardware device. Incidentally, Gary Roderick has done a project very similar to this. -tk On Sun, Mar 18, 2018 at 9:14 AM, Klaus Lohmann <[email protected]> wrote: > First: many thanks to the author(s) of weewx! > > My station: RPi2 and Davis Vantage Pro 2. More or less standard skin: > https://www.puk2000.de/wetter/index.html. > > These days I tried to add data from a new PV system. I can get all > relevant current data from the Tesla Powerwall 2 API: Battery Status, Solar > Power, House Power, Grid Power, Battery Power. > > After trying to understand the extensive documentation and getting at > least a bit familiar with Python I started the hopefully simple way. > > Added a service to retrieve the Tesla data und put these data into > existing, but unused Davis fields: extraTemp1 to extraTemp5. After changing > the unit_group for these items in units.py everything looks pretty well. > Only the sample period of the davis (900 seconds) is less than optimal and > it seems to me, that there are no archive records for extraTemp4 and > extraTemp5. > > My idea for a better solution is a separate driver for the solar data with > a sample period of 10 seconds or so and add new types to the database, to > keep the Davis stuff untouched. According to the docu weewx would do the > avaraging between reporting periods. > > Now my questions to the gurus: > For my current solution: can I add extraTemp4 and extraTemp5 to the > archived items? > > For the other way: is it possible to use more than one driver in a single > weewx instance? > > Thank you and greetings to everyone > Klaus, DJ8KL > > -- > 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. > -- 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.
