Belchertown 3.1.0: a free chart library
Belchertown's charts have always been drawn by Highcharts, whose free license covers personal and school sites only. 3.1.0 adds Apache ECharts (Apache-2.0, free for any website) as a second option. Highcharts stays the default, so nothing changes unless you turn it on: install 3.1.0 over 3.0.x and restart weewx.
weectl extension install weewx-belchertown-3.1.0.tar.gz
Your graphs.conf, about.inc, custom.css and other files in skins/Belchertown carry over. Taking a copy of that folder first is still a good idea.
ECharts
Add this to [StdReport] [[Belchertown]] [[[Extras]]] in weewx.conf and restart weewx:
chart_library = echarts
graphs.confstays the same. Every chart type works: lines, areas, columns, the wind rose, range charts, polar charts and gauges, on the home page, the Graphs page and the Chart Builder.- It looks a little different on purpose: temperature-colored lines, today's high and low marked on the chart, a "Now" line, and a strip for sliding through charts that cover months.
- Zoom by dragging or pinching, no buttons. Click to zoom in, Reset zoom or double click to go back.
- Custom pages (an
.incthat draws its own Highcharts chart) still need Highcharts, so leave those sites onchart_library = highcharts.
The readme's Highcharts or ECharts section has the details. ECharts may become the default in a later release, once more stations have run it. If you try it, please tell us how it went in #1024.
Also new
- The forecast shows the wind direction: the wind icon becomes an arrow the way the wind blows, with the compass point as its tooltip. It works with Xweather, Open-Meteo and NWS, and
json/forecast.jsonhas a newwind_dirin each period, in degrees (#1023).
The full list is in the changelog.
Thanks
@gdt for asking for free chart software back in 2020 (#481), @aorovitz for asking again (#1024), and @meteoxylon for the forecast wind direction (#1023).
Found something? Open an issue.