add dwd type
This commit is contained in:
0
src/components/Flatastic/style.module.css
Normal file
0
src/components/Flatastic/style.module.css
Normal file
@@ -1,7 +1,6 @@
|
|||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
|
|
||||||
import TimetableRow from "@/components/TimetableRow/TimetableRow";
|
import TimetableRow from "@/components/TimetableRow/TimetableRow";
|
||||||
|
|
||||||
import { useKVVStore } from "@/store/kvv";
|
import { useKVVStore } from "@/store/kvv";
|
||||||
import type { DepartureType } from "@/types/departureType";
|
import type { DepartureType } from "@/types/departureType";
|
||||||
|
|
||||||
|
|||||||
0
src/components/Timetable/style.module.css
Normal file
0
src/components/Timetable/style.module.css
Normal file
@@ -1,12 +1,7 @@
|
|||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
|
import { devtools } from "zustand/middleware";
|
||||||
import Flatastic from "@/api/flatastic";
|
import Flatastic from "@/api/flatastic";
|
||||||
import type { FlatasticChore } from "@/types/flatasticChore";
|
import type { FlatasticChore } from "@/types/flatasticChore";
|
||||||
import { devtools } from "zustand/middleware";
|
|
||||||
|
|
||||||
interface FlatasticStore {
|
|
||||||
chores: FlatasticChore[];
|
|
||||||
fetch: () => Promise<void>;
|
|
||||||
}
|
|
||||||
|
|
||||||
const useFlatasticStore = create(
|
const useFlatasticStore = create(
|
||||||
devtools(
|
devtools(
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { create } from "zustand";
|
import { create } from "zustand";
|
||||||
|
import { devtools } from "zustand/middleware";
|
||||||
import { fetchKvvDepartures } from "@/api/kvv";
|
import { fetchKvvDepartures } from "@/api/kvv";
|
||||||
import type { DepartureType } from "@/types/departureType";
|
import type { DepartureType } from "@/types/departureType";
|
||||||
import { devtools } from "zustand/middleware";
|
|
||||||
|
|
||||||
const useKVVStore = create(
|
const useKVVStore = create(
|
||||||
devtools(
|
devtools(
|
||||||
|
|||||||
13
src/types/dwdType.ts
Normal file
13
src/types/dwdType.ts
Normal 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[];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user