Thank you for your donation!


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


[How To] access the API via HTTP using curl
#3
(04-05-2020, 09:31 PM)Coustard Wrote: Great, thanks. Is there a list of commands available somewhere?

I can confirm, BTW, that it works fine from a Mac.

Currently, the -d "cmd=..." construct works with 
  • the commands available to mpc (execute 'mpc help' from the command line on a moOde player to see them), used as -d "cmd=play", etc.

  • vol.sh commands (execute '/var/www/vol.sh --help' from the command line on a moOde player to see them), used as  -d "cmd=vol.sh up 5", etc. [1]
In the upcoming moOde 6.5.0 Tim is introducing a new library update command libupd-submit.php which can also be used.

Thanks for checking macOS.

Regards,
Kent

[1] A strict reading of the output from /var/www/vol.sh --help indicates the verb up|dn|mute|restore should be preceded by a minus sign. Turns out it accepts the verbs with or without the preceding minus sign.
Reply


Messages In This Thread
RE: [How To] access the API via HTTP using curl - by TheOldPresbyope - 04-06-2020, 01:56 AM

Forum Jump: