Giter VIP home page Giter VIP logo

menu-plan's Introduction

Get the menu plan from the ETH and UZH canteens

This is a simple script to get the menu plan from the ETH and UZH canteens.

Usage

In order to get the lunch menu plan for the ETH and UZH, run the following command:

python main.py

In order to get the dinner menu plan for the ETH and UZH, run the following command:

python main.py --time abend

Send the menu plan to a signal group

In order to send the menu plan to a signal group, you need to have the signal-cli installed and setup. After that, define a secrets.sh file in the root directory of the project with the following content:

export SIGNAL_NUMBER="your_signal_number"
export SIGNAL_GROUP="the_id_of_the_group_to_send_the_message_to"

Afterwards you can run the following command to send the menu plan to the signal group:

make mittag_signal

or to send the dinner menu plan to the signal group:

make abend_signal

Adding more mensas

In order to add a new Mensa, you need to add the name to the MensaNames and add the corresponding url to the MensaURL. After that, you need to add a it to the get_menus() function.

menu-plan's People

Contributors

sscholbe avatar veichta avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

menu-plan's Issues

Dockerized Setup

A Docker Image + Docker-compose setup file that includes all dependencies (e.g. python libs + signal-cli).

The intended use would be do have an easy to deploy setup that could potentially be automatically run on a server to eliminate the need to run the bot manually. If phone number and group ID could be handled as environmental variables this would even allow for passing them directly in the docker-compose file for fast setup.

TODOs:

  • create minimal Dockerfile/image with all dependencies
  • implement time based message sending for automation (could also be handled by docker)
  • test on server
  • profit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.