Skip to main content

Topic: foo_httpcontrol (Read 710845 times) previous topic - next topic

0 Members and 2 Guests are viewing this topic.
  • marderchen
  • [*]
Re: foo_httpcontrol
Reply #1100
the defauld is a cute one.. but don't like white, so have changed colors..

looks like this

have changed the directory from /default to /MEOW
have changed the files:
http://marderchen.de/wusel/config <-config file
http://marderchen.de/wusel/foo_httpcontrol_controls_tpl.html <-control html repost caused wrong file link =^.^=
http://marderchen.de/wusel/foo_httpcontrol_browser_tpl.html <- browse html
MEOW have fun! =^.^=


  • frogworth
  • [*][*][*]
Re: foo_httpcontrol
Reply #1101
I'm having trouble with PlayingCommand... I think.
I have a "Run Command" which works fine on the command line, but I can't seem to make it work through foo_httpcontrol.
It's fairly esoteric (although essential to my workflow): adding the current playing track to a specific playlist.

The full syntax should be like:
Code: [Select]
http://localhost:8888/default/?cmd=PlayingCommand&param1=Edit%20Other%2FAdd%20to%20Playlist%2FMyPlaylist
(assuming I'm adding the track to a playlist called My Playlist).
The equivalent commandline command does work:
Code: [Select]
foobar2000.exe /runcmd-playing="Edit Other/Add to Playlist/MyPlaylist"

For the http version I've urlencoded the spaces and slashes, so I feel it ought to work. Any suggestions?

  • jadeboy
  • [*]
Re: foo_httpcontrol - Status isPlaying
Reply #1102
How do I determine a sound is playing?


  • zeremy
  • [*][*][*][*]
Re: foo_httpcontrol
Reply #1103
How do I determine a sound is playing?



https://bitbucket.org/oblikoamorale/foo_httpcontrol/wiki/Macros

https://bitbucket.org/oblikoamorale/foo_httpcontrol/wiki/Commands

Command syntax: http://>ip<[:<port>]/installed_template_name/?cmd=Parse&param1=[IS_PLAYING]

It will return 0 or 1 (not_playing/playing).

  • frogworth
  • [*][*][*]
Re: foo_httpcontrol
Reply #1104
Still having trouble with the PlayingCommand above. The Console says simply:
Quote
foo_httpcontrol error: command PlayingCommand failed

As a really simple (amusing) check, running:
Code: [Select]
http://localhost:8888/default/?cmd=PlayingCommand&param1=Copy
actually results in the track being copied to my Windows clipboard! So "PlayingCommand" as such works.

But with that slightly deeper menu command above, it errors out without any suggestion as to why.
I've tried no urlencoding, selected urlencoding, wrapping the command in double quotes... but no dice.

Any suggestions? Bueller?