BBCWeatherForecast

For general Flowcode discussion that does not belong in the other sections.
Post Reply
simisv
Posts: 30
http://meble-kuchenne.info.pl
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 5 times
Been thanked: 5 times

Flowcode v10 BBCWeatherForecast

Post by simisv »

Hi

I'm testing the example "BBCWeatherForecastDemo" and is not working .

The GET request sent is :
GET /en/forecast/rss/3day/2643123 HTTP/1.1
Host: weather-broker-cdn.api.bbci.co.uk


The result in Debug Console is :
HTTP/1.0 400 Bad Request
Server: AkamaiGHost
Mime-Version: 1.0
Content-Type: text/html
Content-Length: 312
Expires: Wed, 11 Feb 2026 20:43:11 GMT
Date: Wed, 11 Feb 2026 20:43:11 GMT
Connection: close

<HTML><HEAD>
<TITLE>Invalid URL</TITLE>
</HEAD><BODY>
<H1>Invalid URL</H1>
The requested URL "[no URL]", is invalid.<p>
Reference #9.4d1a1202.1770842591.614394a0
<P>https://errors.edgesuite.net/9.4d1a1202.1770842591.614394a0</P>
</BODY></HTML>

Being an example from Flowcode page I assume that would work without problems .
Maybe this component is outdated ?
Any help would be much appreciated .

Thank you
Attachments
BBCWeatherForecastDemo1.fcfx
(25.97 KiB) Downloaded 157 times
(view online)

Steve-Matrix
Matrix Staff
Posts: 2032
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 306 times
Been thanked: 471 times

Re: BBCWeatherForecast

Post by Steve-Matrix »

It looks like the IP address in that example is now wrong. I assume the bbc has changed it.

There is supposedly an RSS feed, but I cannot get that to work. I'm getting "service temporarily unavailable" when trying this link:
http://newsrss.bbc.co.uk/weather/foreca ... aysRSS.xml

The following link does return information when used from a browser:
https://weather-broker-cdn.api.bbci.co. ... ay/2643123

But using the actual IP address of that site does not work for me.

Ahhh - I've just found this related topic:
viewtopic.php?p=21126&hilit=bbc#p21126

So that example no longer works because of changes to the site which was delivering the data.

simisv
Posts: 30
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 5 times
Been thanked: 5 times

Re: BBCWeatherForecast

Post by simisv »

Hi

Thank you Steve .
I tested this link "https://weather-broker-cdn.api.bbci.co. ... ss/2647632" yesterday before ,similar to yours in a Chrome browser and I receive data . If I replace the IP address in BBC component with this address "https://weather-broker-cdn.api.bbci.co.uk/" then nothing happens in the simulation console . So I guess that NetworkComms component does not support an address , but only an IP address ? All my projects where I tried to connect to an address using esp32 have failed .

There is any other way to retrieve weather data from ethernet ?

Thank you

chipfryer27
Valued Contributor
Posts: 2112
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 471 times
Been thanked: 701 times

Re: BBCWeatherForecast

Post by chipfryer27 »

Hi

Whilst I haven't looked at the specifics of your string, I have had no issue in using URLs to reach sites.

Regards

simisv
Posts: 30
Joined: Wed Oct 19, 2022 7:54 am
Has thanked: 5 times
Been thanked: 5 times

Re: BBCWeatherForecast

Post by simisv »

Hi
Thank you Chipfryer27 for reply . In my case never works . Do you please have a simple demo that is working in simulation ?
I can't imagine what is wrong .
Thank you

chipfryer27
Valued Contributor
Posts: 2112
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 471 times
Been thanked: 701 times

Re: BBCWeatherForecast

Post by chipfryer27 »

Hi

I can post something later but I haven't done as you are trying to do, visit a feed so to speak, instead I mainly update things such as a service like ThingSpeak, or connect and pass data to a MQTT broker.

Have a look here, where I document connecting to various places such as TS / MQTT / your own server and the like. It may help.

viewtopic.php?t=2248

Regards

Post Reply