06-12-2025, 07:32 AM
(06-11-2025, 10:30 AM)Tim Curtis Wrote: The REST API is documented in the Setup Guide (I just added the syntax for HTTP and CURL)
https://github.com/moode-player/docs/blo...1-rest-api
CURL syntax is:
Code:curl -G -S -s --data-urlencode "cmd=REST_API_COMMAND" http://moode/command/
Example for playing a Radio Station on host "trx"
Code:# Command
curl -G -S -s --data-urlencode "cmd=play_item RADIO/Soma FM - Fluid.pls" http://trx/command/
# Returns
{"info":"OK"}
Thank you very much for your help, this has really got me closer to a solution. If anyone else is looking at doing this in the future, be aware that the Targus number pad should be avoided due to it's non-standard HID implementation (it's just a generic controller). I will try with a different one hopefully with better USB HID implementation and report back. Thanks again Tim