|
@@ -16,7 +16,6 @@ CORE NEURON : No installation needed.
|
|
|
| minutes | NO | int | | value > 0 | Number of minutes to wait before running the synapse |
|
|
|
| hours | NO | int | | value > 0 | Number of hours to wait before running the synapse |
|
|
|
| synapse | YES | string | | | Name of the synapse to run after the selected delay |
|
|
|
-| forwarded_parameters | NO | dict | | | dict of parameters that will be passed to the called synapse |
|
|
|
|
|
|
## Return Values
|
|
|
|
|
@@ -26,9 +25,9 @@ None
|
|
|
|
|
|
|
|
|
**Scenario:** You are used to make a tea and want to know when it's time to remove the bag.
|
|
|
-> **You:** remember me to remove the bag of my tea
|
|
|
-**Kalliope:** Alright
|
|
|
-3 minutes later..
|
|
|
+> **You:** remember me to remove the bag of my tea<br>
|
|
|
+**Kalliope:** Alright<br>
|
|
|
+3 minutes later..<br>
|
|
|
**Kalliope:** your tea is ready
|
|
|
|
|
|
```yml
|
|
@@ -54,9 +53,9 @@ None
|
|
|
|
|
|
If your STT engine return integer when capturing a spoken order, you can set the time on the fly.
|
|
|
**Scenario:** You are starting to cook something
|
|
|
-> **You:** notify me in 10 minutes
|
|
|
-**Kalliope:** I'll notify you in 10 minutes
|
|
|
-10 minutes later..
|
|
|
+> **You:** notify me in 10 minutes<br>
|
|
|
+**Kalliope:** I'll notify you in 10 minutes<br>
|
|
|
+10 minutes later..<br>
|
|
|
**Kalliope:** You asked me to notify you
|
|
|
|
|
|
```yml
|
|
@@ -80,11 +79,11 @@ If your STT engine return integer when capturing a spoken order, you can set the
|
|
|
- "You asked me to notify you"
|
|
|
```
|
|
|
|
|
|
-Passing argument to the called synapse
|
|
|
+Passing argument to the called synapse with the `kalliope_memory`.
|
|
|
**Scenario:** You want to remember to do something
|
|
|
-> **You:** remind me to call mom in 15 minutes
|
|
|
-**Kalliope:** I'll notify you in 15 minutes
|
|
|
-15 minutes later..
|
|
|
+> **You:** remind me to call mom in 15 minutes<br>
|
|
|
+**Kalliope:** I'll notify you in 15 minutes<br>
|
|
|
+15 minutes later..<br>
|
|
|
**Kalliope:** You asked me to remind you to call mom 15 minutes ago
|
|
|
```yml
|
|
|
- name: "remember-synapse"
|
|
@@ -94,9 +93,9 @@ Passing argument to the called synapse
|
|
|
- neurotimer:
|
|
|
seconds: "{{ time }}"
|
|
|
synapse: "remember-todo"
|
|
|
- forwarded_parameters:
|
|
|
- remember: "{{ remember }}"
|
|
|
- seconds: "{{ time }}"
|
|
|
+ kalliope_memory:
|
|
|
+ - remember: "{{ remember }}"
|
|
|
+ - seconds: "{{ time }}"
|
|
|
- say:
|
|
|
message:
|
|
|
- "I'll remind you in {{ time }} minutes"
|
|
@@ -107,7 +106,7 @@ Passing argument to the called synapse
|
|
|
neurons:
|
|
|
- say:
|
|
|
message:
|
|
|
- - "You asked me to remind you to {{ remember }} {{ time }} minutes ago"
|
|
|
+ - "You asked me to remind you to {{ kalliope_memory['remember'] }} {{ kalliope_memory['time'] }} minutes ago"
|
|
|
```
|
|
|
|
|
|
|