Author Topic: How can I send a "NEXT SONG" command to the Xschedule server using Python?  (Read 507 times)

Offline szaske

  • Newbie
  • *
  • Posts: 38
    • View Profile
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?

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: How can I send a "NEXT SONG" command to the Xschedule server using Python?
« Reply #1 on: December 21, 2020, 07:24:16 PM »
https://github.com/smeighan/xLights/blob/master/xSchedule/API%20Documentation.txt

Offline szaske

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: How can I send a "NEXT SONG" command to the Xschedule server using Python?
« Reply #2 on: December 22, 2020, 12:52:00 AM »
Thanks Keith. So is the call?

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


Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Something like that.