osisoftpi-grafana icon indicating copy to clipboard operation
osisoftpi-grafana copied to clipboard

Digital States, one issue remains in 5.1.0

Open SC-66 opened this issue 1 year ago • 1 comments

Some of the issue with Digital states was corrected by the fix of #159, but there is one thing still to fix: When using the "State timeline" panel together with Digital States and Recorded values set to Off, the behaviour compared to 4.2.0 is different and the query doesn't get the data. (The query result is the same for all panels but the use of State timeline shows the error more clearly)

  • Panel: State timeline
  • Time period: "Today".
  • Query: See image below.
  • Expected result: Since Recorded values is sett to Off, the last value will be a empty value, since the queried time period is "today", which is in "the future". But in 5.x.0 this returns an error if using this query with Digital states. image

If I turn off Digital States I get this: image

Same with Table view: image

This is expected behaviour (the empty value) since there is no data "yet" for the time when the panel was reloaded/refreshed and. But if Digital State is turned on, the query end with an error, image

SC-66 avatar Nov 18 '24 12:11 SC-66

New version will truncate all times to 1s. Make sure the browser and the PI Dataserver/PIWebAPI have correct times.

coderReview avatar Feb 19 '25 11:02 coderReview

Closing as this error should have been fixed in recent versions.

coderReview avatar May 16 '25 10:05 coderReview

Yes, it works ok!

SC-66 avatar May 19 '25 13:05 SC-66