Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

noonMenu: Automation script

Get the noon menu for today - https://www.nooncph.dk/ugens-menuer

  • Currently it only supports MacOS, as it uses Apple Script.
  • You need chromedriver for this to script to work, and you need to allow python to execute apple scripts.

Arguments

The code can be ran with a simple python3 menu.py statement, or you can add an additional argument:

  • day: specifies which day to download the menu from. Defaults to today if not specified, otherwise (today,tomorrow, monday-friday)
  • --buffer-time: The time between opening the menu and automatically closing it if not closed by user. Defaults to 30 seconds.
python3 menu.py today --buffer-time 30

Nice to know

The scripts automatically creates a download directory in your root folder. Within this folder, a subfolder called week_x will be created, where x corresponds to the week number from which the menu was downloaded from. The pdf file will be downloaded to this directory, and kept there until a new week is started.

This is to ensure that you do not have to wait for the file to be downloaded everytime.

NOTE: As a "house-keeping" feature, any sub-directories with week numbers < the current week will be deleted as it contains old data.

About

Get the noon menu for today.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages