Oops. Forgot that (most generally) value tuples have 3 members. You want #set $windy=(10.0, "km_per_hour", "group_speed")
-tk On Wed, Jan 17, 2018 at 2:00 PM, Joachim Puttkammer <[email protected]> wrote: > I made a test template /etc/weewx/skins/Standard/test.cvs.tmpl > > Datum > $current.dateTime > Wind > $current.windSpeed aus $current.windDir ($current.windDir.ordinal_compass) > $day.wind.max aus $day.wind.gustdir um $day.wind.maxtime > > new > #set $windy=(10.0, "km_per_hour") > Day with wind over 10 km/hr = $year.windSpeed.max_ge($windy) > > and insert in /etc/weewx/skins/Standard/skin.conf under to [[ToDate]] the > 2 lines > > [[[tabelle]]] > template = test.cvs.tmpl > > > here the log-file > > cheetahgenerator Generate failed with exception '<type > 'exceptions.IndexError'>' > cheetahgenerator **** Ignoring template /etc/weewx/skins/Standard/ > test.cvs.tmpl > cheetahgenerator **** Reason tuple index out of range > **** Traceback (most recent call last) > **** File "/usr/share/weewx/weewx/cheetahgenerator.py", line 330, in > generate > **** print >> _file, compiled_template > **** File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line > 1005, in __str__ > **** rc = getattr(self, mainMethName)() > **** File > "cheetah__etc_weewx_skins_Standard_test_cvs_tmpl_1516221442_39_94161.py", > line 128, in respond > **** File "/usr/share/weewx/weewx/tags.py", line 299, in max_ge > **** return self._do_query('max_ge', val=val) > **** File "/usr/share/weewx/weewx/tags.py", line 343, in _do_query > **** val=val, **self.option_dict) > **** File "/usr/share/weewx/weewx/wxmanager.py", line 60, in > getAggregate > **** return weewx.manager.DaySummaryManager.getAggregate(self, > timespan, obs_type, aggregateType, **option_dict) > **** File "/usr/share/weewx/weewx/manager.py", line 1273, in > getAggregate > **** target_val = weewx.units.convertStd(val, self.std_unit_system)0 > **** File "/usr/share/weewx/weewx/units.py", line 1114, in convertStd > **** return StdUnitConverterstarget_std_unit_system.convert(val_t) > **** File "/usr/share/weewx/weewx/units.py", line 762, in convert > **** new_unit_type = self.group_unit_dict.get(val_t2, USUnitsval_t2) > **** IndexError tuple index out of range > > > > > > > -- > 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.
