version 1.5

This commit is contained in:
Johannes Holzwarth | SE-Inno GmbH
2024-01-11 14:04:25 +01:00
parent 0ee8291846
commit 4492763b78
756 changed files with 209957 additions and 2 deletions
@@ -0,0 +1,7 @@
import "date"
from(bucket: "my-bucket")
|> range(start: -10d)
|> filter(fn: (r) => r["_measurement"] == "weather" and r["_field"] == "temperature" and r["location"] == "Prague")
|> pivot(rowKey:["_time"], columnKey: ["_field"], valueColumn: "_value")
|> map(fn: (r) => ({ r with weekDay: date.weekDay(t: r._time) }))