2
3async function getWeather() {
4 const response = await fetch(
5 "https://api.open-meteo.com/v1/forecast?latitude=48.7758&longitude=9.1829¤t=temperature_2m,weathercode&daily=weathercode,temperature_2m_max,temperature_2m_min&timezone=Europe%2FBerlin"
6 );
17 setStatus("sending...");
18 try {
19 await fetch("/send-email", {
20 method: "POST",
21 headers: { "Content-Type": "application/json" },
62
63 try {
64 const response = await fetch("https://rozek-gdi_formuploadservice.web.val.run", {
65 method: "POST",
66 body: formDataToSend,
86 const y = d3.select(this).attr("cy");
87
88 fetch(`/update?x=${x}&y=${y}&i=${d3.select(this).attr("idx")}`, { method: "post" });
89 d3.select(this).attr("stroke", null);
90 }
190 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
191});
192export default app.fetch;
130 formData.append("description", altText);
131
132 const uploadResponse = await fetch(`${MASTODON_URL}/api/v2/media`, {
133 method: "POST",
134 headers: {
149 const mediaId = await uploadImage(imageBuffer, altText);
150
151 const postResponse = await fetch(`${MASTODON_URL}/api/v1/statuses`, {
152 method: "POST",
153 headers: {
172async function overlayTextOnImage(slammer_text: string, slammed_text: string, imageDef: Image): Promise<Uint8Array> {
173 const image = await loadImage(imageDef.url);
174 let fontFile = await fetch(
175 "https://github.com/sophilabs/macgifer/raw/master/static/font/impact.ttf",
176 );
57
58 try {
59 const response = await fetch("https://rozek-gdi_fileuploadservice.web.val.run/", {
60 method: "POST",
61 body: formData,
57
58 try {
59 const response = await fetch("https://rozek-gdi_fileuploadservice.web.val.run/", {
60 method: "POST",
61 body: formData,
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));
81 }
82});
83export default app.fetch;
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));