Skip to content

Release v1.13

Choose a tag to compare

@chaunceygardiner chaunceygardiner released this 28 Jul 13:31

weewx-skyfield 1.13

This release makes the constellations speak your language.
$almanac.<body>.constellation still renders the Latin name it always
has — but the value now carries the other views of the same answer as
attributes: .abbr the IAU abbreviation, .label the report's
translated display name, .name the Latin name again. The German
translation gains all 88 constellation names, and the Sky page's planet
chips use them ("im Sternbild Löwe"). Drop-in upgrade from any 1.x —
install over it, no config changes; existing tags render exactly as
before in every language.

What's new

  • Constellations are translatable. Add an [[Constellations]]
    subsection to the report's [Almanac] section, keyed by IAU
    abbreviation (Psc = Fische), and
    $almanac.saturn.constellation.label renders the translated name;
    an untranslated constellation falls back to the Latin. Works for
    every body and named star, follows each report's own language, and
    needs no PyEphem. The Sky page's planet chips render it, and the
    English reference dictionary (lang/en.conf) ships the full Latin
    set as the key list for translators.

  • The constellation tag is a richer value — with nothing breaking.
    The tag is the same Latin-name string it has been since 1.9:
    templates that compare it (== 'Leo') and weewx-loopdata fields
    that publish it see exactly what they always have, in every
    language. The attributes ride along: .abbr, .label and .name
    work both as report tags and as loopdata almanac fields
    (almanac.mars.constellation.label renders in the language of
    loopdata's target report). $almanac.<body>.constellation_abbr
    remains as a legacy alias for .abbr.

  • German: all 88 constellations (Beta). The names follow the
    German Wikipedia's
    Liste der Sternbilder
    (the IAU standardizes only the Latin names), verified name-by-name
    and cited in de.conf, which now also records the sources of the
    1.12 body names. Beta with the rest of the German: where usage has
    two common forms (Delphin/Delfin, Indianer/Inder, ...) the file
    notes the alternatives, and corrections from German speakers remain
    very welcome.

Requirements

  • Python 3.9 or later
  • WeeWX 5.2 or later
  • Skyfield (1.47 or later) and NumPy in WeeWX's Python environment (see the
    README); PyEphem is NOT required

Installing/upgrading

Download weewx-skyfield.zip from this release, then:

weectl extension install weewx-skyfield.zip

Restart WeeWX. No weewx.conf changes are needed when upgrading from
1.x; German pages pick up the constellation names automatically on the
first report cycle after the restart. Note that upgrading replaces the
bundled skin (skins/Skyfield/, including its lang/ files) — if you
have edited the installed de.conf (trying out corrections, say), save
a copy or send the corrections upstream first; local additions such as
extra star names survive upgrades best as [[[Almanac]]] entries in
weewx.conf (see the manual).