A tag like $almanac.moon.next_transit returns an object of type ValueHelper, not a floating point number. ValueHelpers contain not only the floating point number, but also formatting and labeling information. To get the embedded number, use the ".raw" suffix. See the section *Formatting options <http://www.weewx.com/docs/customizing.htm#formatting_options>* in the Customizing Guide. Your expression becomes (NOT TESTED):
$almanac(date=($almanac.moon.next_transit*.raw*)).moon.alt -tk On Fri, Sep 20, 2019 at 4:38 AM Bernhard Walser <[email protected]> wrote: > Hello > > I want to write a code witch calculatetes the difference between, the moon > altiude at transit today, and altitude at transit yesterday. > this would give me the "übergehende Mond" or "untergehende Mond". > > a code like this don't work: > > $almanac(date=($almanac.moon.next_transit)).moon.alt > $almanac(date=($almanac.moon.previous_transit)).moon.alt > > it seems i cant manipulate the time of the ethem observer. > > -- > 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/935f39d9-c6fe-4ef4-ba98-7b3217348521%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/935f39d9-c6fe-4ef4-ba98-7b3217348521%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zECDt99HP0ZopmTXd7yubvqMoDYOupTYCrte-DhD6TmHgA%40mail.gmail.com.
