Action commands are used to tell your Gumball what to do when it receives the webhook. Action commands are set with the action parameter in your webhook URL:
Webhook URL: https://app-gumball.com/request?id=gumball_xxxxxxx&action=track_1
Here are the possible commands:
track_x → play audio track xtrack_random_x-xx → play random track from x to xxvolume_x → set volume to x (from 0 to 20)sleep_on → put Gumball in sleep mode and disable notificationssleep_off → put Gumball in active mode and re-able notificationsreset_wifi → reset saved wifi credentialsupdate_firmware → update to the latest firmware versionThis command asks your Gumball to play a specific audio track_x when the notification is received.
Example: https://app-gumball.com/request?id=gumball_xxxxxxx&action=track_12
This will play 12.mp3 from Gumball’s microSD card.
Tips: By default, the command track_0 is a silent track (0.mp3 on the microSD card). This is handy if you want to have your Gumball turn on with the rotating light only, no sound.