Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:mervis-scada:82-iot-api [2019/05/22 10:08]
m.kulvejt
en:mervis-scada:82-iot-api [2019/06/10 14:28]
m.chlupac [Full Example]
Line 58: Line 58:
    "​name":​ "​Mervis Av., Building A", ​      //​User description of the site or controller    "​name":​ "​Mervis Av., Building A", ​      //​User description of the site or controller
    "​timestamp":​ "​2019-04-18T15:​58:​59Z", ​   //Default timestamp of the values. May be overridden in the "​Values"​ section    "​timestamp":​ "​2019-04-18T15:​58:​59Z", ​   //Default timestamp of the values. May be overridden in the "​Values"​ section
-   "​period":​ "​PT5M", ​                      //​Default sample interval. May be overridden in the "​Values"​ section+   "​period":​ "​PT5M", ​                      //​Default sample interval. May be overridden in the "​Values"​ section. https://​en.wikipedia.org/​wiki/​ISO_8601#​Time_intervals
    "​levels":​ [{                            //Levels are used to further identify data    "​levels":​ [{                            //Levels are used to further identify data
      "​id":​ 1,                              //Here is a list of "​known"​ Levels that can be later      "​id":​ 1,                              //Here is a list of "​known"​ Levels that can be later
Line 84: Line 84:
       }       }
      ],      ],
-     "​level1_idx": 3,                      //you can either use Level index to previously defined Levels +     "​level_1_idx": 3,                      //you can either use Level index to previously defined Levels 
-     "​level2_idx": 2, +     "​level_2_idx": 2, 
-     "​levelX_idx": 1, +     "​level_X_idx": 1, 
-     "​level1_txt": "Area 52", ​             //or directly define the Level name +     "​level_1_txt": "Area 52", ​             //or directly define the Level name 
-     "​level2_txt": "AHU 89", ​               +     "​level_2_txt": "AHU 89", ​               
-     "​levelX_txt": "​Building A",+     "​level_X_txt": "​Building A",
      "​tags":​ [{                            //arbitrary array of tags      "​tags":​ [{                            //arbitrary array of tags
        "​name":​ "​technology_id", ​           //tag name - string        "​name":​ "​technology_id", ​           //tag name - string