Repository navigation
|
Greetings! I would like to know whether the Belchertown 3.0 Chart Builder only works with Highcharts? We have a non-profit organization operating a weather station using Weewx and would like to use the Belchertown 3.0 skin. Evidently Highcharts only allows free use of its charts for personal use. Its updated policy requires a paid license subscription for commercial use which includes non-profit organizations. The annual license fee is beyond our budget. Is there a way to integrate Apache ECharts or Charts.js for use with the Belchertown 3.0 skin? If so,, how would I integrate these charts? iThank you for your excellent work on the Belchertown skin. It is great. |
Replies: 7 comments 2 replies
|
Thanks for the kind words about the skin! The honest answer is that the charts (and the chart builder) are Highcharts deeply integrated with the skin. The skin's Python side writes Highcharts option objects straight from graphs.conf, the chart JavaScript talks to the Highcharts API, and the builder is just a page sitting on top of that. So there isn't a spot where you could drop in ECharts or Chart.js instead. It would be a rewrite of the whole chart layer. On the license side: the skin doesn't bundle Highcharts, it loads it from jsDelivr, so the terms are between your site and Highsoft. We read the current EULA the same way you did (personal and educational use, non-profits not included), but it's worth a quick email to Highsoft asking if they'd do a non-profit rate before you give up on it. They might surprise you. If that doesn't pan out, setting highcharts_enabled = 0 in skin.conf hides the chart pages and everything else (home page, forecast, records, live updates) keeps working. The JSON the skin already generates could feed charts of your own if you felt like building some. I'll look into what alternatives could be done but can't promise anything right now! |
|
Pat,
I have already played around with this as I was looking at similar ‘DIY’ chart building options for my skin weewx-DivumWX. Currently my charts are hard coded using D3.js as you can see at https://steepleclaydonweather.uk <https://steepleclaydonweather.uk/> - hovering and clicking will bring up a modal on each card. However I have had severel requests from users to adopt a similar system to yours. I moved away from Highcharts for licensing reasons and tried several alternatives and ECharts works best. I hoped that D3 would be easy to implement but the code was massive as everything has to be drawn from scratch. I have not yet implemented anything on my own skin yet as still playing around with CSS, however I am putting together a ‘genericish’ version which you may find useful. Its not ready for public consumption yet but happy to give you access if you wish. Just let me know and I will send you an invite.
Regards,
Ian
… On 9 Nov 2026, at 20:25, Pat ***@***.***> wrote:
Thanks for the kind words about the skin!
The honest answer is that the charts (and the chart builder) are Highcharts deeply integrated with the skin. The skin's Python side writes Highcharts option objects straight from graphs.conf, the chart JavaScript talks to the Highcharts API, and the builder is just a page sitting on top of that. So there isn't a spot where you could drop in ECharts or Chart.js instead. It would be a rewrite of the whole chart layer.
On the license side: the skin doesn't bundle Highcharts, it loads it from jsDelivr, so the terms are between your site and Highsoft. We read the current EULA the same way you did (personal and educational use, non-profits not included), but it's worth a quick email to Highsoft asking if they'd do a non-profit rate before you give up on it. They might surprise you.
If that doesn't pan out, setting highcharts_enabled = 0 in skin.conf hides the chart pages and everything else (home page, forecast, records, live updates) keeps working. The JSON the skin already generates could feed charts of your own if you felt like building some.
I'll look into what alternatives could be done but can't promise anything right now!
—
Reply to this email directly, view it on GitHub <#1024?email_source=notifications&email_token=AEMVT7UA2RSUS6YFCNEMACT5YIR4TA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGAYTKNJUUZZGKYLTN5XKU43VMJZWG4TJMJSWJJLFOZSW45FMMZXW65DFOJPWG3DJMNVQ#discussioncomment-19501554>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEMVT7WVVWSD4BYMXH2WJHT5YIR4TAVCNFSNUABIKJSXA33TNF2G64TZHMYTINJWGAYTONBRHNCGS43DOVZXG2LPNY5TCMJSGY3DKMJVUF3AE>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AEMVT7R745W3JSTXZF3UY5L5YIR4TA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGAYTKNJUUZZGKYLTN5XKU43VMJZWG4TJMJSWJJLFOZSW45FKMZXW65DFOJPWS33T> and Android <https://github.com/notifications/mobile/android/AEMVT7VSKWLBKHLSDL7GZ3L5YIR4TA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGAYTKNJUUZZGKYLTN5XKU43VMJZWG4TJMJSWJJLFOZSW45FOMZXW65DFOJPWC3TEOJXWSZA>. Download it today!
You are receiving this because you are subscribed to this thread.
|
|
Hi, this is Claude Code. Pat and I took this one on today, and good news @aorovitz: the skin now has a second chart library! Set It's on the Then add this to weewx.conf and the charts switch at the next report: The readme's "Highcharts or ECharts" section lists the few things that differ, like PNG-only downloads. We're considering making ECharts the default, but we'll let @steepleian, thanks for the offer! It's good to hear ECharts won out for you too, since we landed in the same place. Ours translates the skin's existing chart options, so graphs.conf didn't have to change. Happy to compare notes on what you're building. @gdt, this is the Free Software option you asked for in #481 back in 2020. A Belchertown site can now run without Highcharts. ECharts license (Apache 2.0): https://github.com/apache/echarts/blob/master/LICENSE 🤖 Reviewed by Claude Code (Claude Opus 5.5) and verified by Pat. |
|
Pat,Amazing. I tried changing very little of your code as possible and ended up in similar place. I ended with charts.conf but works with graphs.conf as well. Will share when packaged up.Ianhttps://steepleclaydonweather.ukOn 9 Nov 2026, at 23:10, Pat ***@***.***> wrote:
Hi, this is Claude Code. Pat and I took this one on today, and good news @aorovitz: the skin now has a second chart library!
Set chart_library = echarts and every chart is drawn with Apache ECharts, which is free for any website, non-profits included. Your graphs.conf stays exactly the same, and all the chart types work: lines, columns, the wind rose, gauges, Hays and the temperature ranges. We also used the switch to freshen things up a little. The temperature line takes the skin's temperature colors, today's high and low are marked on the chart, and you zoom by dragging or pinching. belchertownweather.com is running it right now if you want to see it first.
It's on the next branch until the next release. To try it:
weectl extension install https://github.com/poblabs/weewx-belchertown/archive/refs/heads/next.zip
Then add this to weewx.conf and the charts switch at the next report:
[StdReport]
[[Belchertown]]
[[[Extras]]]
chart_library = echarts
The readme's "Highcharts or ECharts" section lists the few things that differ, like PNG-only downloads.
We're considering making ECharts the default, but we'll let next sit a little while as a test first. If you try it, let us know how it goes on your station!
@steepleian, thanks for the offer! It's good to hear ECharts won out for you too, since we landed in the same place. Ours translates the skin's existing chart options, so graphs.conf didn't have to change. Happy to compare notes on what you're building.
@gdt, this is the Free Software option you asked for in #481 back in 2020. A Belchertown site can now run without Highcharts.
ECharts license (Apache 2.0): https://github.com/apache/echarts/blob/master/LICENSE
🤖 Reviewed by Claude Code (Claude Opus 5.5) and verified by Pat.
—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Awesome! Thanks! In belchertown 3.0 I'm using claude code a lot because I don't have a lot of spare time with the kids and all their after school activities. So in this case I asked it if it was feasible to integrate a free chart system, and it had it completed in like an hour. No way I could have done that. 😆 Also found a bug and just pushed it to next, so download the latest next if you already got it before seeing this @aorovitz , @gdt , @steepleian |
|
For what it is worth here is my contribution. It is set up as a standalone extension that can be used with any skin. CSS defaults to the Seasons theme.
https://github.com/Millardiang/weewx-Charts
Millardiang/weewx-Charts: Standalone extension (that uses a similar technique to Pat O'Brien's Belchertown skin) to build Apache ECharts
github.com
… On 10 Nov 2026, at 02:57, Alan ***@***.***> wrote:
Amazing! Thanks Pat and steepleian. I will give it a try.
—
Reply to this email directly, view it on GitHub <#1024?email_source=notifications&email_token=AEMVT7VCVJ3GJBNKHGAP2E35YJ73DA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGA3TMMJQUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-19507610>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEMVT7V37G6IEJPZZEKO74D5YJ73DAVCNFSNUABIKJSXA33TNF2G64TZHMYTINJWGAYTONBRHNCGS43DOVZXG2LPNY5TCMJSGY3DKMJVUF3AE>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AEMVT7VJTE275SYDTYMBF4T5YJ73DA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGA3TMMJQUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ> and Android <https://github.com/notifications/mobile/android/AEMVT7VRFM5GSICLAHE4C5T5YJ73DA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGA3TMMJQUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>. Download it today!
You are receiving this because you were mentioned.
|
|
Sorry wrong url, I changed the name but sent the link to the old name. This is the correct one.
https://github.com/Millardiang/weewx-ECharts
Millardiang/weewx-ECharts: Standalone extension (that uses a similar technique to Pat O'Brien's Belchertown skin) to build Apache ECharts
github.com
… On 10 Nov 2026, at 02:57, Alan ***@***.***> wrote:
Amazing! Thanks Pat and steepleian. I will give it a try.
—
Reply to this email directly, view it on GitHub <#1024?email_source=notifications&email_token=AEMVT7VCVJ3GJBNKHGAP2E35YJ73DA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGA3TMMJQUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSWGM33PORSXEX3DNRUWG2Y#discussioncomment-19507610>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEMVT7V37G6IEJPZZEKO74D5YJ73DAVCNFSNUABIKJSXA33TNF2G64TZHMYTINJWGAYTONBRHNCGS43DOVZXG2LPNY5TCMJSGY3DKMJVUF3AE>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/AEMVT7VJTE275SYDTYMBF4T5YJ73DA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGA3TMMJQUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSVGM33PORSXEX3JN5ZQ> and Android <https://github.com/notifications/mobile/android/AEMVT7VRFM5GSICLAHE4C5T5YJ73DA5CNFSNUABIM5UWIORPF5TWS5BNNB2WEL2ENFZWG5LTONUW63SDN5WW2ZLOOQXTCOJVGA3TMMJQUZZGKYLTN5XKO3LFNZ2GS33OUVSXMZLOOSXGM33PORSXEX3BNZSHE33JMQ>. Download it today!
You are receiving this because you were mentioned.
|
Thanks for the kind words about the skin!
The honest answer is that the charts (and the chart builder) are Highcharts deeply integrated with the skin. The skin's Python side writes Highcharts option objects straight from graphs.conf, the chart JavaScript talks to the Highcharts API, and the builder is just a page sitting on top of that. So there isn't a spot where you could drop in ECharts or Chart.js instead. It would be a rewrite of the whole chart layer.
On the license side: the skin doesn't bundle Highcharts, it loads it from jsDelivr, so the terms are between your site and Highsoft. We read the current EULA the same way you did (personal and educational use, non-profits not included)…