Skip to content

killy971/lfit-menu-du-jour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

lfit-menu-du-jour

Extract LFIT today's menu the monthly published PDF menu file and communicate it with Pushover

Usage:

Just run:

./mdj.sh

For example, the script can be cronned ton run on weekday mornings.

Note: the script expects the following environment variable to be set in order to send the push notification via Pushover:

  • PUSHOVER_USER
  • PUSHOVER_KEY

Dependencies:

  • curl
  • xmllint
  • tabulapdf/tabula-java (automatically downloaded on first run of the command)

Implementation details

Logic used to avoid running the script on school holidays:

  • check Japan national holidays API
  • check if parsed menu is empty
  • check French schools nummber holiday API (TODO)

About

Extract LFIT today's menu the monthly published PDF menu file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages