Page 1 of 1
Connecting and reading data from api.open-meteo.com
Posted: Mon Jan 19, 2026 2:27 pm
by simisv
Hi guys
I'm trying to read weather data from api.open-meteo.com . I know this should work , since I did it using Arduino IDE . When I try using Flowcode v10 and ESP32_wroom32 , can't connect to the server . Tested on local network using "TCP Terminal" as server on my laptop and esp32 it will connect and send the GET request .
Any reason why can't connect to open-meteo ?
Help please
Thank you
Re: Connecting and reading data from api.open-meteo.com
Posted: Mon Jan 19, 2026 5:31 pm
by BenR
Hello,
Your connecting to HTTPS "
https://api.open-meteo.com/" on Port 80. I beleive this should maybe be 443.
Or try connecting to the non encrypted HTTP version instead "
http://api.open-meteo.com/" on Port 80.
Re: Connecting and reading data from api.open-meteo.com
Posted: Mon Jan 19, 2026 8:20 pm
by simisv
Hi Ben
Should be http and port 80 , unfortunately no luck . Don't know what Arduino does different .
This is definitely to much for my brain .
Thanks
Re: Connecting and reading data from api.open-meteo.com
Posted: Mon Jan 19, 2026 9:40 pm
by chipfryer27
Hi
From looking at your chart I assume you have issue when the Network Comms component tries to connect. If that fails it won't matter what your api string consists of.
I might be wrong as it has been a while since I last used, but I'm pretty certain you don't need to include "HTTP://" in NetworkComms address. I can (if I rember correctly) connect with just numerical address 123.456.789.123 or a variable such as "abc.com"
Regards
Re: Connecting and reading data from api.open-meteo.com
Posted: Tue Jan 20, 2026 3:40 am
by chipfryer27
Hi
Further to above you seem to be sending out "debug" info over UART2
After you open a socket you send out "Connecting" then attempt to connect using NetworkComms1.
If you the sent out the value of "socket" over UART2 immediately after, you would get notification of success/failure which may help you debug further.
If you cannot connect it doesn't matter what you send later.
Regards
Re: Connecting and reading data from api.open-meteo.com
Posted: Tue Jan 20, 2026 1:43 pm
by simisv
Hi
There is no attempt from esp32 to connect to the server if I use "api.open-meteo.com" . After I used ping command to find out the ip address , witch at this time is "94.130.142.35" , the result is using port 80 and 443 :
"HTTP/1.1 400 Bad Request
Server: nginx"
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
From what Google is saying , this site accept connections only using his web address api.open-meteo.com .
Maybe is something wrong in the code of the networkcomms esp32 component ?
Need an idea on how to test that .
Need some suggestion's please .
Thank you
Re: Connecting and reading data from api.open-meteo.com
Posted: Tue Jan 20, 2026 4:37 pm
by chipfryer27
Hi
I have used the Network Comms component with the ESP32 (couple of versions) without any issue. I have just checked and can connect using both address and URL (note neither are in inverted commas).
I check that it connects before proceeding further.
Regards