mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-13 11:35:00 +00:00
* 15min prices WIP * WIP more changes for 15min prices * More work on 15min pricing * Fixed some errors * Some changes after testing * Graphical changes for 15min pricing * Adjustments on MQTT handlers after switching to 15min prices * Reverted some MQTT changes * Adapted HA integration for 15min pricing * Adapted JSON payload for 15min * Adjustments during testing * Set default price interval * Fixed refresh of price graph when data changes * Bugfixes * Fixed some issues with raw payload * Adjustments for meter timestamp from Kamstrup * Updated readme * Added detailed breakdown of payloads coming from Norwegian meters * Minor changes relating to price * Fixed byte alignment on price config * Changes to support RC upgraders
46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
build: {
|
|
outDir: 'dist',
|
|
assetsDir: '.',
|
|
rollupOptions: {
|
|
output: {
|
|
assetFileNames: '[name][extname]',
|
|
chunkFileNames: '[name].js',
|
|
entryFileNames: '[name].js'
|
|
}
|
|
}
|
|
},
|
|
plugins: [svelte()],
|
|
server: {
|
|
proxy: {
|
|
"/data.json": "http://192.168.21.122",
|
|
"/energyprice.json": "http://192.168.21.122",
|
|
"/importprice.json": "http://192.168.21.122",
|
|
"/exportprice.json": "http://192.168.21.122",
|
|
"/dayplot.json": "http://192.168.21.122",
|
|
"/monthplot.json": "http://192.168.21.122",
|
|
"/temperature.json": "http://192.168.21.122",
|
|
"/sysinfo.json": "http://192.168.21.122",
|
|
"/configuration.json": "http://192.168.21.122",
|
|
"/tariff.json": "http://192.168.21.122",
|
|
"/realtime.json": "http://192.168.21.122",
|
|
"/priceconfig.json": "http://192.168.21.122",
|
|
"/translations.json": "http://192.168.21.122",
|
|
"/cloudkey.json": "http://192.168.21.122",
|
|
"/wifiscan.json": "http://192.168.21.122",
|
|
"/save": "http://192.168.21.122",
|
|
"/reboot": "http://192.168.21.122",
|
|
"/configfile": "http://192.168.21.122",
|
|
"/upgrade": "http://192.168.21.122",
|
|
"/mqtt-ca": "http://192.168.21.122",
|
|
"/mqtt-cert": "http://192.168.21.122",
|
|
"/mqtt-key": "http://192.168.21.122",
|
|
"/logo.svg": "http://192.168.21.122",
|
|
}
|
|
}
|
|
})
|