• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    HTTP receiver propreties

    How-To
    2
    5
    2.3k
    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.
    • A
      Amir MEKHALDI
      last edited by

      Hi every one

      I m trying to use the Http receveir data source for getting data, for my test i m using Google maps API example but nothing happens (Google for API developers : https://developers.google.com/maps/documentation/geocoding/intro#GeocodingResponses )

      i setted my point URL as : https://maps.googleapis.com/maps/api/geocode/xml?address=1600+Amphitheatre+Parkway,+Mountain+View/httpds

      How can i do for getting the "lat" value for example

      Here is the XML respond from google API

      {
      "results" : [
      {
      "address_components" : [
      {
      "long_name" : "1600",
      "short_name" : "1600",
      "types" : [ "street_number" ]
      },
      {
      "long_name" : "Amphitheatre Pkwy",
      "short_name" : "Amphitheatre Pkwy",
      "types" : [ "route" ]
      },
      {
      "long_name" : "Mountain View",
      "short_name" : "Mountain View",
      "types" : [ "locality", "political" ]
      },
      {
      "long_name" : "Santa Clara County",
      "short_name" : "Santa Clara County",
      "types" : [ "administrative_area_level_2", "political" ]
      },
      {
      "long_name" : "California",
      "short_name" : "CA",
      "types" : [ "administrative_area_level_1", "political" ]
      },
      {
      "long_name" : "United States",
      "short_name" : "US",
      "types" : [ "country", "political" ]
      },
      {
      "long_name" : "94043",
      "short_name" : "94043",
      "types" : [ "postal_code" ]
      }
      ],
      "formatted_address" : "1600 Amphitheatre Parkway, Mountain View, CA 94043, USA",
      "geometry" : {
      "location" : {
      "lat" : 37.4224764,
      "lng" : -122.0842499
      },
      "location_type" : "ROOFTOP",
      "viewport" : {
      "northeast" : {
      "lat" : 37.4238253802915,
      "lng" : -122.0829009197085
      },
      "southwest" : {
      "lat" : 37.4211274197085,
      "lng" : -122.0855988802915
      }
      }
      },
      "place_id" : "ChIJ2eUgeAK6j4ARbn5u_wAGqWA",
      "types" : [ "street_address" ]
      }
      ],
      "status" : "OK"
      }

      1 Reply Last reply Reply Quote 0
      • phildunlapP
        phildunlap
        last edited by phildunlap

        Hi Amir,

        Do you mean the Http Retriever? The Retriever gets a URL and runs Regex on the page returned, while the Receiver is waiting for specifically formatted messages to be sent to it.

        If so, the data point configuration you're looking for may be something like...

        Data type: Numeric
        Value RegEx: "lat"[^\d]*(\d+[.]?\d*)
        Value Capture Group: 1
        
        1 Reply Last reply Reply Quote 0
        • A
          Amir MEKHALDI
          last edited by

          Thanks for your reply,

          i will try it soon

          1 Reply Last reply Reply Quote 0
          • A
            Amir MEKHALDI
            last edited by

            Thanks phildunlap,

            i have tried with success your suggestion

            As a beginner Im experimenting now the HTTP publisher in order to send my data to the "Datastore" storage service of Google Cloud, they give a RESTful interface for these application.

            but first i didn't find a complete documentation in how mango's publisher works

            then i have difficulties to make request for storing my datas, the storage by API REST seems required a double request, one for the authentification and another one for the request.

            Thanks you for any help

            1 Reply Last reply Reply Quote 0
            • phildunlapP
              phildunlap
              last edited by

              You may find this forum thread useful: http://infiniteautomation.com/forum/topic/2187/how-to-use-publishers-http-sender/3

              1 Reply Last reply Reply Quote 0
              • First post
                Last post