Use Case Definitionen - dhbw-stginf16a/silly-monkey GitHub Wiki
Trigger Router to Use-Case
Structure of parameter object is defined by trigger type
{
"trigger": {
"type": "HomeOffice",
"parameters": {
"homelocation": {
"city": "Stuttgart",
"postalCode": "70174",
"adress": "Herdweg 29/31"
},
"worklocation": {
"city": "Stuttgart",
"postalCode": "70178",
"adress": "Rotebühlpl. 41"
},
"allergies": ["graeser", "roggen", "birke"]
}
}
}
{
"trigger": {
"type": "DailyOverview",
"parameters": {
"calendarID":"-ID-",
"calendarAuth":"-Password-",
"homelocation": {
"city": "Stuttgart",
"postalCode": "70174",
"adress": "Herdweg 29/31"
},
"worklocation": {
"city": "Stuttgart",
"postalCode": "70178",
"adress": "Rotebühlpl. 41"
},
"allergies": ["graeser", "roggen", "birke"]
}
}
}
{
"trigger": {
"type": "ReiseEmpfehlung",
"parameters": {
"destination": "Stuttgart"
}
}
}
{
"trigger": {
"type": "GoodMorning",
"parameters": {
}
}
}
{
"trigger": {
"type": "PersonalTrainer",
"parameters": {
"pollenDensity": "low",
"dayTime": "morning",
"weather": "sunny",
"temperature": "20",
"particulatesDensity": "no"
}
}
}
```Programm, mit verschiedenen "libraries"