How do you enable forecast in Weewx-wdc

475 views
Skip to first unread message

Scott Danville

unread,
Sep 29, 2022, 6:42:44 PM9/29/22
to weewx-user
I am having difficulty enabling the forecast feature in weewx-wdc
What needs to be included in weewx.conf to have a forecast from WU, AERIS, or NWS?

gary....@gmail.com

unread,
Oct 2, 2022, 3:57:44 PM10/2/22
to weewx-user
weewx.conf
Adjust HTML_ROOT to your paths
Use your WU API key
Get your NWS values and use those.

    [[WdcReport]]
        skin = weewx-wdc
        enable = true
        HTML_ROOT = /home/web/wdc
        lang = en

    [[forecast]]
        skin = forecast
        HTML_ROOT = /home/web/forecast

[Forecast]
    data_binding = forecast_binding
    #[[XTide]]
    #    location = "INSERT_LOCATION_HERE (e.g., Boston)"
    [[Zambretti]]
        hemisphere = NORTH
    [[NWS]]
        lid = MAZ011
        foid = BOX
    [[WU]]
        api_key = xxxx
    #[[OWM]]
    #    api_key = INSERT_OWM_API_KEY_HERE
    #[[UKMO]]
    #    api_key = INSERT_UKMO_API_KEY_HERE
    #    location = INSERT_UK_LOCATION_HERE
    #[[Aeris]]
    #    client_id = INSERT_AERIS_CLIENT_ID_HERE
    #    client_secret = INSERT_AERIS_CLIENT_SECRET_HERE
    #[[WWO]]
    #    api_key = INSERT_WWO_API_KEY_HERE
    #[[DS]]
    #    api_key = INSERT_DS_API_KEY_HERE


skin.conf
Make adjustments for your location.

# configuration file for the weewx-wdc skin
SKIN_NAME = Weather Data Center
SKIN_VERSION = 2.1.0

[Extras]
    # Show a link to the GitHub respository of this skin. Set to False to hide.
    github_link = True

    # This radar image would be available as $Extras.radar_img
    #radar_img = https://www.dwd.de/DWD/wetter/radar/radfilm_sac_akt.gif
    # This URL will be used as the image hyperlink:
    #radar_url =    https://www.dwd.de/DE/leistungen/radarbild_film/radarbild_film.html

    [[forecast_zambretti]]
        enable = True
        hemisphere = NORTH                  

    [[forecast_table_settings]]
        source = WU
        num_periods = 72
        num_days = 5
        show_legend = 1
        show_hourly = 0
        show_day = 1
        show_date = 1
        show_outlook = 1
        show_temp = 1
        show_dewpoint = 0
        show_humidity = 0
        show_wind = 1
        show_tides = 0
        show_sun = 0
        show_moon = 0
        show_pop = 1
        show_precip = 1
        show_obvis = 0

gary....@gmail.com

unread,
Oct 2, 2022, 4:02:39 PM10/2/22
to weewx-user
Don't forget that you will need to add the following to the skin. conf
[CheetahGenerator]
        search_list_extensions 

user.forecast.ForecastVariables, user.weewx_wdc_forecast.WdcForecastUtil

David Bätge

unread,
Oct 5, 2022, 1:06:04 AM10/5/22
to weewx-user
There is also a dedicated page for enabling forecast in the wiki of the skin: https://github.com/Daveiano/weewx-wdc/wiki/Support-for-weewx-forecast

Let me know if there are still questions!

Nicholas Waton

unread,
Jan 6, 2024, 4:21:29 AM1/6/24
to weewx-user
Thank you!

Is there a way to show forecasted wind gusts? 
I am using the OWM forecast.

Graham Eddy

unread,
Jan 6, 2024, 5:05:17 AM1/6/24
to WeeWX User
normal wind, yes. gusts, i am doubtful.
my latest highly customised OWM forecast:
Screenshot 2024-01-06 at 4.01.59 pm.png
⊣GE⊢

Dominic Reich

unread,
Jan 7, 2024, 6:51:58 PM1/7/24
to weewx...@googlegroups.com
I think it is possible but not worth the hassle (for non-developers like
me).

The api reports wind gust, so there should be a way to create an
extra row in the forecast_table.inc (and maybe more) files from the
weewx-forecast extension.

#v+
{
"dt": 1705082400,
"main": {
"temp": 267.72,
"feels_like": 264.07,
"temp_min": 267.72,
"temp_max": 267.72,
"pressure": 1034,
"sea_level": 1034,
"grnd_level": 890,
"humidity": 67,
"temp_kf": 0
},
"weather": [
{
"id": 800,
"main": "Clear",
"description": "clear sky",
"icon": "01n"
}
],
"clouds": {
"all": 2
},
"wind": {
"speed": 2.21,
"deg": 198,
"gust": 2.38
},
"visibility": 10000,
"pop": 0,
"sys": {
"pod": "n"
},
"dt_txt": "2024-01-12 18:00:00"
}
#v-

-dominic
>--
>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/1c544346-86c8-47fa-bb65-ce28ebfa0d64n%40googlegroups.com.


--
Nothing in life is to be feared, it is only to be understood.
Now is the time to understand more, so that we may fear less.
- Marie Curie

David Bätge

unread,
Jan 10, 2024, 11:58:38 PM1/10/24
to weewx-user
I just did a quick test run with WeatherUnderground, Aeris and OWM. windGust is only saved for the Aeris forecast entries, for OWM and WU it's always empty. 

Since it is provided via the OWM API, that's a problem of weewx-forecast not saving the data, I guess.

FYI: The skin already shows windGust if it is provided by the forecast - but I did never test this and just noticed the windGust just sits behind the windSpeed without any label. I created https://github.com/Daveiano/weewx-wdc/issues/240 to track this.

weewx-wdc-foreacst-aeris.png

windGust is 29 km/h for Do, 11 Jan in this example.

Nicholas Waton

unread,
Jan 11, 2024, 1:03:27 AM1/11/24
to weewx-user
Very nice! Thanks for testing this with the other forecasts. I just switched to Aeris and can see the forecasted gusts.

I added a color coding depending on the wind speed to highlight very windy days or forecasted gusts. You can see it running here:
https://status.cal-sailing.org/index.html
Reply all
Reply to author
Forward
0 new messages