Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [SOLVED] Data Retrieval from NOAA API

[SOLVED] Data Retrieval from NOAA API

Scheduled Pinned Locked Moved Qt WebKit
4 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goalie39
    wrote on last edited by
    #1

    Hi All:

    First let me say I'm fairly new to all of this, but I'm picking it up quickly. My experience has mostly been HPC with Fortran until now.

    What I'm trying to do is fetch from the web a dataset generated by a specific link (The link will vary depending on what I'm looking for, I'm not sure what the technical term for this type of link is). The data comes from NOAA.

    For example:

    @http://tidesandcurrents.noaa.gov/api/datagetter?begin_date=20130808 15:00&end_date=20130809 15:06&station=8454000&product=water_temperature&units=english&time_zone=gmt&application=ports_screen&format=xml@

    generates a bunch of data. I want to go get it and use it.

    So my question is, how can I have Qt go out to the web, populate the data set, and then come back with the data in hand as something that I can pick apart and use in my code.

    Thanks for you help

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You can have a look at the QNetworkAccessManager class, to handle that. Depending on the data format, QXmlStreamReader/QJsonDocument and friends

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goalie39
        wrote on last edited by
        #3

        Thank you very much. Worked perfectly.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since you have it working, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved