add dwd type

This commit is contained in:
2025-07-25 01:47:11 +02:00
parent 53da0f740c
commit ab1d2242c3
6 changed files with 15 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
import { useEffect } from "react";
import TimetableRow from "@/components/TimetableRow/TimetableRow";
import { useKVVStore } from "@/store/kvv";
import type { DepartureType } from "@/types/departureType";

View File

@@ -1,12 +1,7 @@
import { create } from "zustand";
import { devtools } from "zustand/middleware";
import Flatastic from "@/api/flatastic";
import type { FlatasticChore } from "@/types/flatasticChore";
import { devtools } from "zustand/middleware";
interface FlatasticStore {
chores: FlatasticChore[];
fetch: () => Promise<void>;
}
const useFlatasticStore = create(
devtools(

View File

@@ -1,7 +1,7 @@
import { create } from "zustand";
import { devtools } from "zustand/middleware";
import { fetchKvvDepartures } from "@/api/kvv";
import type { DepartureType } from "@/types/departureType";
import { devtools } from "zustand/middleware";
const useKVVStore = create(
devtools(

13
src/types/dwdType.ts Normal file
View File

@@ -0,0 +1,13 @@
export interface Forecast2 {
stationId: string;
start: number;
timeStep: number;
temperature: number[];
precipitationTotal: number[];
sunshine: number[];
dewPoint2m: number[];
surfacePressure: number[];
humidity: number[];
isDay: boolean[];
temperatureStd: number[];
}