Alarm play from the last stop item .

17 views
Skip to first unread message

Vincent_sz_cn feng

unread,
May 13, 2019, 1:21:01 AM5/13/19
to SoCo - Sonos Controller
Hi Buddies 

   I want to play from an existing  alarm queue, at a set time each day for a half hour.  The existing alarm queue  is set on repeat but i want to continue where it stopped on the previous day instead of play from begain on each day ... I saw  .soco.alarms.get_alarms & set_alarms APIs . But how could i can make the alarm start from last stop play item ? Anyone could give some advices ?  THANKS

DPH

unread,
May 14, 2019, 3:28:57 AM5/14/19
to SoCo - Sonos Controller
Hi,
I am pretty sure the alarm can't do that. 
You could use Python to call the alarm and use snapshot to capture when the alarm stops and resume the queue. Examples: https://github.com/SoCo/SoCo/tree/master/examples/snapshot

If you still want to set the alarm in Sonos you could even have a specific track it plays, and listen in python for that track with a subscription and then start your queue with resume from the last snapshot.

Hope this makes sense,
shout if not
Cheers Daivd

Vincent_sz_cn feng

unread,
May 14, 2019, 8:35:47 AM5/14/19
to DPH, SoCo - Sonos Controller
Hi DPH

   Thanks so much on your kindly reply . Let me have a try when i am free. THANKS

DPH <ryd...@gmail.com> 于2019年5月14日周二 下午3:28写道:
--
You received this message because you are subscribed to the Google Groups "SoCo - Sonos Controller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-soco...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-soco/d971c5fb-e493-4f17-a4d6-cdaa6c26b53f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages