Frequently Asked Question
Volumio Script
Last Updated 5 years ago
# First we interrupt programming for our notification
# Stop whatever is currently playing
curl "192.168.0.15:3000/api/v1/commands/?cmd=stop"
# Disable the repeat function so the bell cannot repeat
curl "192.168.0.15/api/v1/commands/?cmd=repeat&value=false"
# Set the volume to the desired level
curl "192.168.0.15/api/v1/commands/?cmd=volume&volume=85"
# Fire Reminder Bell
curl "192.168.0.15:3000/api/v1/commands/?cmd=playplaylist&name=ReminderBell"
# Clear the Queue now that it's finished so it doesn't play next time I go to use the queue
curl "192.168.0.15/api/v1/commands/?cmd=clearQueue"
# Wait for bell to finish playing
sleep 15
# Now we return to programming
# Set the volume to the desired level
curl "192.168.0.15/api/v1/commands/?cmd=volume&volume=60"
# Load the desired media and begin playing
curl "192.168.0.15:3000/api/v1/commands/?cmd=playplaylist&name=Wakeup"
# Re-enable the repeat function
curl "192.168.0.15/api/v1/commands/?cmd=repeat&value=true"
# Stop whatever is currently playing
curl "192.168.0.15:3000/api/v1/commands/?cmd=stop"
# Disable the repeat function so the bell cannot repeat
curl "192.168.0.15/api/v1/commands/?cmd=repeat&value=false"
# Set the volume to the desired level
curl "192.168.0.15/api/v1/commands/?cmd=volume&volume=85"
# Fire Reminder Bell
curl "192.168.0.15:3000/api/v1/commands/?cmd=playplaylist&name=ReminderBell"
# Clear the Queue now that it's finished so it doesn't play next time I go to use the queue
curl "192.168.0.15/api/v1/commands/?cmd=clearQueue"
# Wait for bell to finish playing
sleep 15
# Now we return to programming
# Set the volume to the desired level
curl "192.168.0.15/api/v1/commands/?cmd=volume&volume=60"
# Load the desired media and begin playing
curl "192.168.0.15:3000/api/v1/commands/?cmd=playplaylist&name=Wakeup"
# Re-enable the repeat function
curl "192.168.0.15/api/v1/commands/?cmd=repeat&value=true"