feat(web-app): new components to manage the plots

This commit is contained in:
fastium
2025-05-13 09:26:12 +02:00
parent a059c659fc
commit e13170ed1b
3 changed files with 33 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ export class TimeSeriesManager {
return this.client return this.client
.getValues(user, room, device) .getValues(user, room, device)
.then((response) => { .then((response) => {
console.log(response);
const serie_temperature = new Serie( const serie_temperature = new Serie(
TEMPERATURE, TEMPERATURE,
response.data.filter((x: any) => x[TYPE] === TEMPERATURE), response.data.filter((x: any) => x[TYPE] === TEMPERATURE),

View File

@@ -0,0 +1,30 @@
<template></template>
<script lang="ts">
import { defineComponent } from "vue";
export default defineComponent({
name: "ButtonInterface",
props: {
msg: String,
},
});
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>

View File

@@ -1,3 +1,5 @@
export const APP_NAME = "Home Monitor";
export const URL = "rest.mse.kb28.ch"; export const URL = "rest.mse.kb28.ch";
// load environment varaibles - need to have the prefix VUE_APP // load environment varaibles - need to have the prefix VUE_APP