Adding points

Points require configuration and parameters.
Prerequisites: You are connected to a station.
  1. Expand Config > Drivers > HttpClientNetwork > HttpClientDevice and double-click Points.
    The Http Client Point Manager opens.
  2. To add one or more points, click New.
    The New point window opens.
    Image
  3. Populate the address of the endpoint including Host Address, Port, Path and Method.
  4. Set Poll Frequency for each point depending on how often each point requires polling and click OK.
     
    NOTE: Some services may throttle the number of requests in a given timeframe and/or may charge according to the number of requests. Diagnose an intermittent {fault} status on a point using the HTTP Response’s Health properties. The default poll frequencies are:
    • Fast: 5 seconds
    • Normal: 5 minutes
    • Slow: 15 minutes
    You can modify these defaults in the Poll Scheduler container within the HttpClientNetwork Property Sheet.
     

    For this API, the latitude (lat) and longitude (lng) parameters are required to specify the location of the data point.

  5. To define latitude (lat) and longitude (lng) parameters, double-click the point you just added, expand Proxy ExtParameters, right-click Parameters and click Actions > Add.
    The Add window opens.
  6. For Slot Name, enter lat and click OK.
  7. Do the same to enter lng and click OK.
    The latitude and longitude parameter properties open.
    Image
  8. Enter the latitude and longitude values and click Save.
    The Http Client Proxy Ext contains all of the features of the standalone client including Method (GET/POST/PUT), Health, authentication, Request Body, Parameters and Headers.
    This driver point sends the HTTP request when subscribed and per its selected poll rate in the Poll Scheduler. The Proxy Ext includes a Send action, which you can trigger if required.
    Image

    In the example above, the point’s Out slot or the Proxy Ext’s Read Value slot contains the response body. You may link this value to Wire Sheet logic. For example, in the case of a JSON response, a JSON Toolkit component may extract the values and use them.

    Using a JSONPath component, you can extract the sunrise/sunset time as a time value.

    Image