11
3rd Party Plugins - (fb2k) / Re: foo_httpcontrol
Last post by regor -The components are not mine, I just provide them because some devs like to nuke their components without any warning If you need them or not depends on your use case, that's stated on the readme.
https://github.com/regorxxx/ajquery-xxx/blob/main/_readme.txt
Once you download the ajquery-xxx zip file, you have there the template folder , that you have to add it to foo_http_control folder per instructions. Then you can load it on any browser.
Quote
I have foobar controller on my phone and old "default" folder (containing" config, faficon, two htmls, jpg and readme) put into foo_httpconrtol_data and everything works fine. I just read that it is possible to make it change output device (this is the only option I miss).Note you can NOT use the phone controller with the ajquery-xxx template, obviously. The app uses its own template. To change devices you will either have to use the web browser and the ajquery-xxx template (which has menus for that) or just send http commands via brower/tasker/etc.
Anyway, the template is just for the browser; if people just want to change devices, as I told you, you can do it via command line.
https://bitbucket.org/oblikoamorale/foo_httpcontrol/wiki/Commands#markdown-header-cmdline
You need foo_run_main to be able to call dynamic main menu entries via command line (i.e. the device entries).
The command would be '/run_main:"Playback/Device/' + device name. For ex.
http://127.0.0.1:8888/ajquery-xxx/?cmd=CmdLine¶m1=/run_main:"Playback/Device/Null Output¶m3=NoResponse
Encoded would be
http://127.0.0.1:8888/ajquery-xxx/?cmd=CmdLine¶m1=%2Frun_main%3A%22Playback%2FDevice%2FNull+Output¶m3=NoResponse
The template part doesn't mind. You can change the ajquery-xxx part to any other template, since you are not using the template itself but just sending a command to the server.
127.0.0.1:8888/foobar2000controller/?cmd=CmdLine¶m1=/run_main:"Playback/Device/Null Output¶m3=NoResponse
127.0.0.1:8888/default/?cmd=CmdLine¶m1=/run_main:"Playback/Device/Null Output¶m3=NoResponse
...
If I would want to change devices using the phone, but also using the controller app... I would just create those URLs and add it to the browser as bookmarks. Bookmarks can be added to the phone desktop, so with a single click you could switch between some predefined devices...
Let me know if you have more doubts.