probe-first-page.mjs 414 B

1234567
  1. import { readFileSync } from 'node:fs'
  2. const d = JSON.parse(readFileSync(new URL('../t51/oi-GAS.json', import.meta.url), 'utf8')).data
  3. const b = d.industries.find((x) => x.industry.code === 'GAS')
  4. console.log('前 10 条卡片(标题 | 当前读数 | 设施编码):')
  5. for (const m of b.metrics.slice(0, 10)) {
  6. console.log(` ${m.metricName} | ${m.value} ${m.unit} | ${(m.pointCodes || []).join(',')}`)
  7. }