rainfall last 24h

This commit is contained in:
Evert Prants 2023-09-17 20:50:22 +03:00
parent fb8778128b
commit c06fccc005
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
3 changed files with 3 additions and 1 deletions

View File

@ -13,7 +13,7 @@
$: {
convertedSpeed = ((data.windSpeed || 0) / 3.6).toFixed(1);
convertedGust = ((data.gustSpeed || 0) / 3.6).toFixed(1);
convertedRain = (data.totalRain || 0).toFixed(1);
convertedRain = (data.rain24h || 0).toFixed(1);
}
</script>

View File

@ -11,6 +11,7 @@ export interface Weather {
windDirection: string;
rainDiff: number;
totalRain: number;
rain24h: number;
absPressure: number;
id: number;
fresh: boolean;

View File

@ -4,4 +4,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [svelte()],
base: './'
})