Public
Edited
Jun 20, 2024
Insert cell
Insert cell
Insert cell
Insert cell
sensor1 = await getView("/mgr/raumklima/sensor-1-get", {
Accept: "application/json",
Authentication: `:${token}`
})
Insert cell
sensor1
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
sensor3 = await getView("/mgr/raumklima/sensor-3-get", {
Accept: "application/json",
Authentication: `:${token}`
})
Insert cell
sensor3
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
sensor2 = await getView("/mgr/raumklima/sensor-2-get", {
Accept: "application/json",
Authentication: `:${token}`
})
Insert cell
sensor2c = (await getView("/mgr/raumklima/sensor-4-get", {
Accept: "application/json",
Authentication: `:${token}`
})).concat(sensor2)
Insert cell
sensor2c
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Plot.plot({
x: {
label: "minute"
},
y: {
grid: true
},
marks: [
Plot.line(sensor2filter, { x: "dateTime", y: "humidity", stroke: "#4e79a7" }),
Plot.gridX({
ticks: "week",
stroke: "#fff",
strokeOpacity: 1,
insetBottom: -0.5
})
]
})
Insert cell
md`
---
## Appendix`
Insert cell
host = "https://dydra.com"
Insert cell
resource_access.authentication_set(host, token) && "Success"

Insert cell
import { resourceAPI } from "@datagenous/resource-protocol-library"
Insert cell
resource_access = import(
"https://dydra.com/javascripts/replication/resource-access.js"
)

Insert cell
getView = token
? resourceAPI(host, "VIEW")
: function (location, options) {
return [];
}
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more