Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A photo of a TRMNL screen showing the meat, meat free and dessert options for Today(Friday) and Monday in the Hampshire Primary School Catering menu A TRMNL private plugin to display Hampshire primary school meals. The data for the menu is static, it's only 85kb or so including images and the fewer moving parts the better.

Generating the menu data

  • get_menu/week?.html - Pages like https://www.hants.gov.uk/educationandlearning/education-catering/parent-information/primary/week-one-menu should be downloaded as week1.html
  • get_menu/extract.py - Python code using beautifulsoup to extract the data from those files. Thanks ChatGPT O3. Output in term_menu.json
  • get_menu/generate_menu_icons.py - Python code to create icons for each meal using DALL-E-3. These icons are in the icons folder. This dumps a term_menu_gfx.json with the logos as base64 PNGs. It can also create a basic HTML file with those logos in for review. A collaboration between me & O3.

The Private Plugin

  • full.liquid is the template for the private plugin
  • settings.yml has the config (this includes term_menu_gfx.json above)

About

A TRML private plugin to display Hampshire primary school meals

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages