From 9545104a65c3fc2cb753ed1eb06c8f2a69e2a0b2 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 24 Dec 2018 16:04:02 +0100 Subject: [PATCH 1/2] Make data source configurable --- elements/linechart.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/elements/linechart.js b/elements/linechart.js index c91f210..0e812ea 100644 --- a/elements/linechart.js +++ b/elements/linechart.js @@ -28,12 +28,16 @@ class LineChart extends Component { width: props.number, height: props.number, references: props.string, + source: props.string, }; connected() { if (!this.timeseries || !this.timeseries.length) { return; } + if (!this.source) { + this.source = 'http://openmct.cbrp3.c-base.org'; + } const days = this.days || 1; const endDate = new Date(); const startDate = new Date(); @@ -48,7 +52,7 @@ class LineChart extends Component { } fetch(timeseries, start, end) { - const url = `http://openmct.cbrp3.c-base.org/telemetry/${timeseries}?start=${start.getTime()}&end=${end.getTime()}`; + const url = `${this.source}/telemetry/${timeseries}?start=${start.getTime()}&end=${end.getTime()}`; return fetch(url) .then(data => data.json()); } From 01d483ba8e5f205372ffb1fbbaf1d7d948678974 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 24 Dec 2018 16:04:15 +0100 Subject: [PATCH 2/2] 35C3 life support screen --- 35c3-life-support/index.html | 83 ++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 35c3-life-support/index.html diff --git a/35c3-life-support/index.html b/35c3-life-support/index.html new file mode 100644 index 0000000..0e3c175 --- /dev/null +++ b/35c3-life-support/index.html @@ -0,0 +1,83 @@ + + + + + 35C3 life support + + + + + + + + +
+
+

temperature

+ +
+
+

humidity

+ +
+
+

barometric pressure

+ +
+
+

c-base @ 35C3

+ + + +