- Created by Deniz Karatoprak, last modified on Sep 26, 2016
No Translation available yet
You have English selected as language but this page has not been translated yet. Translate the page or view the content in the default space language below.
Display defaultLists the sensor data of a station within the specified time range
Request:
http://www.plantmet.com.tr/rest/data/station? stXid=[xid of the station]& responseFormat=[time/sensor]& profileId=[profileId]& displayPeriodId=[displayPeriodId]& startTime=[dd.MM.yyyy HH:mm]& endTime=[dd.MM.yyyy HH:mm] Example: http://www.plantmet.com.tr/rest/data/station? stXid=ST_825674& responseFormat=time& profileId=46& displayPeriodId=1& startTime=20.04.2016 00:00&endTime=01.06.2016 00:00
Description of parameters:
- stXid: id of the station
- responseFormat: format in which you want to get the response. If time is selected the data will be returned grouped by time, if sensor is selected, the data will be grouped by sensors. If this attribute is ommitted, sensor will be the default response format
- profileId: id of the profile of which the data is to be retrieved. (id returned by List of Profiles). If ommitted, the data of all the sensors will be returned.
- displayPeriodId: id of the display period. (One of the displayPeriodIds returned by List of Profiles) If ommitted, the data will be listed in default period.
- startTime: the start time of the data to be listed
- endTime: the end time of the data to be listed
Response in case reponseFormat=time
(Example: http://www.plantmet.com.tr/rest/data/station?stXid=ST_825674&responseFormat=time&profileId=46&displayPeriodId=6&endTime=01.06.2016 00:00)
[ { "time": "06/01/2015 00:00", "displayTime": "Jun 2015", "pointValues": [ { "groupName": "SıcaklıkYağışNem", "points": [ { "xid": "DP_281965", "name": "Nem(Avg)", "engineeringUnit": "%", "index": 0, "timeZone": "Europe/Istanbul", "value": "81.91921296296314" }, { "xid": "DP_491559", "name": "Sıcaklık(Max)", "engineeringUnit": "°C", "index": 0, "timeZone": "Europe/Istanbul", "value": "32.444444443920005" }, { "xid": "DP_491559", "name": "Sıcaklık(Min)", "engineeringUnit": "°C", "index": 0, "timeZone": "Europe/Istanbul", "value": "10.166666666365003" }, { "xid": "DP_499051", "name": "Yağış(Sum)", "engineeringUnit": "mm", "index": 0, "timeZone": "Europe/Istanbul", "value": "41.0" } ] } ] }, { "time": "07/01/2015 00:00", "displayTime": "Jul 2015", "pointValues": [ { "groupName": "SıcaklıkYağışNem", "points": [ { "xid": "DP_281965", "name": "Nem(Avg)", "engineeringUnit": "%", "index": 0, "timeZone": "Europe/Istanbul", "value": "70.38642473118267" }, { "xid": "DP_491559", "name": "Sıcaklık(Max)", "engineeringUnit": "°C", "index": 0, "timeZone": "Europe/Istanbul", "value": "37.11111111054001" }, { "xid": "DP_491559", "name": "Sıcaklık(Min)", "engineeringUnit": "°C", "index": 0, "timeZone": "Europe/Istanbul", "value": "12.277777777455" }, { "xid": "DP_499051", "name": "Yağış(Sum)", "engineeringUnit": "mm", "index": 0, "timeZone": "Europe/Istanbul", "value": "0.0" } ] } ] }, ...... .....
- xid: id of the sensor
- name: name of the sensor
- engineeringUnit: engineering unit of the sensor
- timeZone: Timezone
- index:index used to order the sensors
- pointValue: the value of the sensor at the given time
- No labels