http://weewx.com/docs/customizing.htm#add_archive_type
should help On Monday, 22 January 2018 16:30:00 UTC+2, [email protected] wrote: > I wanted to fiddle with my graphs so I could see dewpoint both inside and > outside. I found the value to plot, but > that failed (log below). > [[[dayhumidity]]] > [[[[inTemp]]]] > [[[[inHumidity]]]] > # [[[[inDewpoint]]]] > # label = Cavern Dewpoint > > inDewpoint is listed in the calculations in the config file: > [StdWXCalculate] > [[Calculations]] > dewpoint = prefer_hardware > inDewpoint = prefer_hardware > > and I can see the code that would generate the value here: > /home/weewx> egrep "(calc_inDewpoint|calc_dewpoint)" `find . -type f -name > "*.py" -print` > ./bin/weewx/wxservices.py: def calc_dewpoint(self, data, data_type): # > @UnusedVariable > ./bin/weewx/wxservices.py: def calc_inDewpoint(self, data, data_type): > # @UnusedVariable > > Where it seems to be missing is in the schema: > weewx> egrep "(Dewpoint|dewpoint)" `find . -type f -name "*.py" -print` > ./bin/schemas/wview.py: ('dewpoint', 'REAL'), > > How does one go about adding this? > > Thx, Chris > > Jan 22 05:57:59 router weewx[5212]: manager: added record 2018-01-22 > 05:50:00 PST (1516629000) to database 'weewx.sdb' > Jan 22 05:57:59 router weewx[5212]: manager: added record 2018-01-22 > 05:50:00 PST (1516629000) to daily summary in 'weewx.sdb' > Jan 22 05:58:00 router weewx[5212]: cheetahgenerator: Generated 6 files > for report StandardReport in 0.22 seconds > Jan 22 05:58:00 router weewx[5212]: reportengine: Caught unrecoverable > exception in generator weewx.imagegenerator.ImageGenerator > Jan 22 05:58:00 router weewx[5212]: **** no such column: > inDewpoint > Jan 22 05:58:00 router weewx[5212]: **** Traceback (most recent > call last): > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 238, in run > Jan 22 05:58:00 router weewx[5212]: **** obj.start() > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weewx/reportengine.py", line 271, in start > Jan 22 05:58:00 router weewx[5212]: **** self.run() > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weewx/imagegenerator.py", line 31, in run > Jan 22 05:58:00 router weewx[5212]: **** > self.genImages(self.gen_ts) > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weewx/imagegenerator.py", line 141, in genImages > Jan 22 05:58:00 router weewx[5212]: **** > aggregate_interval=aggregate_interval) > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weewx/manager.py", line 496, in getSqlVectors > Jan 22 05:58:00 router weewx[5212]: **** aggregate_type, > aggregate_interval) > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weewx/manager.py", line 742, in _getSqlVectors > Jan 22 05:58:00 router weewx[5212]: **** for _rec in > _cursor.execute(sql_str, (startstamp, stopstamp)): > Jan 22 05:58:00 router weewx[5212]: **** File > "/home/weewx/bin/weedb/sqlite.py", line 37, in guarded_fn > Jan 22 05:58:00 router weewx[5212]: **** raise > weedb.OperationalError(e) > Jan 22 05:58:00 router weewx[5212]: **** OperationalError: no > such column: inDewpoint > Jan 22 05:58:00 router weewx[5212]: **** Generator terminated > Jan 22 05:58:00 router weewx[5212]: reportengine: copied 0 files to > /home/weewx/public_html.weather > Jan 22 05:59:59 router weewx[1033]: manager: added record 2018-01-22 > 05:55:00 PST (1516629300) to database 'weewx_aclogger.sdb' > Jan 22 05:59:59 router weewx[1033]: manager: added record 2018-01-22 > 05:55:00 PST (1516629300) to daily summary in 'weewx_aclogger.sdb' > Jan 22 05:59:59 router weewx[1033]: cheetahgenerator: Generated 6 files > for report StandardReport in 0.13 seconds > > -- 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.
