Skip to content

A Cloudflare worker that sends the next school lunch to a Tidbyt display

License

Notifications You must be signed in to change notification settings

jed/tidbyt-mealviewer-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tidbyt-mealviewer-worker

A Cloudflare worker that uses the Browser Rendering API and MealViewer to display the next school lunch on a Tidbyt.

image

Install

  1. clone this repo
  2. run npm install from your terminal
  3. 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 Key
  • API_KEY: your API key, also from the Tidbyt app, Settings > Developer > Get API Key
  1. run npm start, hit the displayed URL to make sure it works.

Deploy

  1. run wrangler secret put SCHOOL_ID, and enter the value from your .dev.vars file
  2. run wrangler secret put DEVICE_ID, and enter the value from your .dev.vars file
  3. run wrangler secret put API_KEY, and enter the value from your .dev.vars file
  4. run npm run deploy

About

A Cloudflare worker that sends the next school lunch to a Tidbyt display

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published