Sean Meighan

Welcome => Do You Need Help? Post it here => Topic started by: szaske on December 21, 2020, 06:48:26 PM

Title: How can I send a "NEXT SONG" command to the Xschedule server using Python?
Post by: szaske on December 21, 2020, 06:48:26 PM
I currently have a Python script controlling my receiver and the volume of my light show via a button. I'd like to add the ability to double click the button to send a command to the Xschedule server telling it to go to the "next song".  Questions:

1. Does the xSchedule http server accept GET/POST request?
2. If so is there documentation somewhere that documents the HTTP/API requests supported?
Title: Re: How can I send a "NEXT SONG" command to the Xschedule server using Python?
Post by: keithsw1111 on December 21, 2020, 07:24:16 PM
https://github.com/smeighan/xLights/blob/master/xSchedule/API%20Documentation.txt
Title: Re: How can I send a "NEXT SONG" command to the Xschedule server using Python?
Post by: szaske on December 22, 2020, 12:52:00 AM
Thanks Keith. So is the call?

http://<host:port>/xScheduleCommand?Command=Next%20step%20in%20current%20playlist

Title: Re: How can I send a &quot;NEXT SONG&quot; command to the Xschedule server using Python?
Post by: keithsw1111 on December 23, 2020, 01:22:38 PM
Something like that.