New Belchertown version 2.1 #325
uajqq
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Version 2.1 brings a few notable features and many many bug fixes / improvements! Some of these are breaking changes if you have a lot of custom content!
Important note: the skin now has two branches, Master (stable releases) and Development (beta releases, and development versions).
Thank you as always to all the beta testers who made this possible!
Bootstrap upgrade -- no more JQuery, potentially breaking change
Big thanks to @ThomasForeman86 for a full refactor that upgrades the underlying architecture to Bootstrap v5.3.3! That also means we no longer need jQuery, so that has been removed. The new Bootstrap version allows improved menus, and also improved notifications/alerts. It also means a separate dark mode .css file is no longer necessary.
The biggest change is a transition to a Bootstrap "hamburger" menu at upper right, which handles better in mobile views in particular. responsive-menu.js has been removed! The menu is now customized from an .inc file. There is an example provided,
nav-menu-custom.inc.example, that you can modify to your needs and is preserved across upgrades. The syntax should be similar.If you have custom content that relies on jQuery, that will also have to be redone. Please seek help in the Discussions section if needed.
New feature -- live unit switching
HUGE thanks to @Millardiang, who has managed to figure out how to implement live unit switching for EVERYTHING in the chart, including forecast, charts, etc. etc. A very handy feature!
The switching is off by default. You can enable it by setting
unit_switching = 1inweewx.conf. When active, users can set the units using the "hamburger" menu at upper right. Please note this option does increase processing requirements!New feature -- zoomable charts
Charts can now be zoomed and scrolled to isolate any sub-range.
This feature can be enabled in
charts.conffor all charts, or section-by-section, or just for individual charts. It can also be disabled individually, too -- for example, you could turn on zooming by default on a page, and only disable it for certain charts.zoom = 1(orzoom = true) turns on zooming (if omitted, it is off by default).zoom_rangeallows you to set the default range that is displayed using number of seconds, or words like "day," "month," etc.WARNING: chart loading can become very slow if you enable long time ranges for each chart. In the example above, even if only a week of data is available by default, all data is loaded and available to display. Use long
time_lengthcharts sparingly unless you are all right with slow loading times!New feature -- "threshold" line in charts (thank you @ThomasForeman86 and @ziti!)
This renders a dashed horizontal Highcharts plotLine on the series' yAxis with an optional right-aligned label - useful for marking fixed thresholds such as river flood levels, frost points or gale-force wind speeds. Only yAxis_plotLine_value is required; color defaults to a red dash and the label is omitted when not set.
You can add as many threshold labels as you want, and vary the styles / label alignments:
New feature -- labels in
charts.confLabels are now supported in
charts.conf. This can be useful for those who like to serve two different versions of the skin in two different languages.The syntax is
${your_label}. The brackets are to make it explicit that this is not a Cheetah tag -- the text is replaced manually by Python, since otherwise we'd have to change everything to .tmpl files.You can define a chart group using labels like this:
And then run two reports, with two different translations:
Enhancements and behavior changes
theme = sun.auto, which uses local sensors first and then downloaded forecast data as a fallback. Users can override tolocalorforecast.autouses geolocation to pick the local country when possible. Users can override tous,uk,canada,european.outWetBulb.Bug fixes
Far too many to document individually, mostly related to stability of forecast downloads and page refreshing in the background.
This discussion was created from the release New Belchertown version 2.1.
All reactions