Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. Perform a single request to get all three datapoint values with one request. 
         Get  /iap/devs/*/if/*/*/*+tag==xyz&tag.value==floor1/value?pg=1&sz=30 

    The first time you try to access a SmartServer web page you may get an HTTP 401 Unauthorized error, which means the user needs to log into SmartServer.

    Log into the SmartServer web server. 
    Use the provided /var/apollo/www/user/login.html (change login1.html to login.html), or send the appropriate login REST API request.
          POST  /iap/auth/login     Payload  {"username":"tom", "password":"test"} 

  2. If the datapoint does not show up in the first GET response, you may need to add a tag to the datapoint.
    The following example shows how to add tags for each device on floor1:

    Assign a datapoint tag for each datapoint on the web page (must be done only the first time the web page is opened by a web browser):
         POST  /iap/devs/*+name==Sensor1/if/LightSensor/0/nvoLuxLevel/tags    Payload {"xyz_floor1"="1"} 
         POST  /iap/devs/*+name==Sensor2/if/LightSensor/0/nvoLuxLevel/tags    Payload {"xyz_floor1"="1"} 
         POST  /iap/devs/*+name==Sensor3/if/LightSensor/0/nvoLuxLevel/tags   Payload   Payload {"xyz_floor1"="1"} 

  3. If more datapoints are returned from the GET request than you are using for your web page, then remove the tags from the unwanted datapoints.
    Datapoint tags should be unique for each custom web page.

  4. Issue the following request periodically to see datapoint value updates (set up monitoring for the datapoints individually through the REST API, CMS Datapoint Properties widget, or by importing a DLA file to see changes):
         Get /iap/devs/*/if/*/*/*+tag==xyz_floor1&tag.value==1/value?pg=1&sz=30&max_age=1
         Get /iap/devs/*/if/*/*/*+tag==xyz_floor1&tag.value==1/value?pg=2&sz=30&xs=45