Commit Graph

533 Commits

Author SHA1 Message Date
Tom Keffer
19c55531c4 More clarifying comments in the Customizing Guide. 2021-12-06 13:02:09 -08:00
Tom Keffer
3317081e3b Use strict (and simpler) option hierarchy.
Update test suites.
Update docs to match.
2021-11-30 17:47:04 -08:00
Tom Keffer
7337dcd9a4 Refactored _build_skin_dict.
Moved options lang and unit_system to [[Defaults]].
Include test suite for how the skin_dict is built.
Resolved some option hierarchy conflicts.
2021-11-28 15:35:04 -08:00
Tom Keffer
a7bf4d2d28 Merge in unit_system at all levels in the option hierarchy.
Use search_up() to find the language spec.
Shut off interpolation when reading skin configurations.
Set an appropriate default for unit_system in the language file.
2021-11-02 13:39:28 -07:00
Tom Keffer
8462bc823a Further refinement of customizing guide.
Fixed some HTML errors.
Added some links.
2021-11-02 05:10:47 -07:00
Gary
7ea6552c1e minor changes in terminology 2021-11-02 19:57:09 +10:00
Matthew Wall
6df04c9762 minor wordsmithing for the options section of the customization guide 2021-11-01 22:56:55 -04:00
Tom Keffer
f25beb8320 Moved all labels and formats out of units.py and into defaults.py.
Reordered the processing of options a bit.
Documented the options hierarchy in a little more detail.
2021-11-01 17:58:45 -07:00
Tom Keffer
d4ad4e48d5 Replaced $gettext('lang') with the simpler $lang.
Tag $skin is the value for skin=xxx in weewx.conf.
Tag $SKIN_NAME is the name given in skin.conf.
Documented all the global tags.
2021-10-31 18:37:02 -07:00
Tom Keffer
bcc35e26fd Documented new tags $SKIN_NAME, $SKIN_VERSION, and $getobs(). 2021-10-31 08:24:49 -07:00
Tom Keffer
15c042f878 Refined the Customizing Guide. 2021-10-26 17:00:23 -07:00
Tom Keffer
285dcad122 Minor tweaks. 2021-10-05 15:02:36 -07:00
Tom Keffer
bd9a1e26e7 Switched from bracket style gettext[] to function style gettext().
Use pgettext() for context-sensitive lookups.
This will make it easier to write tools, and to use alternative implementations.
Updated Customizing Guide to follow.
Updated test suites to follow.
2021-09-28 15:21:21 -07:00
Tom Keffer
6408a33318 Added plot option 'skip_if_empty'.
If set to true and there is nothing but null
data in the plot, then the plot will not
be generated at all. See PR #702.
2021-09-25 12:38:59 -07:00
Tom Keffer
9b69bb063d Slightly faster evaluation of the tag suffix 'has_data'.
New aggregation type 'not_null'.
New unit 'boolean'.
New unit group 'group_boolean'.
2021-09-25 09:27:28 -07:00
Tom Keffer
f6a9dec505 Standardized as $gettext["lang"], consistent with other uses. 2021-08-13 09:47:44 -07:00
Tom Keffer
a88ee5dd64 Update customization guide to reflect new languages. 2021-08-11 11:04:09 -07:00
Tom Keffer
0e4720559e More Czech translations. 2021-05-29 04:18:00 -07:00
Tom Keffer
13b884eba9 Changed from option "units" to "unit_system". 2021-05-27 10:31:17 -07:00
Tom Keffer
4f42b2ffe1 Added Cheetah tag $filename, the relative path of the generated file.
Useful for setting canonical URLs. PR #671.
2021-05-24 07:50:40 -07:00
roe-dl
821091396b Support for canonical URL <link rel="canonical" … /> (#671)
* tag $filename for <link rel="canonical" href="$station.station_url/$filename" />

* added in doc

* added canonical url to Seasons skin

* added canonical url to Standard skin
2021-05-24 07:36:18 -07:00
gjr80
727275d459 review/proof read lang changes 2021-05-22 11:50:31 +10:00
Tom Keffer
ac4464399c Added almanac attribute visible_change. Documented. Tested.
Special recognition of 24hours
2021-05-18 09:19:16 -07:00
Tom Keffer
2c379b4ad9 Details on time 2021-05-15 06:06:53 -07:00
Tom Keffer
563197675c First cut at revamping documentation on localization. 2021-05-14 18:56:20 -07:00
roe-dl
4cb53f097b docs changed to $gettext[] instead of $gettext() 2021-05-05 04:44:59 -07:00
Tom Keffer
8670d2ada4 Fixed some problems under Python 2.
Fixed problems when 'lang' is not present.
Changed weewx.conf option from 'units_base' to 'units'.
Simplified.
2021-05-02 14:17:26 -07:00
Tom Keffer
3d0f162ca9 Merge branch 'master' of https://github.com/roe-dl/weewx into i18n 2021-05-02 10:51:59 -07:00
roe-dl
041e252847 changes according to review 2021-04-27 17:38:38 +02:00
roe-dl
44e2f14dc5 target_unit removed; only unit_system remains; reviewed gettext.py (not complete) 2021-04-25 15:54:47 +02:00
roe-dl
476caf6a6b more changes to the customization guide (to be continued) 2021-04-24 19:17:01 +02:00
roe-dl
f4f2ecc57e further changes to the customization guide (to be continued) 2021-04-24 14:59:04 +02:00
roe-dl
71bc1b09cd first changes to the customization guide (to be continued) 2021-04-24 13:21:36 +02:00
Tom Keffer
a65244ec73 v4.6.0a1 2021-04-16 09:54:07 -07:00
Tom Keffer
b3fc83fcec Added and documented Cheetah helper functions $jsonize(), $rnd() and $to_int(). 2021-04-10 05:47:59 -07:00
Tom Keffer
035fa1ac2d Fixed mistake in the documentation of changing labels. 2021-03-31 05:07:53 -07:00
Tom Keffer
16329612e2 Update documentation. 2021-03-27 11:02:15 -07:00
Tom Keffer
776a2a1c10 Document tag ".json()" 2021-03-27 05:11:30 -07:00
Tom Keffer
57cfca4255 Implement .round() tag.
Instead of rounding in .json()
2021-03-24 11:55:47 -07:00
Tom Keffer
14f0694bda Teaser for Tags for series. 2021-03-24 07:40:27 -07:00
Tom Keffer
b317a5d876 Option aggregate_interval can now be specified by using one of the "shortcuts".
That is, 'hour', 'day', 'week', 'month', or 'year'.
2021-03-22 07:47:15 -07:00
Tom Keffer
4187106230 Document the argument ndigits for .raw(). 2021-03-20 07:27:57 -07:00
Tom Keffer
d727acdb09 Version 4.5.0a1 2021-03-15 14:58:05 -07:00
Tom Keffer
95b3494af7 Further refinements. 2021-02-26 08:05:47 -08:00
Tom Keffer
340b4f2f85 Changed example for wee_database --reconfigure 2021-02-25 17:16:41 -08:00
Tom Keffer
16f1fed837 Document using wee_database to modify an existing database.
Restructure documentation on modifying a new database.
2021-02-25 16:20:37 -08:00
Tom Keffer
cb0d0e5036 Changed encoding of NOAA templates to normalized_ascii.
Fixes issue #646.
2021-02-11 08:37:07 -08:00
Tom Keffer
9bd4419936 V4.4.0 2021-01-30 11:07:10 -08:00
Tom Keffer
fc950cc61a Merge branch 'master' into development
# Conflicts:
#	docs/changes.txt
2021-01-29 06:50:00 -08:00
Tom Keffer
2d501adb80 Introduced new encoding type 'normalized_ascii', which replaces characters that
have accented marks with analogous ascii characters. For example, ö gets
replaced with o.
2021-01-26 06:10:30 -08:00