Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
j.hoerdt
sensor2graph
Commits
40cfce3f
Commit
40cfce3f
authored
Nov 23, 2021
by
neop
Browse files
get more info
parent
e0be57d6
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/sensor2graph/Main.java
View file @
40cfce3f
...
...
@@ -113,9 +113,9 @@ public class Main {
var
tables
=
influxDBClient
.
getQueryApi
().
query
(
"from(bucket:\"openforecast\") |> range(start: -600d1m, stop: -600d) |> mean() |> yield(name: \"_results\")"
);
for
(
var
fluxTable
:
tables
)
{
var
records
=
fluxTable
.
getRecords
(
);
for
(
var
fluxR
ecord
:
r
ecords
)
{
System
.
out
.
println
(
fluxRecord
.
getTime
()
+
": "
+
fluxRecord
.
getValueByKey
(
"_v
alue
"
));
System
.
out
.
println
(
"table "
+
fluxTable
);
for
(
var
r
ecord
:
fluxTable
.
getR
ecords
()
)
{
System
.
out
.
println
(
String
.
format
(
"%s %s: %s %s"
,
record
.
getTime
(),
record
.
getMeasurement
(),
record
.
getField
(),
record
.
getV
alue
()
));
}
}
System
.
out
.
println
(
"finished influx query"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment