My XType extension is working in principle now. It calculates, and it delivers values, if there is $current.GTS, $latest.GTS, $day.GTS or $yesterday.GTS included in the skin definition. Also, images are generated showing the value over time. All is fine so far.
Then I included the value in the Belchertown skin observation list. And I got an error message. It turned out, that it is possible that get_scalar() is called with *record is None*. From documentation I thought otherwise. That was confusing. As I included "if record is None: raise weewx.CannotCalculate(obs_type)" into get_scalar() no error message was logged any more. But no value was displayed in Belchertown skin. Again: if I include "$current.GTS" into the skin, the value is displayed. If I include the value in the observation list in skin.conf, it is not. I looked around and found out that Belchertown skin gets the value from calling weewx.tags.CurrentObj()within their special extension "belchertown.py" That seems to not include GTS value. So I am not sure what to do next. -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/bf89f27d-abb4-4943-a2a9-e3ffbf1a8606n%40googlegroups.com.
