Re: [weewx-user] Forecast V3.4.ob2 Problems

160 views
Skip to first unread message

John Kline

unread,
Oct 14, 2025, 7:50:31 PM10/14/25
to weewx...@googlegroups.com, weewx-user
Hi Phil,

I just pushed an v4.0 update to weewx-forecast that adds support for UK Met Office Datahub forecasts.

You’ll need to sign up for a Global Spot API key.  It’s in the Site Specific section.  The free plan should work for you as 360 is plenty of calls.

Global Spot        Free plan should- 360 calls/day

The location parameter in the UKMO section is no longer used.  Rather, a forecast is returned for the latitude and longitude of the station.  If you want a forecast of something other than that, you can specify latitude and longitude in the UKMO section.

The new forecasts support more data than the old, so more items will show up in the sample forecast reports.

John

On Aug 5, 2025, at 5:56 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Sorry to ask and its probably a question for either Mathew H or John K but could UKMO datahub be added to the forecast software
Thanks Phil

On Monday, August 4, 2025 at 2:17:31 PM UTC+1 steepleian wrote:
Met Office have or in the process of changing data hubs so that may be the reason.
weewx V 5.1.0
Been having problems getting downloads from UKMO for a while now but only started to look into it.
It downloads 4/5 cycles Ok and then fails

025-08-04T12:50:17.090123+01:00 raspberrypi weewxd[1790]: ERROR user.forecast: UKMOThread: UKMO: missing field 'Location'
2025-08-04T12:50:17.090187+01:00 raspberrypi weewxd[1790]: INFO user.forecast: UKMOThread: UKMO: got 0 forecast records

If I then, shortly after the failure, delete forecast.sdb and reboot it downloads OK.

2025-08-04T13:02:14.535656+01:00 raspberrypi weewxd[2113]: INFO user.forecast: MainThread: UKMO: forecast version 3.4.0b2
2025-08-04T13:02:14.537368+01:00 raspberrypi weewxd[2113]: INFO user.forecast: MainThread: UKMO: interval=10800 max_age=604800 api_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXf051 location=354731

2025-08-04T13:05:17.618878+01:00 raspberrypi weewxd[1787]: INFO user.forecast: UKMOThread: UKMO: got 38 forecast records

It looks like a UKMO problem but why does it download OK if I delete the database shortly afterwards.
Thanks Phil

--
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 visit https://groups.google.com/d/msgid/weewx-user/f5592072-441e-4227-a84d-d401967a4517n%40googlegroups.com.

--
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 visit https://groups.google.com/d/msgid/weewx-user/88f324e0-a543-490b-9cb8-b1a35e605d0fn%40googlegroups.com.

John Smith

unread,
Oct 14, 2025, 8:57:07 PM10/14/25
to weewx...@googlegroups.com
How good is their global forecast model?

philip....@gmail.com

unread,
Oct 15, 2025, 11:07:22 AM10/15/25
to weewx-user
Thanks John
Are all api_keys this length or is it just UKMO ?

John Kline

unread,
Oct 15, 2025, 11:27:33 AM10/15/25
to weewx...@googlegroups.com, weewx-user
Of course, not all API keys are this long.  I take it you have an issue with the length?

On Oct 15, 2025, at 8:07 AM, philip....@gmail.com <philip....@gmail.com> wrote:

Thanks John

philip....@gmail.com

unread,
Oct 17, 2025, 8:25:44 AM10/17/25
to weewx-user
No Issue just a comment

Jimi Lawson

unread,
Oct 18, 2025, 12:25:58 PM10/18/25
to weewx-user
I'm struggling to upgrade weewx-forecast from V3.4.0 to  V4.0  on weewx  4.10.2 (Rpi 3B) . 
It appears to install OK

"sudo wee_extension --install /etc/weewx/scripts/weewx-forecast-4.0.zip
Request to install '/etc/weewx/scripts/weewx-forecast-4.0.zip'
Extracting from zip archive /etc/weewx/scripts/weewx-forecast-4.0.zip
Saving installer file to /usr/share/weewx/user/installer/forecast
Saved configuration dictionary. Backup copy at /etc/weewx/weewx.conf.20251018155320
Finished installing extension '/etc/weewx/scripts/weewx-forecast-4.0.zip'

A  backup weewx.conf + a new version is created in etc/weewx, but the new version is the same as the backed up one, ie the UKMO section is still the one for datapoint not the new one for datahub. 

I'm no doubt doing/missing something obvious, but it's been that long since I've had to mess with the installation that anything I did know has been relegated to some obscure corner of my mind. Any help/pointers would be greatly appreciated 
Regards
Jimi

vince

unread,
Oct 18, 2025, 12:45:01 PM10/18/25
to weewx-user
Updating skins/extensions does not tend to modify a pre-existing weewx.conf configuration section for that item.  You probably need to do a little hand editing per the readme file at https://github.com/chaunceygardiner/weewx-forecast 

Jimi Lawson

unread,
Oct 18, 2025, 1:08:38 PM10/18/25
to weewx-user
Cheers Vince
I did read the readme file, but it wasn't clear (to me)  if the installer would insert the new section to which I should add the new API key  or I had to replace the original UKMO section with the new one and add the API key.
 I'll give it a try and see how it goes 
Regards
Jimi

John Kline

unread,
Oct 18, 2025, 1:23:14 PM10/18/25
to weewx...@googlegroups.com, weewx-user
Did you sign up for the datahub service and replace the old api key with the new one?
That’s all you need to do.  You can delete the location parameter in the Forecast section if you want, but it won’t be used either way.


On Oct 18, 2025, at 10:08 AM, Jimi Lawson <jimi....@gmail.com> wrote:



Jimi Lawson

unread,
Oct 18, 2025, 3:45:48 PM10/18/25
to 'John Kline' via weewx-user, weewx-user
John
Yes, I signed up back in July and had the new API key but no way of using it. It seems to be working now, I replaced the existing UKMO section in weeewx.conf with the one from the V4 readme and added my datahub API.
Thanks for the help and the update 👍
Regards
Jimi

John Kline

unread,
Oct 18, 2025, 4:35:17 PM10/18/25
to weewx...@googlegroups.com, 'John Kline' via weewx-user
I’m happy it is working for you.

For others who may see this thread, the only thing you would have to do is replace the api_key in the existing [Forecast] section.  The location will be ignored.  As such, you can delete the location line if you want.  Lastly, in the unlikely event you want a forecast for some area other than the lat/long of your station, add a latitude and longitude to the [Forecast] section.

On Oct 18, 2025, at 12:45 PM, Jimi Lawson <jimi....@gmail.com> wrote:



Jimi Lawson

unread,
Oct 18, 2025, 6:56:52 PM10/18/25
to weewx-user
I can confirm that just replacing the API key works, I went back used a backup copy of weewx.conf, replaced the API key and removed the old location code. Works great, the new UKMO is better, more info. Can be seen here https://jlawson.co.uk/index.php/weather/weather-forecast
Thanks to everyone involved, great work. 👍
Regards
Jimi
Reply all
Reply to author
Forward
0 new messages