News:

  • October 03, 2025, 06:56:09 PM

Login with username, password and session length

Author Topic: Retrieve weather station data from weatherlink.com  (Read 5119 times)

PLCwannabe

  • Hero Member
  • *****
  • Posts: 197
Retrieve weather station data from weatherlink.com
« on: May 05, 2024, 11:57:39 PM »
  I'd like to access weather station data on weatherlink.com with a brx with onboard ethernet. Attached is a screenshot of the API token that I think I will need to communicate. Just looking for general direction on how to get started, maybe a link to a domore help topic.

Api Weatherlink data:  https://weatherlink.github.io/v2-api/

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Retrieve weather station data from weatherlink.com
« Reply #1 on: May 08, 2024, 12:18:08 PM »
  I'd like to access weather station data on weatherlink.com with a brx with onboard ethernet. Attached is a screenshot of the API token that I think I will need to communicate. Just looking for general direction on how to get started, maybe a link to a domore help topic.

Api Weatherlink data:  https://weatherlink.github.io/v2-api/

You would most likely use the HTTPCMD instruction in the BRX and in the http Server box, set the by Name to "weatherlink.github.io". Then in the HTTP Request box, use a Request Method of GET, and set the Request string to "/v2/..." where the ... would include your weather station's id and your api-key. But you'd have to consult WeatherLink's documentation to find out the syntax of that request.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

PLCwannabe

  • Hero Member
  • *****
  • Posts: 197
Re: Retrieve weather station data from weatherlink.com
« Reply #2 on: September 29, 2025, 05:26:41 PM »
Doing another api project to a refrigeration KE2 controller, but keep getting the following error message:  Client sent an HTTP request to an HTTPS server. How can i make the request a https request?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Retrieve weather station data from weatherlink.com
« Reply #3 on: September 30, 2025, 10:22:51 PM »
Doing another api project to a refrigeration KE2 controller, but keep getting the following error message:  Client sent an HTTP request to an HTTPS server. How can i make the request a https request?

Check "Use SSL/TLS" in the HTTPCMD editor.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

PLCwannabe

  • Hero Member
  • *****
  • Posts: 197
Re: Retrieve weather station data from weatherlink.com
« Reply #4 on: October 01, 2025, 12:14:40 AM »
I already tried that, but then it won't let me enter an ip address, the controllers are on my local lan.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Retrieve weather station data from weatherlink.com
« Reply #5 on: October 01, 2025, 01:07:46 AM »
I already tried that, but then it won't let me enter an ip address, the controllers are on my local lan.

TLS requires a DNS name, or at least the stack we use does.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

PLCwannabe

  • Hero Member
  • *****
  • Posts: 197
Re: Retrieve weather station data from weatherlink.com
« Reply #6 on: October 02, 2025, 12:21:12 AM »
  So is there no way to send a get  " https://192.168.1.207/api/status" to a device on my local network with a brx plc?  The same request works everytime on my chrome browser address bar.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: Retrieve weather station data from weatherlink.com
« Reply #7 on: October 02, 2025, 10:05:42 AM »
  So is there no way to send a get  " https://192.168.1.207/api/status" to a device on my local network with a brx plc?  The same request works everytime on my chrome browser address bar.

There is not. For whatever reason, the TLS stack we use insists on a DNS name.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Bolt

  • Hero Member
  • *****
  • Posts: 591
Re: Retrieve weather station data from weatherlink.com
« Reply #8 on: October 02, 2025, 10:46:00 AM »
  So is there no way to send a get  " https://192.168.1.207/api/status" to a device on my local network with a brx plc?  The same request works everytime on my chrome browser address bar.
It's a huge rabbit hole, but perhaps you could have a DNS server on your network, and then have a DNS name to go to that IP address? I'm not entirely sure what it would  involve, perhaps your router can handle it. Or a pi running pihole.

PLCwannabe

  • Hero Member
  • *****
  • Posts: 197
Re: Retrieve weather station data from weatherlink.com
« Reply #9 on: October 02, 2025, 12:46:18 PM »
I was able to log into the ke2 controller and enable  Http access, everything works great now. Thanks for the help.