Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

paperlesspaper node-samples

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

Setup

  • Node.js >= 18

Install deps:

npm install

Run

Set 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.png

Optional 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages