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
Connecting and reading data from api.open-meteo.com
-
simisv
- Posts: 24
- http://meble-kuchenne.info.pl
- Joined: Wed Oct 19, 2022 7:54 am
- Has thanked: 5 times
- Been thanked: 2 times
Connecting and reading data from api.open-meteo.com
- Attachments
-
- esp32_api.open_meteo_forum.fcfx.zip
- (8.13 KiB) Downloaded 10 times
-
BenR
- Matrix Staff
- Posts: 2096
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 556 times
- Been thanked: 740 times
Re: Connecting and reading data from api.open-meteo.com
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Connecting and reading data from api.open-meteo.com
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
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
-
chipfryer27
- Valued Contributor
- Posts: 1829
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 404 times
- Been thanked: 627 times
Re: Connecting and reading data from api.open-meteo.com
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
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
-
chipfryer27
- Valued Contributor
- Posts: 1829
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 404 times
- Been thanked: 627 times
Re: Connecting and reading data from api.open-meteo.com
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
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