Skip to content

These are the files to modify the weewx standard skin to include all-time data

Notifications You must be signed in to change notification settings

gedger/alltimeSeasons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

30 Oct 2022

The alltimeSeasons addition takes the NOAA data (Monthly/ Yearly Reports) and presents some of the Temperature and Rainfall stats as colored html.

This site updates and modifies the original repo instructions at https://github.com/gedger/alltimeSeasons

Reorganized repo files.

Moved original files to weewx410/ (the version that the files appear to have come from)

Added weewx460/ and weewx491/ directories with their respective files. Those files can replace your existing Season skin files, or if you've already modified those then use the diffs to add only what's needed. The 'diffs' are .html files that show what has changed for each version. Use either html diff (or both) to assist with the changes. They are included in the hope they clarify what needs to be done.

The historygenerator.py file belongs in the weewx directory -- bin/user/historygenerator.py

After installation of that file, restart weewx for it to take affect.

The skin modifications you make to utilize that, now installed, historygenerator.py file will happen once you've added them to the skin. Watch your log for errors.

Bugfix:

Modified historygenerator.py to 'break' on success (resolves duplicate style strings)

Enhancement:

Added weewx4 style logging to historygenerator.py

Style changes:

Modified layout to show "out of bounds" values as red text.

Change 'Total' columns to white backgrounds with bold text.

Output html passes https://validator.w3.org tests.

Questions, Issues, Errors? Use the issues button above or use the weewx-users mailing list (google groups)

=========== End of fork changes =========

alltimeSeasons skin

Summary

These files modify the included weewx skin Seasons to include all-time data.

Overview

I wanted to be able to compare the rainfall in May with rainfall last year, well in fact all the years my weather station has been operating. I also wanted to able to compare temperature and perhaps wind. Surprisingly the standard weewx installation doesnt include this facility but due to its excellent design it's fairly straightforward to add a new skin to do what you want. I really liked the, now standard, Season skin so I used that as a starting point. Here are some screen shots of the results.

Frontpage    Statistics

Solution

The grunt of the work was done by brewster76 with his new skin using Bootstrap, indeed you may prefer his solution as it also includes gauges and a full installer. Check it out here https://github.com/brewster76/fuzzy-archer

I used his, very slightly modified, python code to generate the actual historic tables and then modified the Seasons template to include the results.

Installation

This is a manual install.

First make a copy of the Seasons skin including all the sub directories. I called mine alltimeSeasons.

Then replace the files in the new alltimeSeasons with those provided here.

Then copy the historygenerator.py file provided in the user/bin directory to the user bin directory in your weewx installation. Note this is different depending on how you installed weewx. If you installed via DEB/RPM then its /usr/share/weewx/user if you installed using setup.py then its /home/weewx/bin/user.

Finally edit your weewx.conf file and change the skin to your new skin, I just changed the original to point to the new location.

    [[SeasonsReport]]
            # The SeasonsReport uses the 'Seasons' skin, which contains the
            # images, templates and plots for the report.
            skin = alltimeSeasons
            enable = true

In theory that's all. However, although I have done this on my own system I haven't actually followed these instructions on a clean install to confirm they work. If you try you may well be the first. If you find a problem then please let me know and I'll do my best to correct it.

NOTE: This has only been tested with weewx V4.00 and later

About

These are the files to modify the weewx standard skin to include all-time data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published