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:
dateObserved: DateTime
and waterlevel : number
fieldWith 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
By default,
NGSIMongoSink
stores the notification reception timestamp. Nevertheless, if (and only if) working inrow
mode and a metadata namedTimeInstant
is notified, then such metadata value is used instead of the reception timestamp. This is useful when wanting to persist a measure generation time (which is thus notified as aTimeInstant
metadata) instead of the reception time.
or this similar fragment in NGSISTHSink documentation:
By default,
NGSISTHSink
stores the notification reception timestamp. Nevertheless, if a metadata namedTimeInstant
is notified, then such metadata value is used instead of the reception timestamp. This is useful when wanting to persist a measure generation time (which is thus notified as aTimeInstant
metadata) instead of the reception time.