On Sunday, March 1, 2020 at 7:17:00 AM UTC-5, Phil Owers wrote:
>
> The UK Met Office has now raised an issue with there datapoint services 
> but did suggest to try
>
> Could you try the following : change the User-Agent to
> 'Mozilla/5.0'. It could be that the user agent of 'python/urllib/2.5' is 
> the issue. This worked for some users.
>

if they are limiting access based on user-agent, then uk met office is 
using some unconventional (i might venture to say downright stupid) 
programming practices.  adjusting the response of the web server based on 
the user agent makes sense in some user-facing corner cases, for example, 
when microsoft won't fix internet explorer 6.  but there are much better 
approaches.  and doing that it for a machine-to-machine interface is 
downright silly.

if you hack the forecast code, use the bare minimum necessary to make it 
work.  i would suggest simply 'Mozilla/5.0', not a full user-agent string 
with platform information.

hopefully uk met office will fix their systems...

m

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/81e806a6-f17a-46e3-a67d-7abdc891a4eb%40googlegroups.com.

Reply via email to