scottbez1 / scottbez1/splitflap

Proposal: live tennis scores example package (software/chainlink/js/packages)

Open
#272 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
4.1k
Forks
344
PR merge metrics
No merged PRs in 30d

Description

First, disclosure: I run the Live Tennis API, so this proposal is vendor-authored — judge accordingly.

I'd like to contribute a new example package under software/chainlink/js/packages/, mirroring example-node-cli: a small Node script that polls live tennis matches and writes a score line to the display via splitflapjs-node (example-node-tennis-scores, roughly package.json + src/index.ts + README, same eslint/prettier config as the existing examples).

Why tennis on a split-flap specifically: a tennis scoreline is short, slow-moving state — alcaraz 2 sinner 1 style — and our free tier (100 requests/day, docs) maps to a ~15-minute refresh, which is an honest cadence for this display rather than a fast ticker pretending otherwise. I noticed the FLAPS set in example-node-cli/src/index.ts has letters, digits, ., ,, ' but no -, so the formatter would stick to space-separated set counts and document that it must match the firmware's config.h flap set.

Would you take a PR along these lines? Happy to adjust scope (or keep it out of the repo and just publish it as a gist linked from discussions, if you'd rather not carry another example package). And if you want to try the data first, I'll happily set up a free key for you.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing software/chainlink/js/packages/example-node-cli, especially its package.json and src/index.ts, then review its README and shared eslint/prettier configuration. Confirm how splitflapjs-node is used and check the firmware config.h flap set before defining the tennis score format. Done means a documented example-node-tennis-scores package that polls the Live Tennis API and writes a compatible score line to the display.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, embedded-iot
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.