Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
code
hollandse-luchten-data-app
Commits
2a408179
Commit
2a408179
authored
Nov 26, 2020
by
alain
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update settings
parent
58c5f364
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
45 deletions
+9
-45
frontend/config/app.js
frontend/config/app.js
+3
-1
frontend/config/sources/holu.js
frontend/config/sources/holu.js
+3
-4
frontend/config/sources/luchtmeetnet.js
frontend/config/sources/luchtmeetnet.js
+1
-2
frontend/config/sources/sentinel.js
frontend/config/sources/sentinel.js
+0
-36
frontend/config/sources/teom.js
frontend/config/sources/teom.js
+1
-1
frontend/data-on-a-map-app
frontend/data-on-a-map-app
+1
-1
No files found.
frontend/config/app.js
View file @
2a408179
...
...
@@ -3,5 +3,7 @@ import { appSettingsDefault } from '../data-on-a-map-app/config/default/app'
export
const
appSettings
=
{
...
appSettingsDefault
,
panelBreakpoint
:
700
panelBreakpoint
:
700
,
mapRoute
:
"
/
"
,
pages
:
[]
}
\ No newline at end of file
frontend/config/sources/holu.js
View file @
2a408179
import
{
addMissingDataPoints
}
from
"
../../data-on-a-map-app/src/util/data
"
const
endPointDataPlatform
=
process
.
env
.
NODE_ENV
===
'
development
'
?
"
http://localhost:1881
"
:
"
https://data.waag.org
"
const
endPointDataPlatformMuv
=
process
.
env
.
NODE_ENV
===
'
development
'
?
"
http://localhost:1886
"
:
"
https://data.waag.org
"
const
endPointDataPlatform
=
process
.
env
.
NODE_ENV
===
'
$
development
'
?
"
http://localhost:1881
"
:
"
https://data.waag.org
"
const
endPointDataPlatformMuv
=
process
.
env
.
NODE_ENV
===
'
$
development
'
?
"
http://localhost:1886
"
:
"
https://data.waag.org
"
export
default
{
...
...
@@ -41,8 +41,7 @@ export default {
},
all
:
async
function
(
parameter
)
{
try
{
try
{
const
allResponse
=
await
fetch
(
`
${
endPointDataPlatform
}
/api/holu/getStations`
)
const
all
=
await
allResponse
.
json
()
...
...
frontend/config/sources/luchtmeetnet.js
View file @
2a408179
...
...
@@ -2,8 +2,7 @@ import { getLastHourISO, getNowISO, subtractOneHourISO } from "../../data-on-a-m
import
{
groupArrayOfObjectsBy
,
renameObjectKey
,
addMissingDataPoints
}
from
"
../../data-on-a-map-app/src/util/data
"
//const endPointDataPlatform = "https://data.waag.org"
const
endPointDataPlatform
=
process
.
env
.
NODE_ENV
===
'
development
'
?
"
http://localhost:1881
"
:
"
https://data.waag.org
"
const
endPointDataPlatform
=
process
.
env
.
NODE_ENV
===
'
$development
'
?
"
http://localhost:1881
"
:
"
https://data.waag.org
"
const
officialStations
=
{
...
...
frontend/config/sources/sentinel.js
deleted
100644 → 0
View file @
58c5f364
import
{
addMissingHours
}
from
"
../../data-on-a-map-app/src/util/data
"
export
default
{
name
:
"
sentinel
"
,
sides
:
24
,
angle
:
0
,
factor
:
0.5
,
all
:
async
function
getAllSentinel
(
parameter
)
{
try
{
const
nw
=
[
3.4
,
53.5
]
const
se
=
[
7.2
,
50.7
]
let
data
=
[]
const
cellSize
=
5000
const
dirtyEsimate
=
111319.5
const
longDelta
=
cellSize
/
dirtyEsimate
const
latDelta
=
Math
.
abs
(
cellSize
/
(
dirtyEsimate
*
(
Math
.
cos
(
nw
[
0
]))))
for
(
let
long
=
nw
[
1
];
long
>
se
[
1
];
long
=
long
-
longDelta
)
{
for
(
let
lat
=
nw
[
0
];
lat
<
se
[
0
];
lat
=
lat
+
latDelta
)
{
data
.
push
({
coordinates
:
[
lat
,
long
],
value
:
Math
.
random
()
*
100
})
}
}
return
data
}
catch
(
error
)
{
console
.
log
(
error
)
}
}
}
\ No newline at end of file
frontend/config/sources/teom.js
View file @
2a408179
import
{
addMissingDataPoints
,
inArray
}
from
"
../../data-on-a-map-app/src/util/data
"
const
endPointDataPlatform
=
process
.
env
.
NODE_ENV
===
'
development
'
?
"
http://localhost:1881
"
:
"
https://data.waag.org
"
const
endPointDataPlatform
=
process
.
env
.
NODE_ENV
===
'
$
development
'
?
"
http://localhost:1881
"
:
"
https://data.waag.org
"
export
default
{
...
...
data-on-a-map-app
@
387ced9b
Compare
ed799c1c
...
387ced9b
Subproject commit
ed799c1ce04556eb26021859ab47d568359c0bd5
Subproject commit
387ced9b28d73ec191e18854b286d6090471b72b
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