Skip to content

Need to get max amps used for main breaker. #166

Answered by jertel
Kelly12612 asked this question in Q&A
Discussion options

You must be logged in to vote

Visualize peak kW usage of "Main Panel" over time, using per-minute data:

from(bucket: "vuegraf")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "energy_usage")
  |> filter(fn: (r) => r["device_name"] == "Main Panel")
  |> filter(fn: (r) => (r["detailed"] == "False"))
  |> map(fn: (r) => ({ r with _value: r._value / 1000.0}))

For Hourly data, change "False" to "Hour", and for Day data, change "False" to "Day"

If you want the overall single number, and don't care about the over-time visualization, add a new line with:

|> mean() to get the average usage overall
or
|> max() to get the maximum usage overall

Make sure your time window is…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Kelly12612
Comment options

Answer selected by Kelly12612
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants