Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [SOLVED] Data Retrieval from NOAA API

    Qt WebKit
    2
    4
    1359
    Loading More Posts
    • 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
      goalie39 last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • G
          goalie39 last edited by

          Thank you very much. Worked perfectly.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 0
            • First post
              Last post