Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
fccc8af0
Commit
fccc8af0
authored
Dec 23, 2020
by
Corey Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup, added GPL Banner
parent
407266ab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
16 deletions
+92
-16
df-aggregator.py
df-aggregator.py
+0
-0
cardsmenu.js
static/cardsmenu.js
+16
-0
interest_areas.js
static/interest_areas.js
+16
-0
receiver_configurator.js
static/receiver_configurator.js
+16
-0
cesium.tpl
views/cesium.tpl
+44
-16
No files found.
df-aggregator.py
View file @
fccc8af0
This diff is collapsed.
Click to expand it.
static/cardsmenu.js
View file @
fccc8af0
// df-aggregator, networked radio direction finding software.
// Copyright (C) 2020 Corey Koval
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
var
stationUrlHtml_new
=
document
.
createElement
(
'input'
);
stationUrlHtml_new
.
type
=
'text'
;
stationUrlHtml_new
.
id
=
'url-new'
;
...
...
static/interest_areas.js
View file @
fccc8af0
// df-aggregator, networked radio direction finding software.
// Copyright (C) 2020 Corey Koval
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// *************************************************
// * Gets AOI data from backend
// *************************************************
...
...
static/receiver_configurator.js
View file @
fccc8af0
// df-aggregator, networked radio direction finding software.
// Copyright (C) 2020 Corey Koval
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// Update Map every n milliseconds
var
refreshrate
=
5000
;
var
autoRefresh
=
setInterval
(
function
()
{
reloadRX
();
},
refreshrate
);
...
...
views/cesium.tpl
View file @
fccc8af0
<!DOCTYPE html>
<!-- df-aggregator, networked radio direction finding software. =
Copyright (C) 2020 Corey Koval
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. -->
<html
lang=
"en"
>
<head>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, no-store, must-revalidate"
>
...
...
@@ -20,14 +37,13 @@
</div>
<script>
var
transmittersDataSource
=
new
Cesium
.
CzmlDataSource
;
var
receiversDataSource
=
new
Cesium
.
CzmlDataSource
;
var
aoiDataSource
=
new
Cesium
.
CzmlDataSource
;
var
transmittersDataSource
=
new
Cesium
.
CzmlDataSource
()
;
var
receiversDataSource
=
new
Cesium
.
CzmlDataSource
()
;
var
aoiDataSource
=
new
Cesium
.
CzmlDataSource
()
;
// Your access token can be found at: https://cesium.com/ion/tokens.
Cesium
.
Ion
.
defaultAccessToken
=
'{
{
access_token
}
}'
;
var
viewer
=
new
Cesium
.
Viewer
(
'cesiumContainer'
,
{
// terrainProvider: Cesium.createWorldTerrain(),
homeButton
:
false
,
timeline
:
false
,
});
...
...
@@ -35,8 +51,10 @@
clockStep
:
Cesium
.
ClockStep
.
SYSTEM_CLOCK_MULTIPLIER
});
viewer
.
clock
.
shouldAnimate
=
true
;
// var hpr = new Cesium.HeadingPitchRange(0.0, 1.57, 5000.0);
viewer
.
zoomTo
(
loadAllCzml
());
var
hpr
=
new
Cesium
.
HeadingPitchRange
(
0.0
,
-
1.57
,
0.0
);
// viewer.zoomTo(loadAllCzml(), hpr);
viewer
.
flyTo
(
loadAllCzml
(),
{
'offset'
:
hpr
}
);
var
scene
=
viewer
.
scene
;
if
(
!
scene
.
pickPositionSupported
)
{
...
...
@@ -210,31 +228,41 @@
function
loadTxCzml
()
{
transmittersDataSource
.
load
(
'/output.czml'
);
Cesium
.
when
(
transmittersDataSource
,
function
(
dataSource1
){
viewer
.
dataSources
.
add
(
dataSource1
);
return
dataSource1
;
});
viewer
.
dataSources
.
add
(
transmittersDataSource
);
return
transmittersDataSource
;
// let promise1 = Cesium.CzmlDataSource.load('/output.czml');
// Cesium.when(promise1, function(dataSource1){
// viewer.dataSources.add(dataSource1);
// return dataSource1;
// });
}
function
loadRxCzml
()
{
receiversDataSource
.
load
(
'/receivers.czml'
);
viewer
.
dataSources
.
add
(
receiversDataSource
);
// console.log("Loaded CZML");
return
receiversDataSource
;
// let promise1 = Cesium.CzmlDataSource.load('/receivers.czml');
// Cesium.when(promise1, function(dataSource1){
// viewer.dataSources.add(dataSource1);
// return dataSource1;
// });
}
function
loadAoiCzml
()
{
aoiDataSource
.
load
(
'/aoi.czml'
);
viewer
.
dataSources
.
add
(
aoiDataSource
);
// console.log("Loaded CZML");
return
aoiDataSource
;
// let promise1 = Cesium.CzmlDataSource.load('/aoi.czml');
// Cesium.when(promise1, function(dataSource1){
// viewer.dataSources.add(dataSource1);
// return dataSource1;
// });
}
function
loadAllCzml
()
{
let
rx
=
loadRxCzml
();
let
aoi
=
loadAoiCzml
();
let
tx
=
loadTxCzml
();
return
rx
;
loadAoiCzml
();
loadTxCzml
();
return
loadRxCzml
();
}
function
clearOld
()
{
...
...
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