diff --git a/src/App.vue b/src/App.vue
index 417c7de3..61e4e262 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -58,6 +58,16 @@ export default {
};
},
computed: {
+ /**
+ * @return {Str} - Mqtt client id of our connection
+ */
+ mqttClientId() {
+ try {
+ return this.client.options.clientId;
+ } catch (error) {
+ return undefined;
+ }
+ },
/**
* @return {Array} - Array of topics (String)
*/
diff --git a/src/components/OpenwbPageNavbar.vue b/src/components/OpenwbPageNavbar.vue
index 9f3f058e..d7d8fef6 100644
--- a/src/components/OpenwbPageNavbar.vue
+++ b/src/components/OpenwbPageNavbar.vue
@@ -198,6 +198,33 @@
Status
+
+
+ Auswertungen
+
+
+
{
if (topic.includes("#") || topic.includes("+")) {
console.debug("skipping init of wildcard topic:", topic);
diff --git a/src/router/index.js b/src/router/index.js
index ff452d1c..0d360ad5 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -233,6 +233,18 @@ const routes = [
"../views/ChargeLog.vue"
),
},
+ {
+ path: "/Logging/DailyGraph",
+ name: "DailyGraph",
+ meta: {
+ heading: "Tagesauswertung",
+ },
+ component: () =>
+ import(
+ /* webpackChunkName: "DailyGraph" */
+ "../views/DailyGraph.vue"
+ ),
+ },
];
/* examples for development only start here */
if (process.env.NODE_ENV !== "production") {
diff --git a/src/views/ChargeLog.vue b/src/views/ChargeLog.vue
index f857870e..a50e6080 100644
--- a/src/views/ChargeLog.vue
+++ b/src/views/ChargeLog.vue
@@ -6,7 +6,7 @@
title="Zeitraum"
subtype="month"
min="2018-01"
- max="2021-12"
+ max="2022-12"
v-model="chargeLogDate"
/>
+
+ {{
+ JSON.stringify(
+ $store.state.mqtt[
+ "openWB/log/" + mqttClientId + "/data"
+ ]
+ )
+ }}
+
diff --git a/src/views/DailyGraph.vue b/src/views/DailyGraph.vue
new file mode 100644
index 00000000..d6ee8a3c
--- /dev/null
+++ b/src/views/DailyGraph.vue
@@ -0,0 +1,104 @@
+
+
+
+
+