WeeWX-jas announcement

485 views
Skip to first unread message

bell...@gmail.com

unread,
Feb 6, 2022, 9:18:16 PM2/6/22
to weewx-user
With WeeWx 4.6 being released, I thought I would let people know about a skin, WeeWX-jas (Just Another Skin), that I’ve been experimenting with. The current focus is making it highly customizable. Improving its aesthetics is in the future. Documentation is very much a work in progress.

Some high points are:
- Along with day, week, month, year intervals there is support for 'last 24 hours', 'last 7 days', 'last 31 days', and 'last 366 days'.
- Historical 'yearly' and 'monthly' data can be plotted.
- Any data that WeeWX knows about can plotted.
- Additional charts can be created and used.
- Support for displaying and charting MQTT data is coming. Currently can display data over connections that do not require authentication nor encryption.

Some implementation details are:
- Uses WeeWX ‘series’ support introduced in 4.5.
- Uses WeeWX ‘translation’ support introduced in 4.6.
- Uses Bootstrap for controlling the responsive layout.
- Uses ECharts (https://echarts.apache.org/en/index.html) to generate the charts.
- No ajax calls, so no need for a web server.

The code can be found here,  https://github.com/bellrichm/weewx-jas
I’m using a free web hosting service, so it might be a bit slow, but a demo is here http://bellrichm.great-site.net. Next up, use s3. There is a recent thread that describes how to do it. Also the site is not using MQTT because I haven't found a cloud broker that works for me.

I was inspired by neowx-material, https://neoground.com/projects/neowx-material. In fact I started out using ApexCharts (https://apexcharts.com), but switched to ECharts because it has more options and seems to be more actively maintained. The current code base actually supports both ECharts and ApexCharts, but I will probably be removing ApexCharts support or moving it to a separate repository.
And of course thanks to Tom and everyone who has contributed to WeeWX.
Enjoy.
rich

Tom Keffer

unread,
Feb 6, 2022, 9:38:08 PM2/6/22
to weewx...@googlegroups.com
Looking good, Rich! Some pretty impressive Cheetah wizardry going on there! 

I'm also glad to see that you were able to use the series extensions. This is exactly what it was written for: to make it easy to use in Javascript plots.

Looking forward to seeing where you take this.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e3960377-0a06-4903-8885-594cca50ef66n%40googlegroups.com.

bell...@gmail.com

unread,
Feb 7, 2022, 8:33:07 PM2/7/22
to weewx-user
Tom,
Thanks. I think it is finally time for me to learn CSS...
I can't thank you and the team enough for WeeWX. 
rich

michael.k...@gmx.at

unread,
May 30, 2022, 1:34:49 PM5/30/22
to weewx-user
Looking nice. I've got to take a look into that "Cheetah wizardry" and the series extension. Both things my enhancement of "fuzzy-archer" is lacking, but on the todo list.

@Rich did you try flespi.io for MQTT? Depending on the traffic on your site even a free plan might work out.

f4n...@gmail.com

unread,
May 31, 2022, 8:13:04 AM5/31/22
to weewx-user
This is really another great skin! Has a lot of potential too, thanks for this! Specially the ability to plot any data also from previous years is very useful and much needed (I still hope this will be implemented in the standard seasons skin too one day, all it would need is an auto-save from the end of week/month/year graph and a menu entry linking to it or an overview. Maybe with an enable/disable function for those who want to keep it lightweight)

A few suggestions: 
- The Weekly/Monthly/Yearly wind values (and probably others too) seem to be averaged, so the max. gusts don't appear. Could this be changed or is it possible to add a max/min line?
- Could the units be made visible on the y axis (e.g. km/h, °C, mbar, and so on)?
- Could the size of the graphs and values be customized, so everything could be visible without having to scroll (or only minimal on a mobile screen)?
- Is it possible to define a custom range exceeding one year or month?

bell...@gmail.com

unread,
May 31, 2022, 3:47:39 PM5/31/22
to weewx-user
The ‘wizardry’ is so that I can dynamically run cheetah code (like a python eval). It adds a lot of complication. If possible, I’d stay away from that. 
The WeeWX series support is great!
I ended up moving to a Lightsail instance, so I am self hosting the broker. I’ve been meaning to add a redirect to the new URL, https://bellrichm.org/weather/
rich

bell...@gmail.com

unread,
May 31, 2022, 4:05:30 PM5/31/22
to weewx-user
Thanks!


A few suggestions: 
- The Weekly/Monthly/Yearly wind values (and probably others too) seem to be averaged, so the max. gusts don't appear. Could this be changed or is it possible to add a max/min line?
This looks to be a bug.  I opened https://github.com/bellrichm/weewx-jas/issues/20

- Could the units be made visible on the y axis (e.g. km/h, °C, mbar, and so on)?

- Could the size of the graphs and values be customized, so everything could be visible without having to scroll (or only minimal on a mobile screen)?
I’m intrigued. I’ll have to learn more bootstrap.  Probably won’t be quick, especially with gardening season coming.
 
- Is it possible to define a custom range exceeding one year or month
Probably not… Certainly not dynamically because the data for the charts is ‘dumped’ out on the report/archive cycle.  Can you provide some  information on what you want?

rich

f4n...@gmail.com

unread,
Jun 3, 2022, 9:45:05 AM6/3/22
to weewx-user
Sounds good, thanks for opening the issues.
Is there a way it could dump it out of two or more archive cycles and then put it together somehow? Or would it be too much data if one chooses let's say 5 years overview?

bell...@gmail.com

unread,
Jun 14, 2022, 9:16:28 AM6/14/22
to weewx-user
Sounds good, thanks for opening the issues.
Is there a way it could dump it out of two or more archive cycles and then put it together somehow? Or would it be too much data if one chooses let's say 5 years overview?

Are you thinking of being able to graph multiple years? Something like this.
BB893F13-FBC7-4345-9C9C-6467BD6CBE06.jpeg 
Because all the data has already been pulled from the db, that is not a concern of mine. The performance bottleneck will probably be getting the data from the server to the browser. With that said, this is something that I am very interested and will be the next thing I pursue.
FYI, I have completed #20 and #21, but have not packaged a release.
rich

f4n...@gmail.com

unread,
Jun 22, 2022, 7:02:27 PM6/22/22
to weewx-user
Are you thinking of being able to graph multiple years? Something like this.
 

Exactly! Specially the Historical - multi-years on x axis view is what i was thinking about, this is great! Maybe it could also be done for multiple months (as long as the browser can handle the data, if my understanding is right, all data is processed into graphs on the client machine / browser?)
 
Because all the data has already been pulled from the db, that is not a concern of mine. The performance bottleneck will probably be getting the data from the server to the browser. With that said, this is something that I am very interested and will be the next thing I pursue.
FYI, I have completed #20 and #21, but have not packaged a release.
rich

This really sounds promising and will be an amazing feature for a weewx-skin, because the skins available until now who are able to output custom historical graphs more than one standard year/month/week/day at a time, pretty much all required a web server with root access or at least it couldn't be done on just a simple plesk shared hosting (unless i'm not mistaken). 
No hurry with the releases, I think I'll try the skin when the layout can be configured :)

