Release v6.4
weewx-loopdata 6.4
A feature release: the sample report is translatable through WeeWX lang
files, and a complete German translation ships. Drop-in upgrade — install
over 6.x; an English report looks exactly as before. The one action
required: if you customized [[BarometerTrendDescriptions]], see below —
that section is removed.
What's new
- The sample report speaks your language. Every string the page
renders — gauge headings, the LIVE badge, the readout lines under the
dials, the compass and windrose cardinal letters — is now a gettext-style
[Texts]key, translated through WeeWX's own lang-file mechanism. The
English string is the key, so a partial translation falls back to English
one string at a time.skins/LoopData/lang/en.confis the reference
dictionary; strings the live javascript composes are translated at
generation time and fed to the script, so a translation touches no code. - German ships.
lang/de.confis a complete translation whose shared
vocabulary is copied verbatim from the native-speaker-reviewed German of
weewx-skyfield and weewx-celestial (a test keeps the three extensions in
step). Select it withlang = deon the report's stanza in weewx.conf. - The two-language coupling, documented. The page's labels follow the
sample report'slang, but the live values in loop-data.txt
(.ordinal_compass,moon_phase,almanac.<body>.label, …) follow the
language of loopdata's[LoopData]target report. Out of the box the
two are the same report, and the shipped lang files carry the value-side
sections (compass ordinates, moon phases, body and all 88 constellation
names), solang = deon[[LoopDataReport]]switches both; with a
different target report,[StdReport] [[Defaults]] lang = desets every
report at once. The manual's new
Translations page
has the full story. trend.barometer.desctranslates the same way — and
[[BarometerTrendDescriptions]]is gone. The descriptions (Falling Slowly,Steady, …) are now gettext-style keys into the target
report's[Texts], shipped in German inlang/de.conf, so they follow
the target report's language like every other value.
Action required (only if you customized barometer trend descriptions)
The [LoopData] [[BarometerTrendDescriptions]] section in weewx.conf is
removed and now ignored — delete it. If you had custom wording, put it on
the target report's stanza instead:
[StdReport]
[[LoopDataReport]]
[[[Texts]]]
"Steady" = "Holding steady"If you never touched the section, there is nothing to do: the English
defaults are unchanged.
Requirements
- WeeWX 4 or 5 (translations need WeeWX 4.6 or later)
- Python 3.7 or later
- No third-party Python packages required
Installing/upgrading
Download weewx-loopdata.zip
and install it over your existing copy, then restart weewxd:
weectl extension install weewx-loopdata.zip
(or wee_extension --install weewx-loopdata.zip on WeeWX 4).