On Wednesday, August 17, 2016 at 7:58:29 AM UTC-4, stefano siega wrote: > > Now i want to use this data in the reports. But if I use the tag > "$lightning_strikes" or "$day.lightning_strikes.raw" I receive an error: > > log: > > Aug 17 13:55:23 raspberrypi weewx[7005]: cheetahgenerator: **** Ignoring > template /home/weewx/skins/ss/gauge-data.txt.tmpl >
this is part of a different error, probably not related to lightning. you have a problem in the steel series skin. > Aug 17 13:55:23 raspberrypi weewx[7005]: cheetahgenerator: **** Reason: > cannot find 'lightning_strikes' > Aug 17 13:55:23 raspberrypi weewx[7005]: **** Traceback (most recent call > last): > Aug 17 13:55:23 raspberrypi weewx[7005]: **** File > "/home/weewx/bin/weewx/cheetahgenerator.py", line 300, in generate > Aug 17 13:55:23 raspberrypi weewx[7005]: **** print >> _file, text > Aug 17 13:55:23 raspberrypi weewx[7005]: **** File > "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in > __str__ > Aug 17 13:55:23 raspberrypi weewx[7005]: **** rc = getattr(self, > mainMethName)() > Aug 17 13:55:23 raspberrypi weewx[7005]: **** File > "cheetah__home_weewx_skins_ss_gauge_data_txt_tmpl_1471434921_84_37593.py", > line 622, in respond > Aug 17 13:55:23 raspberrypi weewx[7005]: **** NotFound: cannot find > 'lightning_strikes' > > How can I use the data stored in the database to display them in a report > ? Thanks > to use the variable lightning_strikes you must extend the schema: http://weewx.com/docs/customizing.htm#add_archive_type see the section "Add a new type to the archive database" m