bell...@gmail.com

unread,
Jul 5, 2022, 3:45:11 PM7/5/22
to weewx-user

It could be done monthly, but with ECharts ability to zoom in on year data, that is very low on my list. Also I have a lot of cleanup and documentation before I will get to start anything related to layout configuration. There will also be a bit of a learning curve - so it might be a while before you see anything.
rich

bell...@gmail.com

unread,
Jul 5, 2022, 3:55:03 PM7/5/22
to weewx-user
Version 0.2.1 has been released. This release includes quite a few fixes and enhancements. The following are the most exciting (at least to me).

Support multiple databases via WeeWX data_binding
Using Vince's 'mem extension' (https://github.com/vinceskahan/vds-weewx-v3-mem-extension) as an example, you can do things like:
Add memory data to an existing page. See, 'Today' at https://bellrichm.org/weather/#
Create a distinct set of pages for the data. See, https://bellrichm.org/weather/mem/#

Update charts with MQTT data
Look at 'Outside Temperature' on the 'Today' page at https://bellrichm.org/weather/#

Compare data 'Year to Year'
See, 'Year to Year' at https://bellrichm.org/weather/#

Chart multiple years on the x-axis
See, 'Multi-Years' at https://bellrichm.org/weather/#

If anyone is upgrading you must
Uninstall previous version
Delete any generated files

Note, the first report cycle will take a long time. This is because the historical data has to be extracted and 'static content' created. I usually run wee_reports after installing and before starting WeeWX.

Code cleanup, additional config options, and documentation are 'coming soon'.
Enjoy. rich
Reply all
Reply to author
Forward
0 new messages