Ok that was very easy, good design. Thank you, I hope that sort of question is not too trivial for this group, perhaps it would be better asked on weewx-user? Wasn't sure since it seems like "development" to write a new driver, but in retrospect I could've found that in the documentation with just a little more searching.
One small change to the documentation I would make is to indicate that creating the _new database is not always necessary. Obvious perhaps, but deleting the old database had the same net effect as using wee_database weewx.conf --reconfigure and moving the new one over the old, unless I am missing something. I also deleted the existing reports if that matters. On Friday, February 2, 2018 at 4:34:27 AM UTC-8, Tom Keffer wrote: > > Yes. The default "wview > <https://github.com/weewx/weewx/blob/master/bin/schemas/wview.py>" schema > includes only extraHumid1 and extraHumid2. You would have to add > extraHumid3. See the section *Customizing the database > <http://www.google.com/url?q=http%3A%2F%2Fweewx.com%2Fdocs%2Fcustomizing.htm%23archive_database&sa=D&sntz=1&usg=AFQjCNF9kP5rXXGT1SLBENC3cN5gn6rI6w>* > for > how to do this. > > -tk > > On Fri, Feb 2, 2018 at 5:24 AM, <neilharr...@gmail.com <javascript:>> > wrote: > >> I'm working on a driver (based on Nev Davis's Raspberry Pi driver) and >> skin.conf (Standard skin) for displaying measurements from four different >> models of temperature and humidity sensors directly connected to a RPi. I >> want to compare the readings from them side by side. The driver seems to be >> working properly but in trying to make a custom skin.conf I get: >> >> Feb 2 03:45:40 raspberrypi weewx[14174]: reportengine: Caught >> unrecoverable exception in generator weewx.imagegenerator.ImageGenerator >> ... >> Feb 2 03:45:40 raspberrypi weewx[14174]: **** File >> "/usr/share/weewx/weedb/sqlite.py", line 41, in guarded_fn >> Feb 2 03:45:40 raspberrypi weewx[14174]: **** raise >> weedb.NoColumnError(e) >> Feb 2 03:45:40 raspberrypi weewx[14174]: **** NoColumnError: no >> such column: extraHumid3 >> >> So it's finding extraHumid1 and 2... >> Here is the section from skin.conf (inHumidity is the average of the 4 >> values, computed in the driver): >> >> [[[dayhumidity]]] >> [[[[inHumidity]]]] >> [[[[extraHumid1]]]] >> [[[[extraHumid2]]]] >> [[[[extraHumid3]]]] >> [[[[extraHumid4]]]] >> >> And here I am putting the values in the packet in the driver: >> >> _packet = {'dateTime': int(time.mktime(raw_time)), >> 'usUnits' : weewx.METRIC, >> 'inTemp' : avgTemp, >> 'inHumidity' : avgHumid, >> 'pressure' : data[7], >> 'extraTemp1' : data[1], >> 'extraHumid1' : data[2], >> 'extraTemp2' : data[3], >> 'extraHumid2' : data[4], >> 'extraTemp3' : data[5], >> 'extraHumid3' : data[6], >> 'extraTemp4' : data[8], >> 'extraHumid4' : data[9] >> } >> >> At one point I remember seeing only up to extraHumid2 and extraTemp3 >> mentioned in the documentation (can't locate where that was) but elsewhere >> I believe I have seen up to 7 of each. >> >> Does the database code need to be modified for this to work? Thanks. >> > >