Adjustments to GUI

This commit is contained in:
Gunnar Skjold 2023-11-18 09:20:09 +01:00
parent f734cb2179
commit 725af5150d
4 changed files with 18 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -37,6 +37,7 @@
points.push(point(i3));
}
config = {
title: 'Amperage',
padding: { top: 20, right: 15, bottom: 20, left: 35 },
y: {
min: 0,

View File

@ -38,7 +38,7 @@
{#if config.title}
<strong class="text-sm">{config.title}</strong>
{/if}
<svg height="{heightAvailable}">
<svg height="100%">
<!-- y axis -->
<g class="axis y-axis">
{#each config.y.ticks as tick}

View File

@ -17,21 +17,21 @@ export default defineConfig({
plugins: [svelte()],
server: {
proxy: {
"/data.json": "http://192.168.233.237",
"/energyprice.json": "http://192.168.233.237",
"/dayplot.json": "http://192.168.233.237",
"/monthplot.json": "http://192.168.233.237",
"/temperature.json": "http://192.168.233.237",
"/sysinfo.json": "http://192.168.233.237",
"/configuration.json": "http://192.168.233.237",
"/tariff.json": "http://192.168.233.237",
"/save": "http://192.168.233.237",
"/reboot": "http://192.168.233.237",
"/configfile": "http://192.168.233.237",
"/upgrade": "http://192.168.233.237",
"/mqtt-ca": "http://192.168.233.237",
"/mqtt-cert": "http://192.168.233.237",
"/mqtt-key": "http://192.168.233.237",
"/data.json": "http://192.168.233.244",
"/energyprice.json": "http://192.168.233.244",
"/dayplot.json": "http://192.168.233.244",
"/monthplot.json": "http://192.168.233.244",
"/temperature.json": "http://192.168.233.244",
"/sysinfo.json": "http://192.168.233.244",
"/configuration.json": "http://192.168.233.244",
"/tariff.json": "http://192.168.233.244",
"/save": "http://192.168.233.244",
"/reboot": "http://192.168.233.244",
"/configfile": "http://192.168.233.244",
"/upgrade": "http://192.168.233.244",
"/mqtt-ca": "http://192.168.233.244",
"/mqtt-cert": "http://192.168.233.244",
"/mqtt-key": "http://192.168.233.244",
}
}
})