Hallo Gary,
I'm looking for a key 

syslog:
says
Oct 24 17:16:33 wetterba weewx[11089]: cheetahgenerator: Generate failed 
with exception '<type 'exceptions.TypeError'>'
Oct 24 17:16:33 wetterba weewx[11089]: cheetahgenerator: **** Ignoring 
template /home/weewx/skins/yy/Archiv/HI-YYYY-table.html.tmpl
Oct 24 17:16:33 wetterba weewx[11089]: cheetahgenerator: **** Reason: 
'TimespanBinder' 
object is not callable
Oct 24 17:16:33 wetterba weewx[11089]: ****  Traceback (most recent call 
last):
Oct 24 17:16:33 wetterba weewx[11089]: ****    File 
"/home/weewx/bin/weewx/cheetahgenerator.py", line 329, in generate
Oct 24 17:16:33 wetterba weewx[11089]: ****      print >> _file, 
compiled_template
Oct 24 17:16:33 wetterba weewx[11089]: ****    File 
"/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
__str__
Oct 24 17:16:33 wetterba weewx[11089]: ****      rc = getattr(self, 
mainMethName)()
Oct 24 17:16:33 wetterba weewx[11089]: ****    File 
"_home_weewx_skins_yy_Archiv_HI_YYYY_table_html_tmpl.py", line 454, in 
respond
Oct 24 17:16:33 wetterba weewx[11089]: ****    File 
"_home_weewx_skins_yy_Archiv_HI_YYYY_table_html_tmpl.py", line 140, in 
__errorCatcher11
Oct 24 17:16:33 wetterba weewx[11089]: ****    File "<string>", line 1, in 
<module>
Oct 24 17:16:33 wetterba weewx[11089]: ****  TypeError: 'TimespanBinder' 
object is not callable

my :        HI-YYYY-table.html.tmpl

           ....

   ##for $month in $year.months
  <tr>
          <td>$month($data_binding='wd_binding').dateTime.format($YM)</td>

         #if $month($data_binding='wd_binding').outTempDay.max.raw is not 
None:
          #if $month($data_binding='wd_binding').outTempDay.max.raw < -51
.... 

#end for

muster have a look at : https://github.com/hes19073/hesweewx   
at 
hesweewx <https://github.com/hes19073/hesweewx>/skins 
<https://github.com/hes19073/hesweewx/tree/master/skins>/StandardNeu 
<https://github.com/hes19073/hesweewx/tree/master/skins/StandardNeu>/Archiv 
<https://github.com/hes19073/hesweewx/tree/master/skins/StandardNeu/Archiv>/

*KR-YYYY-table.html.tmpl*i have substituted all*   $month.outTemp.max *to* 
$month($data_binding='wd_binding').outTempDay.max  * and so on

my skin.conf:
[CheetahGenerator]
  search_list_extensions = user.xstats.MyXStats, 
user.wdSearchX3.wdTimeSpanTags (it is weewx WD)

    [[SummaryByYear]]
        # Reports that summarize "by year"
        [[[NOAA_year]]]
            encoding = strict_ascii
            template = NOAA/NOAA-YYYY.txt.tmpl

        [[[HI_year]]]
            encoding = utf8
            template = Archiv/HI-YYYY-table.html.tmpl
 

any idea for "'TimespanBinder' object is not callable"

it works in

<li>Hier ist das Ergebnis month max 
$month($data_binding='wd_binding').outTempDay.max</li>
<li>Hier ist das Ergebnis jear max 
$year($data_binding='wd_binding').outTempDay.max</li>
<li>alltime wd-binding</li>
<li>Hier ist das Ergebnis alletime max 
$alltime($data_binding='wd_binding').outTempDay.max</li>
<li>Und das Ergebnis alletime max 
$alltime($data_binding='air_binding').air_sensor.max</li>
<li>alltime wx-binding</li>
<li>Hier ist das Ergebnis alletime max $alltime.outTemp.max</li>

all results correct

Hartmut



Am Freitag, 20. Oktober 2017 00:58:01 UTC+2 schrieb gjr80:
>
> Hi,
>
> In the config extract you provide above you have used date_binding = 
> whereas I think you meant data_binding =, perhaps it was an error in 
> translation/transcription. In any case I do not think it will work even if 
> you use data_binding = as whilst the 'fuzzy-archer' extension claims to 
> work 'with all databases', unfortunately it appears to only work with one 
> database (ie binding) at a time. WeeWX-WD uses its own database to store 
> outTempDay and outTempNight. The weeWX code base supports using multiple 
> databases; however, historygenerator.py does not. That being said I 
> believe it would be a fairly simple to change the 'fuzzy-archer' extension 
> to support multiple simultaneous databases (ie bindings). I don't know if 
> the author frequents these forums but the fuzzy-archer GitHub repo 
> <https://github.com/brewster76/fuzzy-archer> has had activity in the last 
> month, so you may wish to raise an issue there or contact the author 
> through the About page <http://dajda.net/about.html> on his weather 
> station site.
>
> Gary
>
> On Friday, 20 October 2017 01:58:14 UTC+10, Hartmut Schweidler wrote:
>>
>> Hello,
>>
>> I'm looking for a version with the extension history << 
>> user.historygenerator.MyXSearch 
>> >> to evaluate the database of weewx-WD
>>
>> in "[HistoryReport]"
>>  
>>     [[avg_tempD]] 
>>            obs_type = outTempDay 
>>            aggregate_type = avg
>>           date_binding = wd_binding
>>
>>     [[avg_tempN]] 
>>             obs_type = outTempNight 
>>             aggregate_type = avg
>>             date_binding = wd_binding
>>
>>
>>
>> ich suche eine Version um mit der Erweiterung  ""history"" die Datenbank 
>> von weewx-WD auszuwerten.
>>
>> Hartmut
>>
>
>

-- 
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.

Reply via email to