+ Last update: {lastUpdateTimestamp?.toISOString()}, connected to {webSocketUrl}
+
diff --git a/webif/src/routes/Logo.svelte b/webif/src/routes/Logo.svelte
new file mode 100644
index 0000000..d9e7fca
--- /dev/null
+++ b/webif/src/routes/Logo.svelte
@@ -0,0 +1,11 @@
+
+
+
+ {#each sensorData as data}
+
+ {data.circuit.name}
+ {data.watts}W
+
+ {/each}
+
+
+
+
diff --git a/webif/static/favicon.png b/webif/static/favicon.png
new file mode 100644
index 0000000..825b9e6
Binary files /dev/null and b/webif/static/favicon.png differ
diff --git a/webif/svelte.config.js b/webif/svelte.config.js
new file mode 100644
index 0000000..18b4716
--- /dev/null
+++ b/webif/svelte.config.js
@@ -0,0 +1,18 @@
+import adapter from '@sveltejs/adapter-auto'
+import { vitePreprocess } from '@sveltejs/kit/vite'
+
+/** @type {import('@sveltejs/kit').Config} */
+const config = {
+ // Consult https://kit.svelte.dev/docs/integrations#preprocessors
+ // for more information about preprocessors
+ preprocess: vitePreprocess(),
+
+ kit: {
+ // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
+ // If your environment is not supported or you settled on a specific environment, switch out the adapter.
+ // See https://kit.svelte.dev/docs/adapters for more information about adapters.
+ adapter: adapter(),
+ },
+}
+
+export default config
diff --git a/webif/tsconfig.json b/webif/tsconfig.json
new file mode 100644
index 0000000..794b95b
--- /dev/null
+++ b/webif/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "extends": "./.svelte-kit/tsconfig.json",
+ "compilerOptions": {
+ "allowJs": true,
+ "checkJs": true,
+ "esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "resolveJsonModule": true,
+ "skipLibCheck": true,
+ "sourceMap": true,
+ "strict": true
+ }
+ // Path aliases are handled by https://kit.svelte.dev/docs/configuration#alias
+ //
+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes
+ // from the referenced tsconfig.json - TypeScript does not merge them in
+}
diff --git a/webif/vite.config.ts b/webif/vite.config.ts
new file mode 100644
index 0000000..dd1b8b7
--- /dev/null
+++ b/webif/vite.config.ts
@@ -0,0 +1,6 @@
+import { sveltekit } from '@sveltejs/kit/vite'
+import { defineConfig } from 'vite'
+
+export default defineConfig({
+ plugins: [sveltekit()],
+})