From d003b82235a9329f912522a2f70aa950dfce4998 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Sat, 5 Mar 2022 19:28:28 +0200 Subject: Updated README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 00060bc..cc0962e 100644 --- a/README.md +++ b/README.md @@ -118,6 +118,14 @@ const dbcredentials = await openFile("../dblogin.txt"); await updateDB.update("./shifts.txt", ["./Classes/oldclasses.txt", "./Classes/newclasses.txt"], dbcredentials); ``` +## Notifying of unusual food shifts (eg. during exams) +Currently the notifications have to be added manually to the MySQL database. Here's an example: +``` +USE lyllruoka; +INSERT INTO exams VALUES ('2021-11-22', '2021-11-30', '

Koeviikko


22.11. - 30.11..
Kouluruokaa on tarjolla 10:45-11:30.'); +``` +The first value in the parenthesis is the start date of the notification, the second the end date of the notification and the third value is the message to display. HTML is supported. The message will override the food shift search. + ## Updating the developer table Updating the developer table is pretty straightforward. You just need to provide the name of the developer, a description (eg. "Improved the performance of the server") and contact information: ``` @@ -130,6 +138,7 @@ You can make the server update itself from github. To make this work, move `~/Fo ``` mv ~/FoodJS/init.sh ~/init.sh ``` +> Note also that `init.sh` will update the server to `~/FoodJS`. If you want to keep the server somewhere elsewhere, you will have to modify the script a little bit. This script should run at reboot, so next up you will have to set up some cronjobs: To your crontab: -- cgit v1.2.3