Commit 2a408179 authored by alain's avatar alain 🐙
Browse files

update settings

parent 58c5f364
......@@ -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
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 {
......@@ -42,7 +42,6 @@ export default {
all: async function(parameter) {
try {
const allResponse = await fetch(`${endPointDataPlatform}/api/holu/getStations`)
const all = await allResponse.json()
......
......@@ -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 = {
......
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
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 {
......
Subproject commit ed799c1ce04556eb26021859ab47d568359c0bd5
Subproject commit 387ced9b28d73ec191e18854b286d6090471b72b
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