Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Time Series Data Plugin dynamic time Settings #99

Open
aaronzi opened this issue Nov 14, 2024 · 0 comments
Open

[FEATURE] Time Series Data Plugin dynamic time Settings #99

aaronzi opened this issue Nov 14, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@aaronzi
Copy link
Member

aaronzi commented Nov 14, 2024

When using the Time Series Data SMT together with InfluxDB (LinkedSegment) with the following query

from(bucket: "basyx")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "float_metric")
  |> filter(fn: (r) => r["_field"] == "value")
  |> filter(fn: (r) => r["host"] == "basyx_host")
  |> filter(fn: (r) => r["topic"] == "EnvironmentalSensor/AirQuality" or r["topic"] == "EnvironmentalSensor/Humidity" or r["topic"] == "EnvironmentalSensor/Temperature")

an error is thrown because the range variables don't exist.

Describe the solution you'd like

When v.timeRangeStart and v.timeRangeStop are recognized in the query, they should be replaced by the LinkedSegment's StartTime and EndTime properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: AAS Web UI
Development

No branches or pull requests

1 participant