DavisNT / mopidy-alarmclock

A Mopidy extension for using it as an alarm clock.
https://pypi.org/project/Mopidy-AlarmClock/
Apache License 2.0
40 stars 14 forks source link

Repeat alarm #14

Closed fmarzocca closed 5 years ago

fmarzocca commented 5 years ago

How can I set the alarm to repeat every morning? Or, alternatively, how can automatically set an alarmclock from an http call ?

DavisNT commented 5 years ago

rgov's fork supports multiple alarms (however it might lack some testing and stability features): https://github.com/rgov/mopidy-alarmclock

There is no dedicated REST API endpoint however the alarm can be set by sending HTTP POST request to /alarmclock/set/ with Content-Type: application/x-www-form-urlencoded and urlencoded post data that has the folowing fields:

The postdata can also be seen by browser Developer Tools (F12, Network tab, check "Persist Logs"/"Preserve log") while setting the alarm clock from web interface.

fmarzocca commented 5 years ago

Thank you