nutrition-mcp/scripts/health-sync.tsx

24 lines
No EOL
524 B
TypeScript

// @ts-nocheck
// Health Sync v8 — minimal test version
import { Script } from "scripting"
// icon-color: deep-blue; icon-glyph: heart;
async function main() {
console.log("v8: script started")
try {
const response = await fetch("http://chronos:9432/health", {
allowInsecureRequest: true
})
const text = await response.text()
console.log("v8: health check = " + text)
} catch (e) {
console.log("v8: fetch error = " + e)
}
console.log("v8: done")
}
main().then(() => Script.exit())