feat: make command parameter optional in set_alarm mutation
This commit is contained in:
@@ -74,15 +74,16 @@ query {
|
||||
```
|
||||
|
||||
**Set an alarm:**
|
||||
*(Note: `command` is optional. If omitted, the API will automatically figure out the correct command to start `wecker.py`)*
|
||||
```graphql
|
||||
mutation {
|
||||
setAlarm(
|
||||
cronExpression: "45 6 * * 1-5",
|
||||
command: "cd /home/pi/workspace/wecker && /usr/bin/python3 wecker.py > wecker.log 2>&1",
|
||||
isEnabled: true
|
||||
) {
|
||||
id
|
||||
cronExpression
|
||||
command
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user