Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCity
EnergyDashboard
Commits
e50e245c
Commit
e50e245c
authored
3 years ago
by
Sven Schneider
Browse files
Options
Download
Email Patches
Plain Diff
minor. removed unused function from aggregation.js.
parent
49b24fe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public/js/aggregation.js
+0
-20
public/js/aggregation.js
public/js/appCesium.js
+2
-2
public/js/appCesium.js
with
2 additions
and
22 deletions
+2
-22
public/js/aggregation.js
+
0
-
20
View file @
e50e245c
...
...
@@ -25,26 +25,6 @@ function convertArray2JSON(arr) {
}
function
createDateFromDateTimeString
(
jsonData
)
{
let
datx
=
[];
let
daty
=
[];
const
MONTH
=
[
'
Jan
'
,
'
Feb
'
,
'
Mar
'
,
'
Apr
'
,
'
May
'
,
'
Jun
'
,
'
Jul
'
,
'
Aug
'
,
'
Sep
'
,
'
Oct
'
,
'
Nov
'
,
'
Dec
'
];
for
(
var
u
=
0
;
u
<
jsonData
.
length
;
u
++
)
{
daty
.
push
(
jsonData
[
u
].
temperature
);
let
date
=
new
Date
(
jsonData
[
u
].
datetime
);
let
datum
=
date
.
getDate
();
let
month
=
MONTH
[
date
.
getMonth
()];
let
hour
=
date
.
getHours
()
+
"
:00
"
;
let
newDateStr
=
datum
+
"
/
"
+
month
+
"
-
"
+
hour
;
datx
.
push
(
newDateStr
);
}
return
[
datx
,
daty
];
}
/**
* Format the response from SensorThings API to make it suitable for heatmap
* @param {Array} obsArray Response from SensorThings API as array
...
...
This diff is collapsed.
Click to expand it.
public/js/appCesium.js
+
2
-
2
View file @
e50e245c
...
...
@@ -343,8 +343,8 @@ const activate3DTileFeaturePicking = function() {
console
.
log
(
err
);
})
.
then
((
observationArr
)
=>
{
var
agg
=
aggregateResponse
(
observationArr
,
0
,
'
m
i
n
'
);
console
.
log
(
agg
);
var
agg
=
aggregateResponse
(
observationArr
,
0
,
'
m
ea
n
'
);
//
console.log(agg);
drawHeatMapHC
(
formatSTAResponseForHeatMap
(
agg
));
drawLineChartHC
(
formatSTAResponseForLineChart
(
agg
));
});
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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