-
Notifications
You must be signed in to change notification settings - Fork 0
3.1.1. default
Seongnoh Sean Yi edited this page Jul 30, 2024
·
5 revisions
default.mjs would provide the features like the one below. When you include this to the module's config, the Assistant can do/reply below things;
-
getCurrentLocalDateAndTime: Get the current date and time with the local timezone. This feature is needed when the assistant has to know the current date or time to answer a date/time-specific query.
e.g.) "What time is it now?", "What date will be tomorrow?", "How many days leave until my birthday?"
-
getModules: This function retrieves a list of modules and their visible status. It is useful when the assistant needs to know which modules are currently installed in the MagicMirror.
e.g.) "Hide the clock module"
-
timer: Activate a timer during the specified duration. It could havedurationas a parameter.
e.g.) "alert me in 5 minutes", "set timer to the 6 o'clock."
This feature is not so useful, because it will show only alert in the screen. This is just an example how to build
function_call. You can make your own timer logic for your purpose.