I have a bunch of historical data (csv) which I want to make accessible through sth-comet. The data is the history of water levels from multiple revers. The data is not provided live, but more or less on a daily basis and contains all the historic records for multiple days.
What I did so far was:
- Convert the data into NGSIv2 format data model with
dateObserved: DateTime
andwaterlevel : number
field - Update/append the data into Fiware orion
- Create a subscription for sth-comet for the entity type
- Access the historical data in sth-comet (wrong time)
With this I now have the problem that the "rcvTime" is of course the time when sth-comet
received the data. Is there a way that I can "overwrite" that attribute or is there a better solution? I also looked at cygnus on inserting data but I think the underlying problem is the same.
I could not find any hint in the avaiable documentation.
In the case of using Cygnus NGSIMongoSink and NGSISthSink you can use
TimeInstant
metadata in attributes to override received time with the time given in the metadata value.Have a look to NGSIMongoSink documentation
or this similar fragment in NGSISTHSink documentation: