Back

Version 12

10/14/2024
/** @jsxImportSource npm:hono/jsx */
import { extractValInfo } from "https://esm.town/v/pomdtr/extractValInfo";
import { email } from "https://esm.town/v/std/email?v=12";
import { Buffer } from "node:buffer";
import { createHmac } from "node:crypto";
import { Hono } from "npm:hono";
import { sqlite } from "https://esm.town/v/stevekrouse/sqlite";

const app = new Hono();

const ValTownGroundFloorDeviceId = "D2353438164D";
const ValTownOfficeDeviceId = "CD6F3A810848";

const NYC_TIMEZONE = "America/New_York";

// Define parties with start and end times (in ET)
const parties = [
{
name: "NYC AI Meetup",
start: Temporal.ZonedDateTime.from({
timeZone: NYC_TIMEZONE,
year: Temporal.Now.zonedDateTimeISO(NYC_TIMEZONE).year,
month: Temporal.Now.zonedDateTimeISO(NYC_TIMEZONE).month,
day: Temporal.Now.zonedDateTimeISO(NYC_TIMEZONE).day,
hour: 17,
minute: 0,
}),
end: Temporal.ZonedDateTime.from({
timeZone: NYC_TIMEZONE,
year: Temporal.Now.zonedDateTimeISO(NYC_TIMEZONE).year,
month: Temporal.Now.zonedDateTimeISO(NYC_TIMEZONE).month,
day: Temporal.Now.zonedDateTimeISO(NYC_TIMEZONE).day,
hour: 20,
minute: 0,
}),
},
stevekrouse-switchbot_party.web.val.run
Updated: October 14, 2024