Author Topic: Read Data from URL  (Read 2719 times)

ericwi

  • Guest
Read Data from URL
« on: August 20, 2017, 11:36:10 AM »
I am trying to read data from a URL and put it in variables

so http://127.0.0.1:8085/telemachus/datalink?pitch=n.rawpitch&roll=n.rawroll&yaw=n.rawheading

comes back with ' {"pitch":270.1342,"roll":331.9021,"yaw":111.4944} '


Can not figure out how to get the data read and into a string.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4747
  • RTFM
Re: Read Data from URL
« Reply #1 on: August 20, 2017, 12:58:59 PM »
Have you tried the "Value from file/URI" option of the "Set a Text Value" action?

To get the individual values, you can make use of the "{TXTSUBSTR:}" token combined with the "{TXTPOS:}" token.

ericwi

  • Guest
Re: Read Data from URL
« Reply #2 on: August 20, 2017, 02:03:12 PM »
That did it thanks!