I think I see what is going on. Normally you can pass a $data_binding to a $day tag to pull an aggregate from another database. However, in this case the $day tag is not a normal $day tag but rather it comes from iterating over all of the days in the month (for $day in $month.days) and you can't pass a $data_binding to that $day (I suspect you can pass it to $month but that is going to apply the same data binding to all $day tags). So I can't see how it can be done (short of putting you air quality data in the same database). Might be worth waiting till Tom looks at this, he may have some cunning magic he can perform.
Gary On Tuesday, 30 June 2020 23:16:31 UTC+10, Rahul Bedi wrote: > > Tried. I get a similar error: > > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: Generate failed with exception '<type > 'exceptions.TypeError'>' > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** Ignoring template > /etc/weewx/skins/Seasons/NOAA/NOAA-YYYY-MM.txt.tmpl > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** Reason: 'TimespanBinder' object is not callable > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** Traceback (most recent call last): > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** File > "/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** unicode_string = > compiled_template.respond() > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** File > "cheetah__etc_weewx_skins_Seasons_NOAA_NOAA_YYYY_MM_txt_tmpl_1593522919_43_84946.py", > > line 479, in respond > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** File > "cheetah__etc_weewx_skins_Seasons_NOAA_NOAA_YYYY_MM_txt_tmpl_1593522919_43_84946.py", > > line 252, in __errorCatcher27 > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** File "<string>", line 1, in <module> > Jun 30 18:45:19 PrideWeatherStation weewx[23078] ERROR > weewx.cheetahgenerator: **** TypeError: 'TimespanBinder' object is not > callable > > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/19af6989-e959-4141-9075-ca31b2a34ef7o%40googlegroups.com.
