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