By: AY1920S2-CS2103T-W13-1
Since: Mar 2020
Ease Your Life At Halls (EYLAH) is for those who prefer to use a desktop app to solve issues related to Halls of Residences in National University of Singapore (NUS). More importantly, EYLAH is optimized for those who prefer to work with a Command Line Interface (CLI) while still having the benefits of a Graphical User Interface (GUI). If you can type fast, EYLAH can solve your problems in halls by tracking your diet after those unhealthy supper runs and splitting the cost after each outing or late-night party session. Interested? Jump to Section 2, “Quick Start” to get started. Enjoy!
-
Ensure you have Java
11
or above installed in your Computer. -
Download the latest
eylah.jar
here. -
Copy the file to the folder you want to use as the home folder for your EYLAH application.
-
Double-click the file to start the app. The GUI should appear in a few seconds.
-
Type the command in the command box and press Enter to execute it.
e.g. typinghelp
and pressing Enter will open the help window. -
Some example commands you can try:
-
list
: lists all contacts -
add
: enters the diet segment of the program. -
split
: enters the expense splitter segment of the program -
exit
: exits the app
-
-
Refer to Section 3, “Features” for details of each command.
Command Format
-
Words in
UPPER_CASE
are the parameters to be supplied by the user e.g. inaddperson -n NAME
,NAME
is a parameter which can be used asaddperson -n John Doe
. -
Items in square brackets are optional e.g
-n NAME [-r ROOM]
can be used as-n John Doe -r D411
or as-n John Doe
. -
Items with
…
after them can be used multiple times including zero times e.g.[-n NAME]…
can be used as-n John Doe
,-n John Doe -n Daniel
etc.
Tracks our daily calories intake. Add food, then calculate
Allows users to decide which dieting mode they want, based on the following modes:
-
Lose Weight (-l)
-
Gain Weight (-g)
-
Maintain (-m)
Format: diet mode [-m] [-l] [-g]
Example: diet mode -m
Allows user to input their height.
Format: height HEIGHT
Example: height 172
ℹ️
|
Height in centimetres (cm), rounded to nearest centimetre |
Allows user to input their weight.
Format: weight WEIGHT
Example: weight 65.7
ℹ️
|
Weight in kilograms (kg), rounded to nearest kilogram |
Adds food to the list.
Format: add food CALORIES
Example: add Fishball Noodles 383
List all the items in your current diet tracker. Show different data based on flags.
-
List all food and data in tabular format (-l)
-
Food consumed for the day (-g)
-
Track calories over past number of days (-m)
ℹ️
|
Default value of list is food consumed for the day. Default number of days for track calories is past week |
Format: list [-f] [-d] [-t [numDays]]
Example: list -t 3
Deletes a Food item from the list of foods stored.
Format: delete INDEX
-
Deletes the food item at the specified
INDEX
. -
The index refers to the index number shown in the displayed food list.
-
The index must be a positive integer 1, 2, 3, …
💡
|
Use list to view your item indices before deletion. |
Example:
-
list
delete 2
Deletes the 2nd row of food data from the past 7 days of food.
Allows you to edit either the Food name, or the calories.
Format: edit INDEX [-n NAME] [-c CALORIES]
-
Edits the Food Item at the specified
INDEX
. The index refers to the index number shown in the displayed Food list. The index must be a positive integer 1, 2, 3, … -
At least one of the optional fields must be provided.
-
Existing values will be updated to the input values.
Example:
-
edit 2 -n Chicken Rice -c 585
Edits the name of the food item at index 2 to be 'Chicken Rice' and the calories to be '585'.
Calculates and lists the following:
-
Total Calorie Intake for the day.
-
Calories left based on your preferred dieting mode.
Format: calc
Allows the user to calculate their BMI based on the height and weight stored in the program.
It will display the following data:
-
Height
-
Weight
-
BMI value
-
BMI category
Format: bmi [-w WEIGHT] [-h HEIGHT]
-
Deletes the person at the specified
INDEX
. -
The index refers to the index number shown in the displayed person list.
-
The index must be a positive integer 1, 2, 3, …
Examples:
-
height 172
weight 65
bmi
Change your height and your weight to your current measurements before calculating your BMI. BMI is calculated based off the stored height and weight in this instance. -
bmi 65 172
Calculate BMI based on the input height and weight values.
Splitting the food cost with friends. Add person and item, then calculate.
Add new person to the list of people involved in the splitting.
Format:
addperson -n NAME [-r ROOM] [-t TELEGRAM] [-p PHONE]
Example:
addperson -n john -r D411 -t @john -p 91234567
addperson -daniel
Add food and the person involved in the splitting.
Format:
addfood -f FOOD -c COST -n ALL
addfood -f FOOD -c COST -n NAME [-n NAME]…
Example:
addfood -f pizza -c 30 -n all
addfood -f pasta -c 6 -n john -n bob -n daniel
Calculate the total cost for each person or display cost owed for a particular person.
Format:
calculate [-n NAME]. . .
Example:
calculate
calculate -n john
calculate -n john -alice
Display the food(s) in a list:
Format:
listfood
Example:
listfood
Display the person(s) in the list
Format:
listperson
Example:
listperson
Remove person(s) from the list of persons.
Format:
removeperson -n NAME [-n NAME]…
Example:
removeperson -n john
removeperson -n john -n bob
Remove food(s) from the list of foods.
Format:
removefood -f FOOD [-f FOOD]…
Example:
removefood -f fries
removefood -f pizza -f pasta
Q: How do I transfer my data to another Computer?
A: Install the app in the other computer and overwrite the empty data file it creates with the file that contains the data of your previous Address Book folder.