rainfall last 24h
This commit is contained in:
parent
fb8778128b
commit
c06fccc005
@ -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>
|
||||
|
||||
|
@ -11,6 +11,7 @@ export interface Weather {
|
||||
windDirection: string;
|
||||
rainDiff: number;
|
||||
totalRain: number;
|
||||
rain24h: number;
|
||||
absPressure: number;
|
||||
id: number;
|
||||
fresh: boolean;
|
||||
|
@ -4,4 +4,5 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
base: './'
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user