A Cloudflare worker that uses the Browser Rendering API and MealViewer to display the next school lunch on a Tidbyt.
- clone this repo
- run
npm install
from your terminal - fill in your
.dev.vars
file
SCHOOL_ID
: your school's from MealViewer (last part of the URL)DEVICE_ID
: your device ID from the Tidbyt app, Settings > Developer > Get API KeyAPI_KEY
: your API key, also from the Tidbyt app, Settings > Developer > Get API Key
- run
npm start
, hit the displayed URL to make sure it works.
- run
wrangler secret put SCHOOL_ID
, and enter the value from your.dev.vars
file - run
wrangler secret put DEVICE_ID
, and enter the value from your.dev.vars
file - run
wrangler secret put API_KEY
, and enter the value from your.dev.vars
file - run
npm run deploy