import { type Button } from "@/components/Button"; import { Timer } from "@/components/Timer"; export async function getButtons(): Promise { return [ { type: 0, name: "Brama Wjazdowa", }, { type: 0, name: "Brama Toyota", }, { type: 0, name: "Brama Passat", }, { type: 1, name: "Furtka", }, { type: 0, name: "Plafon Maks", }, { type: 1, name: "Ciepła woda 52,8°C", }, { type: 1, name: "Wentylator łazienka", }, { type: 1, name: "Wentylator Kuchnia Dolna", }, { type: 1, name: "Pompa źródło", }, { type: 1, name: "Nawodnienie", }, { type: 1, name: "Choinka+Astro", }, { type: 1, name: "Komputer", }, { type: 1, name: "Oświetlenie Zewnętrzne", }, { type: 1, name: "Blok. czujki ośw. zewn.", }, { type: 1, name: "Ogrzewanie 27,5°C", }, { type: 1, name: "Termometr - restart", }, ]; } export async function getTimers(): Promise { return [ { title: "Otwórz bramę wjazową na:", options: [ { time: 15, unit: "m" }, { time: 45, unit: "m" }, { time: 1, unit: "h" }, { time: 3, unit: "h" }, { time: 24, unit: "h" }, { time: 48, unit: "h" }, ], backgroundColor: "#ab03ab", onTill: Math.floor(Date.now() / 1000) + 3 * 287721, secondsLeftText: "Otwarte jeszcze przez:", extraStopActions: [{ title: "Zamknij i wyłącz" }], }, { title: "Włącz ogrzewanie na:", secondsLeftText: "Włączone jeszcze na:", options: [ { time: 1, unit: "h" }, { time: 1.5, unit: "h" }, { time: 2, unit: "h" }, { time: 3, unit: "h" }, ], backgroundColor: "#ab03ab", onTill: null, }, ]; }