0

Ignition Module system.tag.browseHistoricalTags()

Is there a way to use Ignition's system.tag.browseHistoricalTags() function with the Canary module as the history provider?

I'm thinking there must be, as the Power Chart successfully populates the tag tree, presumably using the browse under the hood.

I've tried all sorts of permutations to construct the historical path, but haven't hit the correct one.

https://docs.inductiveautomation.com/docs/8.1/platform/scripting/scripting-examples/export-tag-historian-to-csv#history-tag-search-and-export

I've always used a direct Views API call to get all the tags, but I want to move to using the native functions.

Please point me in the right direction.

3 replies

null
    • smason
    • 1 mth ago
    • Reported - view

    Hi ,

    Canary's /browseTags function is hooked up to Ignition's system.tag.browseHistoricalTags() function.

    If you turn on trace debugging on the ViewsServiceAPI class in the gateway, it will show those API calls to the Views service.

    • deon_korb
    • 1 mth ago
    • Reported - view

    Hi  ,

    Thanks for this, I must have messed up all the colons and defaults in that historical path.

    This method works, but unfortunately a recursive browse is required. This is really slow compared to the Canary read API call that returns up to the max size.

    I might just live with the slow browse, as I then don't have to hide usernames/passwords/API tokens in the script.

    Some background: I occasionally have to run this script to generate a list of tags to be obsolete in Canary. People copy and paste tags, rename them etc. The Canary module registers these tags nearly instantly and then requires a cleanup. There is also a bug in the module/Ignition that sprays tags to the wrong collector. Andy is aware of this bug and has a plan.

      • smason
      • 1 mth ago
      • Reported - view

      You're welcome  

      Thanks for the feedback!

Content aside

print this pagePrint this page
  • 1 mth agoLast active
  • 3Replies
  • 20Views
  • 2 Following