Commit Graph

543 Commits

Author SHA1 Message Date
Tom Keffer
a00650583b Add option 'boundary' to $span().
If set to 'midnight', then the starting time will be set to the previous midnight.
2022-01-21 15:45:27 -08:00
Tom Keffer
056b08ed09 If null, use transparent color instead of blank string.
Move ValueTuple and ValueHelper docs to customizing guide.
2022-01-21 13:39:45 -08:00
Tom Keffer
31dc91c7b9 Remove the now redundant SLE information from the customizing guide. 2022-01-14 13:12:40 -08:00
Tom Keffer
a134534759 Add an SLE example $colorize().
New document about how to write an SLE.
Add a new function weewx.units.convertStdName().
2022-01-14 05:26:27 -08:00
Tom Keffer
aec1acb028 Rename the 'stats' example to 'seven_day' 2022-01-11 14:33:57 -08:00
Tom Keffer
7d8548c35b Move tag $alltime from examples to WeeWX core. 2022-01-10 13:37:32 -08:00
Tom Keffer
7fd137cef2 Improved description of how to create a search list extension. 2021-12-26 15:54:00 -08:00
Tom Keffer
6d7caa2b5e The METRIC system uses cm for rain, not mm.
Added missing <p>.
2021-12-20 05:05:29 -08:00
Matthew Wall
fe590f1a0f minor table width adjustment. v4.5 is in the past. 2021-12-19 22:13:54 -05:00
Matthew Wall
90cafac084 added section 'Changing date and time formats' 2021-12-19 21:58:48 -05:00
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