Minimal Node.js example for uploading (swapping) the image shown on an ePaper screen using the paperlesspaper API. This code is used in the tutorial in the paperlesspaper Blog.
POST /papers/uploadSingleImage/:paperId
- Node.js >= 18
Install deps:
npm installSet env vars (API key) and call the script with paperId and a local image path:
export PAPERLESSPAPER_API_KEY="..."
node upload-image.mjs <PAPER_ID> /path/to/image.pngOptional base URL override:
export PAPERLESSPAPER_API_BASE="https://api.memo.wirewire.de/v1"The script prints the returned paper object JSON. Watch imageUpdatedAt to confirm the update.