27};
28
29export default async function(
30 req: Request,
31 latitude: number = 37.5296,
5#### Python code for display available at https://github.com/michaelwschultz/eink-frame
6
7## Functioning Hardware
8
9| News | NASA Photo of the Day |
6
7// REQUIRES API KEY - see api/news.ts
8function Render({ news }: { news: Record<string, any> }) {
9 const line = "To be taught if fortunate";
10
33}
34
35export default async function(req: Request): Promise<Response> {
36 const data = await GetNews(req).then((res: any) => res.json());
37
3const GUARDIAN_API_KEY = Deno.env.get("GUARDIAN_API_KEY");
4
5export default async function(req: Request): Promise<Response> {
6 const url = new URL(req.url);
7 const pageSize = url.searchParams.get("pagesize");
6import generateImageFromHtml from "./generateImageFromHtml.ts";
7
8export default async function(req: Request) {
9 const url = new URL(req.url);
10 const isImageRequest = url.searchParams.get("generate") === "image";
6
7// NOTE: Hemolog.com is a medication logging app for poeople with Hemophilia, like me 👋.
8function Render({ data }: { data: HEMOLOG_TREATMENT[] }) {
9 return (
10 <html>
41}
42
43export default async function(req: Request): Promise<Response> {
44 const data: HEMOLOG_TREATMENT[] = await GetLogs(req).then((res: any) => res.json());
45 const html = renderToString(<Render data={data} />);
16};
17
18export default async function(req: Request): Promise<Response> {
19 const url = new URL(req.url);
20
3
4// TODO: Add caching of image
5export default async function generateImageFromHtml(
6 valUrl: string,
7 width: number = 800,
4import { BodyWrapper, Content, Footer, Header, Headline } from "../components.tsx";
5
6function Render() {
7 const line = "To be taught if fortunate";
8 return (
36}
37
38export default async function(): Promise<Response> {
39 const html = renderToString(<Render />);
40
6};
7
8export default async function fetchWithCache(
9 apiUrl: string,
10 cacheKey: string,
A helper function to build a file's email
Simple functional CSS library for Val Town
import { OpenAI } from "https://esm.town/v/std/openai";
export default async function(req: Request): Promise<Response> {
if (req.method === "OPTIONS") {
return new Response(null, {
headers: {
"Access-Control-Allow-Origin": "*",
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.