Adding climatologies to plots?

42 views
Skip to first unread message

Gary S

unread,
Oct 25, 2023, 5:00:22 PM10/25/23
to weewx-user

I'm incredibly happy with weewx - very easy to install and maintain and modify. I also appreciate the Belchertown skin. The plots are great as are the records.

Much appreciation for all the efforts put into both!

A question - has anyone incorporated the climatology for their location in their plots, as relevant?

Having (say) the daily highs and lows for the last 30 days plotted with the climatologies would be really neat.

Thanks!

Gary 
--


vince

unread,
Oct 25, 2023, 5:09:02 PM10/25/23
to weewx-user
Can you explain what exactly you're trying to do ?     What does "incorporated the climatology" mean and what would success look like ?

Warren Gill

unread,
Oct 25, 2023, 5:25:53 PM10/25/23
to weewx...@googlegroups.com
Curious about this too... you can download the data (for the US anyway) from NOAA https://www.ncei.noaa.gov/cdo-web/datasets
It would be cool to graph the daily highs and lows with the climate average (and record high/low) for your region.

--
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/3230db14-7568-42fe-8b83-6d7f5e3be8ecn%40googlegroups.com.

Karen K

unread,
Oct 26, 2023, 1:29:20 AM10/26/23
to weewx-user
You can copy the NOAA data into a SQLITE database file. Make sure, the timestamp column is called `dateTime` and there is a column `interval` for the time interval and a column `usUnits` that contains 1 for US units. After that you can reference this file in weewx.conf as a binding and use it in plots.

The configuration has to look like this:

[DataBindings]
    ...
    [[clima_binding]]
        database = clima_database
        table_name = name_of_your_database_table
        manager = weewx.manager.Manager
        schema = schemas.wview_extended.schema
[DataBases]
    ...
    [[clima_database]]
        database_name = name_of_your_database_file.sdb
        database_type = SQLite

In graphs.conf of the Belchertown skin you write "data_binding = clima_binding" to the observation types from your climate database. So you can show both your measurements and the climate data within the same diagram.

I did not look into the NOAA data, so I am not sure, but you may have to convert the timestamp to the UNIX timestamp, that is seconds after the 1.1.1970 0:0:0 UTC. And however the observation types are called in the NOAA data, if they differ from those used in WeeWX, you have to assign a unit group to them in extensions.py.

There are SQLite database manager applications available to create the SQLite database file.

What you reference in key "schema" in weewx.conf is irrelevant, as the file already exists and contains data.
Reply all
Reply to author
Forward
0 new messages