Hello Rich I have been stealing the second file storm.py and I have this
error when generating the report:
Apr 8 02:56:24 raspberrypi weewx[3785]: reportengine: Caught unrecoverable
exception ingenerator weewx.cheetahgenerator.CheetahGenerator
Apr 8 02:56:24 raspberrypi weewx[3785]: **** time data
'2017-07-05 16:00:00-PST' does not match format '%Y-%m-%d %H:%M:%S-%Z'
Apr 8 02:56:24 raspberrypi weewx[3785]: **** Traceback (most
recent call last):
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/reportengine.py", line 239, in run
Apr 8 02:56:24 raspberrypi weewx[3785]: **** obj.start()
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/reportengine.py", line 273, in start
Apr 8 02:56:24 raspberrypi weewx[3785]: **** self.run()
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ngen =
self.generate(gen_dict[section_name], self.gen_ts)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ngen +=
self.generate(section[subsection], gen_ts)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ngen +=
self.generate(section[subsection], gen_ts)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
Apr 8 02:56:24 raspberrypi weewx[3785]: **** default_binding)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
Apr 8 02:56:24 raspberrypi weewx[3785]: **** searchList +=
obj.get_extension_list(timespan, db_lookup)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/user/storm.py", line 100, in get_extension_list
Apr 8 02:56:24 raspberrypi weewx[3785]: **** StructTime =
time.strptime('2017-07-05 16:00:00-PST', '%Y-%m-%d %H:%M:%S-%Z')
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
Apr 8 02:56:24 raspberrypi weewx[3785]: **** return
_strptime(data_string,format)[0]
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/lib/python2.7/_strptime.py", line 325, in _strptime
Apr 8 02:56:24 raspberrypi weewx[3785]: **** (data_string,
format))
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ValueError: time
data '2017-07-0516:00:00-PST' does not match format '%Y-%m-%d %H:%M:%S-%Z'
Apr 8 02:56:24 raspberrypi weewx[3785]: **** Generator terminated
Apr 8 02:56:24 raspberrypi weewx[3785]: reportengine: Caught unrecoverable
exception ingenerator weewx.cheetahgenerator.CheetahGenerator
Apr 8 02:56:24 raspberrypi weewx[3785]: **** time data
'2017-07-05 16:00:00-PS' does not match format '%Y-%m-%d %H:%M:%S-%Z'
Apr 8 02:56:24 raspberrypi weewx[3785]: **** Traceback (most
recent call last):
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/reportengine.py", line 239, in run
Apr 8 02:56:24 raspberrypi weewx[3785]: **** obj.start()
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/reportengine.py", line 273, in start
Apr 8 02:56:24 raspberrypi weewx[3785]: **** self.run()
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 158, in run
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ngen =
self.generate(gen_dict[section_name], self.gen_ts)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ngen +=
self.generate(section[subsection], gen_ts)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 232, in generate
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ngen +=
self.generate(section[subsection], gen_ts)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 320, in generate
Apr 8 02:56:24 raspberrypi weewx[3785]: **** default_binding)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/weewx/cheetahgenerator.py", line 372, in _getSearchList
Apr 8 02:56:24 raspberrypi weewx[3785]: **** searchList +=
obj.get_extension_list(timespan, db_lookup)
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/share/weewx/user/storm.py", line 100, in get_extension_list
Apr 8 02:56:24 raspberrypi weewx[3785]: **** StructTime =
time.strptime('2017-07-05 16:00:00-PST', '%Y-%m-%d %H:%M:%S-%Z')
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/lib/python2.7/_strptime.py", line 467, in _strptime_time
Apr 8 02:56:24 raspberrypi weewx[3785]: **** return
_strptime(data_string,format)[0]
Apr 8 02:56:24 raspberrypi weewx[3785]: **** File
"/usr/lib/python2.7/_strptime.py", line 325, in _strptime
Apr 8 02:56:24 raspberrypi weewx[3785]: **** (data_string,
format))
Apr 8 02:56:24 raspberrypi weewx[3785]: **** ValueError: time
data '2017-07-0516:00:00-PST' does not match format '%Y-%m-%d %H:%M:%S-%Z'
Apr 8 02:56:24 raspberrypi weewx[3785]: **** Generator terminated
El sábado, 7 de abril de 2018, 23:36:42 (UTC+2), Rich Altmaier escribió:
>
> I have an update, storm v1.1. I misunderstood the timestamp on archive
> records. I now see the timestamp value is the time at end of the interval
> of rain accumulation. Fixed that!
> Rich
>
>
> On Thursday, April 5, 2018 at 4:39:41 PM UTC-7, Rich Altmaier wrote:
>>
>> This is my first try at an extension. This is one file to place in user
>> (/usr/share/weewx/user), with info in the header for the skin.conf and
>> Standard/index.html.tmpl changes to place the data into a report.
>> Please do give feedback!
>> Thanks, Rich
>>
>>
>>
--
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.