Commit cc3bfb7d authored by neop's avatar neop
Browse files

again

parent 17f5bb7e
......@@ -96,14 +96,16 @@ public class Main {
}
private static void run() throws Exception {
var tables = influxDBClient.getQueryApi().query("from(bucket:\"openforecast\") |> range(start: -600d) |> mean() |> yield(name: \"_results\")");
var tables = influxDBClient.getQueryApi().query("from(bucket:\"openforecast\") |> range(start: -600d, stop: -599d) |> mean() |> yield(name: \"_results\")");
System.out.println("starting influx query");
for (var fluxTable : tables) {
var records = fluxTable.getRecords();
for (var fluxRecord : records) {
System.out.println(fluxRecord.getTime() + ": " + fluxRecord.getValueByKey("_value"));
}
}
System.out.println("finished influx query");
// try_uploading_failed_sensors();
// upload_all_days();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment