#!/bin/bash curl http://localhost:9999/api/v2/query?org=beieliorg -XPOST -sS \ -H 'Authorization: Token xXnq8ADcDygAyM_L0B_10c9yuoOv-cYcUfIXkJunRrIDMhB5ZNmza-Whr1ELcbKNzW8GzUMMYD85QohUHQdAmg==' \ -H 'accept:application/csv' \ -H 'content-type:application/vnd.flux' \ -d 'from(bucket:"beielibucket") |> range(start:-10h) |> filter(fn: (r) => r._field == "w")'