Page tree

Versions Compared

Key

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

...

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)

Code Block
languagexml
[
  {
    "time": "20.04.201606/01/2015 00:00",
    "pointValuesdisplayTime": [
      {
        "groupName": "grup""Jun 2015",
        "pointspointValues": [
          {
            "xid": "DP_990671",
            "name": "bar(Maks)",
            "engineeringUnit": "mbar",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "1004.4568999999999"
          },
          {
            "xid": "DP_281965",
            "name": "n(Ort)",
            "engineeringUnit": "%",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "85.16666666666667"
          },
          {
            "xid": "DP_476031",
            "name": "rh(Min)",
            "engineeringUnit": "m/sn",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "0.0"
          },
          {
            "xid": "DP_138453",
            "name": "tn(Min)",
            "engineeringUnit": "%",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "29.503999999999998"
          },
          {
            "xid": "DP_495474",
            "name": "ts(Min)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "15.918681082692501"
          },
          {
            "xid": "DP_499051",
            "name": "y(Top)",
            "engineeringUnit": "mm",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "0.0"
          }
        ]
      },
      {
        "groupName": "DiğerSıcaklıkYağışNem",
        "points": [
          {
            "xid": "DP_476031281965",
            "name": "Rüzgar HızıNem(MaksAvg)",
            "engineeringUnit": "m/sn%",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "081.091921296296314"
          },
          {
            "xid": "DP_491559",
            "name": "Sıcaklık(MaksMax)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "1532.277777777424998444444443920005"
          },
          {
            "xid": "DP_491559",
            "name": "Sıcaklık(Min)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "1410.666666666320001166666666365003"
          },
          {
            "xid": "DP_138453499051",
            "name": "Toprak NemiYağış(MaksSum)",
            "engineeringUnit": "%mm",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "29.503999999999998"
          },
          {
            "xid": "DP_495474",
            "name": "Toprak Sıcaklığı(Maks)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",41.0"
             "value": "15.980110630576064"
          }
        ]
      }
    ]
  },
  {
    "time": "20.04.2016 0107/01/2015 00:00",
    "pointValuesdisplayTime": [
      {
        "groupName": "grup""Jul 2015",
        "pointspointValues": [
          {
            "xid": "DP_990671",
            "name": "bar(Maks)",
            "engineeringUnit": "mbar",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "1004.4568999999999"
          },
          {
            "xid": "DP_281965",
            "name": "n(Ort)",
            "engineeringUnit": "%",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "87.83333333333333"
          },
          {
            "xid": "DP_476031",
            "name": "rh(Min)",
            "engineeringUnit": "m/sn",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "0.0"
          },
          {
            "xid": "DP_138453",
            "name": "tn(Min)",
            "engineeringUnit": "%",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "29.503999999999998"
          },
          {
            "xid": "DP_495474",
            "name": "ts(Min)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "15.96094910645985"
          },
          {
            "xid": "DP_499051",
            "name": "y(Top)",
            "engineeringUnit": "mm",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "0.0"
          }
        ]
      },
      {
        "groupName": "DiğerSıcaklıkYağışNem",
        "points": [
          {
            "xid": "DP_476031281965",
            "name": "Rüzgar HızıNem(MaksAvg)",
            "engineeringUnit": "m/sn%",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "070.038642473118267"
          },
          {
            "xid": "DP_491559",
            "name": "Sıcaklık(MaksMax)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "1437.44444444410000411111111054001"
          },
          {
            "xid": "DP_491559",
            "name": "Sıcaklık(Min)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "1312.499999999665004277777777455"
          },
          {
            "xid": "DP_138453499051",
            "name": "Toprak NemiYağış(MaksSum)",
            "engineeringUnit": "%mm",
            "index": 0,
            "timeZone": "Europe/Istanbul",
            "value": "29.62"
          },
          {
            "xid": "DP_495474",
            "name": "Toprak Sıcaklığı(Maks)",
            "engineeringUnit": "°C",
            "index": 0,
            "timeZone": "Europe/Istanbul",0.0"
             "value": "16.022403518940507"
          }
        ]
      }
    ]
  },  

    .......
    .......
    ......
    ]
  }
]

Response in case reponseFormat=sensor (or ommitted)

(Example: http://localhost:8080/rest/data/station?stXid=ST_825674&responseFormat=time&profileId=46&displayPeriodId=1&startTime=20.04.2016 00:00&endTime=01.06.2016 00:00)

Code Block
languagexml
[
 {
 "groupName": "Diğer",
 "points": [
 {
 "xid": "DP_476031",
 "name": "Rüzgar Hızı(Maks)",
 "engineeringUnit": "m/sn",
 "timeZone": "Europe/Istanbul",
 "index": 0,
 "pointValue": [
 {
 "value": "0.0",
 "time": "20.04.2016 00:00"
 },
 {
 "value": "0.0",
 "time": "20.04.2016 01:00"
 },
 {
 "value": "0.0",
 "time": "20.04.2016 02:00"
 },
 {
 "value": "0.0",
 "time": "20.04.2016 03:00"
 },........]
 },
 {
 "xid": "DP_491559",
 "name": "Sıcaklık(Maks)",
 "engineeringUnit": "°C",
 "timeZone": "Europe/Istanbul",
 "index": 0,
 "pointValue": [
 {
 "value": "15.277777777424998",
 "time": "20.04.2016 00:00"
 },
 {
 "value": "14.444444444100004",
 "time": "20.04.2016 01:00"
 }, 

Description:

Info
  • 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