Hi Phil,

Please run the following command (it is a single line), substituting your API 
key, and reply with the output you receive.

curl --user-agent 'foo' 
"http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/3772?res=3hourly&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX";

For me, with —user-agent not specified, with —user-agent ‘foo’ specified, or 
with any other user-agent specified, the command works.

Web searches do show that, from time to time, UKMO has issues and there is 
anecdotal evidence that changing the user-agent sometimes helps.  I wonder if 
your original problem, where you needed to change the user-agent, was one of 
those times.

It will also be interested to see if you can resolve 
datapoint.metoffice.gov.uk.  In addition to that above, please also include the 
output of:

host datapoint.metoffice.gov.uk 

I will revert the change I made to specify a user-agent if it turns out it is 
not needed (which currently appears to be the case).

John

> On Apr 9, 2020, at 6:05 PM, John Kline <[email protected]> wrote:
> 
> 
> Hi Phil,
> 
> I committed the change.  Please pull again.
> 
> None of the code is going to help you with name resolution; but it doesn’t 
> hurt to try anyway.
> 
> Afterwards, try resolving the machine name in the UKMO url on the same 
> machine that WeeWX is running (with host or nslookup).
> 
>>> On Apr 9, 2020, at 4:49 PM, Phil Owers <[email protected]> wrote:
>>> 
>> 
>> John
>> Mine keeps saying temp temporary failure in name. Could you send me your 
>> forecast.py file please
>> Phil 
>> 
>>> On Wednesday, April 8, 2020 at 3:11:31 PM UTC+1, Phil Owers wrote:
>>> Just downloaded the forecast extension which was 3.3.2.which I think is the 
>>> latest on to a python 3 only machine (weewx 4.0.0b18) and it fails 
>>> forecast.py Line 567 except OSError , e; with an underscore under the ,
>>> Just wondered if anybody else has had this.
>>> Cheers 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 [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/88ea690b-da8c-49f2-8b62-53b275ee31e7%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9EE1E277-3441-4AA8-ADCF-BC0E78B28F06%40johnkline.com.

Reply via email to