Hi Phil, Are you absolutely certain that the key you used for the command you ran below is the same as what is in your weewx.conf file? I ask because the forbidden error is what I see when I don’t use a valid key.
If they keys agree, please try again for the command line, but use your location instead of the one I gave you. That is, use 354731. Do you see the download failures in log every time or just some times? Would you point me to the information about changing the User-agent? Are you running with Python 2 or 3? On my end, I switched to your location and its running fine. I’ll leave it running. > On Apr 10, 2020, at 2:52 AM, Phil Owers <[email protected]> wrote: > > > But looking in the log a little late I see this > Apr 10 10:39:24 raspberrypi weewx[626] INFO user.forecast: UKMOThread: UKMO: > download forecast from > 'http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/354731?res=3hourly&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXf051' > Apr 10 10:39:24 raspberrypi weewx[626] INFO weewx.manager: Added record > 2020-04-10 10:30:00 BST (1586511000) to daily summary in 'weewx.sdb' > Apr 10 10:39:24 raspberrypi weewx[626] ERROR user.forecast: UKMOThread: UKMO: > failed attempt 1 to download forecast: HTTP Error 403: Forbidden > Apr 10 10:39:24 raspberrypi weewx[626] ERROR user.forecast: UKMOThread: UKMO: > failed attempt 2 to download forecast: HTTP Error 403: Forbidden > Apr 10 10:39:24 raspberrypi weewx[626] ERROR user.forecast: UKMOThread: UKMO: > failed attempt 3 to download forecast: HTTP Error 403: Forbidden > Apr 10 10:39:24 raspberrypi weewx[626] ERROR user.forecast: UKMOThread: UKMO: > failed to download forecast > Apr 10 10:39:24 raspberrypi weewx[626] ERROR user.forecast: UKMOThread: UKMO: > no forecast data for 354731 from > http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/ > Apr 10 10:39:24 raspberrypi weewx[626] INFO user.forecast: UKMOThread: UKMO: > download forecast from > 'http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/354731?res=3hourly&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXf051' > >> 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/755d97de-cac8-4c97-85ea-9fb98a453d17%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/5C31F8E3-99C2-4DED-B152-D0E342E81F83%40johnkline.com.
