Commit 7b81d76e authored by alain's avatar alain 🐙
Browse files

holu-rivm detail function

parent 2803fadc
import { addMissingHours } from "../../data-on-a-map-app/src/util/data"
import { addMissingHours, pad } from "../../data-on-a-map-app/src/util/data"
export default {
name: "holu",
......@@ -30,7 +30,6 @@ export default {
const data = all.map(sensor => {
const sensorData = latest.find(o => {
//console.log(+o.id, +sensor.id)
//return +o.id === +sensor.id
return +o.id === 211
})
......@@ -102,9 +101,7 @@ export default {
)
}
//const response = await fetch(`https://data.waag.org/api/getHourlyValuesSensor?sensor_id=${station.id}&start=${start}&end=${end}`)
//const response = await fetch(`http://localhost:4567/sensor/${station.id}/${parameter}?start=${start.slice(0,10)}&end=${end.slice(0,10)}`)
const response = await fetch(`http://localhost:4567/sensor/211/${parameter}?start=${start.slice(0,10)}&end=${end.slice(0,10)}`)
const response = await fetch(`http://localhost:4567/sensor/${pad(station.id, 3)}/${parameter}?start=${start.slice(0,10)}&end=${end.slice(0,10)}`)
const responseData = await response.json()
const conformedData = responseData[0][Object.keys(responseData[0])[0]].map(m => {
......
data-on-a-map-app @ e513ba86
Subproject commit 0c98dc825fce89a9fc384175831d943c9142c8fd
Subproject commit e513ba86cc642f5b31445fba61d1de636a7bbfda
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