So I’ve just tested this finally and have an issue.
To recap, I retrieve a list of history for a point from an API and want to write this into Ignition’s history. I want to set the current value of the tag to the value of the latest historic record from the API with the timestamp of the value taken from the historic timestamp.
When I “allow back-fill of data” for the tag provider, I can use system.tag.write*
to store history for the tag by supplying BasicQualifiedValue
s, however the current value will never be written to now since all values in the past are not written to the current value, and it would be incredibly rare for the api to return a historic value with now()
as the timestamp.
If I disable back-filling, then I can write to the history using storeTagHistory
and I can write to the current value using tag.write
, but then I lose the ability to write the timestamp of the current value…
Is there any work around?