Hi all,
I need to include a trend component in a view to help operators assess if an uplink should be transferred to a backup site. This trend is most useful if the range is set to "Last hour".
Unfortunately the ParameterOptions only allow for Day, Week, Month or Year. It seems that only by right-clicking, one can set the trend to display data for the last hour.
Is there a way to make the trend come up with the range "last hour" when the view is loaded?
Hi Pedro, you can specify a specific time interval by using the "Range:Start=<dateTimeTextA>,End=<dateTimeTextB>" syntax. In order to make the times dynamic you can use one of the time placeholders like [DataMinerTime] or [LocalTime]. You can use the [Subtract] placeholder to start one hour before the current time.
So the total time interval syntax for your case could be something like "Range:Start=[Subtract:[LocalTime],01:00:00]"
Hi Pedro, I did some further experimenting and for me using Range:Start=[Subtract:[LocalTime],01:00:00],End=[LocalTime] works fine, when leaving out the end time it did not. I can confirm this opens the trend component using a sliding window. However, using this setting will put the “Now” time at the very end of the trend component, hiding the short-term prediction. It might be better to use an interval with a short window into the future, like Range:Start=[Subtract:[LocalTime],01:00:00],End=[Sum:[LocalTime],00:15:00]
Thanks Michiel, this works.
The trend component seems quite wobbly though as it updates every ~1 sec. Can you think of a way to slow this like for the default “Last hour” function. This would make it smoother on the eyes.
It would be good if this last hour range, could be added to the possible trend component options in future Dataminer releases.
Hi Pedro, feel free to add this as a feature suggestion on https://community.dataminer.services/feature-suggestions/
I tried “Range:Start=[Subtract:[LocalTime],01:00:00]” in the ParametersOptions however, the no trend is shown. A shape with text “Range:Start=[Subtract:[LocalTime],01:00:00], shows the correct time minus one hour.
Just to clarify, I would like to have the trend display the last hour in a sliding sliding window, This can be achieved by right-click “Last hour”.
If I pass the start time, will it not be fixed and the time window would increase over time.