Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Solved: HTTP API Commands for USB Numpad Controller - Need Help with Station Loading
#3
(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
Reply


Messages In This Thread
RE: HTTP API Commands for USB Numpad Controller - Need Help with Station Loading - by numpad - 06-12-2025, 07:32 AM

Forum Jump: