shibosoftwaredev/f1c100s-linux-nema17-stepper-controller
A four-layer NEMA 17 motor-controller PCB combining an Allwinner F1C100S Linux computer, USB‑PD/buck power system, W5500 Ethernet, STM32 real-time motion control, DRV8825 stepper driver, protection/temperature/current telemetry, USB interfaces, and local LED/buzzer diagnostics.
- Version
- 0.4.56
- License
- unset
- Stars
- 0
scripts/check-review-candidates.mjs
import { parseJlcProduct } from "./audit-jlcpcb-stock.mjs"
import fs from "node:fs"
const result = []
for (const code of process.argv.slice(2)) {
const url = `https://jlcpcb.com/partdetail/${code}`
const response = Bun.spawn(["curl", "--fail", "--location", "--silent", "--show-error", "--max-time", "30", url],
{ stdout: "pipe", stderr: "pipe" })
const html = await new Response(response.stdout).text()
const error = await new Response(response.stderr).text()
if (await response.exited) { result.push({ code, error }); continue }
const stock = parseJlcProduct(html, code)
const description = html.match(/<meta name="description" content="([^"]*)"/)?.[1]
const entry = { code, ...stock, description, url, checkedAt: new Date().toISOString() }
result.push(entry)
console.log(JSON.stringify(entry))
}
fs.writeFileSync("reports/review-candidate-parts.json", JSON.stringify(result, null, 2) + "\n")