Versions Compared

Key

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

Export timeseries to the Dijkdata Service Center (DDSC).  NOT YET AVAILABLE.

See: https://portal.ddsc.nl/

 

To import data into the DDSC service locations and timeseries have to be created first.

...

A uuid of the location is returned.  uuidlocation

 

Aanmaken van een nieuwe tijdserie voor het opslaan van events (timesteps met floatvalues). Is het correct dat ik daarvoor value type 12 voor moet gebruiken?

 

POST 

Creating a new timeseries for storing events"

Code Block
POST https://api.ddsc.nl/api/v2/timeseries/

{

   

{
    "name": "Locatie1",
    

    "description": "",
   

    "location": uuidlocation,
   

    "organisation_code": "deltares_organisation_code",
   

    "device": "",
   

    "supplier": jane.doe,
   

    "supplier_code": "12345",
    

    "access_modifier": null,
   

    "value_type":
12,   
2,
    "parameter_referenced_unit": 1,
   

    "threshold_min_soft": null,
   

    "threshold_min_hard": null,
   

    "threshold_max_soft": null,
   

    "threshold_max_hard": null,

}


 Het

resultaat van de post geeft mij een uuid terug voor de tijdserieThe result of this post returns the uuid of this timeseries.

 

Vervolgens wil ik events toevoegen aan deze tijdserie. De documentatie is niet geheel duidelijk hoe ik dat zou moeten. Uit jouw eerder mail begrijp ik dat dat als volgt kan:

 Posting events to the timeseries can be done with:

POST https://api.ddsc.nl/api/v2/timeseries/(uuid: uuid)/data/

Where uuid is the uuid of the timeseries.

 

The POST content can be JSON according the following format: 

Code Block
[
 

  {"value": "2.0123", "datetime": "2013-02-12T09:56:12Z"},
 

  {"value": "2.0123", "datetime": "2013-02-13T09:56:12Z"},

  ...
]


 

For posting to image a new timeseries of value type 5 has to be created where the uuid of the location is specified. This way they can be related to each other.

Creating an "image" time series can be done as follows: 

Code Block

POST 

  …

]

 

 

Om nu een afbeelding te kunnen koppelen aan deze locatie, moet ik een nieuwe tijdserie aanmaken met value_type: 5. Door dezelfde location id door te sturen, worden deze aan elkaar gelinked.

 

POST 
https://api.ddsc.nl/api/v2/timeseries/

{

   

{
    "name": "Locatie1",
   

    "description": "",
   

    "location": uuidlocation,
   

    "organisation_code": "1234567",
   

    "device": "",
   

    "supplier": jane.doe,
   

    "supplier_code": "12345",
   

    "access_modifier": null,
    

    "value_type":5,
   

    "parameter_referenced_unit": 1,
   

    "threshold_min_soft": null,
   

    "threshold_min_hard": null,
   

    "threshold_max_soft": null,
   

    "threshold_max_hard": null,

}

 

 

Vervolgens moet ik het image kunnen posten naar deze tijdseries.

 

Zou je nog een voorbeeld kunnen geven hoe dat moet? Dat kan ik niet terugvinden in de documentatie.

 

Groeten,

 

The uuid of this series is returned.

The images can now be posted to:

POST https://api.ddsc.nl/api/v2/timeseries/(uuid: uuid)/data/

In the header user name and password should be specified and datetime as well. Only one image per datetime can be posted.

 Rudie Ekkelenkamp