Hi
I'm running a mpd deamon on my server. To control this music player I use a web client.
So far I can control this music player with CommandFusion. To do this I use the HTML link to start, stop, etc the music.
example
When i send this link with JavaScript the music starts.(so far so good)
Now I have a switch that sends a command trough my KNX bus.
example
When this address is send on the bus I want to trigger a HTML GET request from EibPC. This request has to do the same as above.
So far I have this configured
This doesn't work. Does somebody know what the problem might be ?
I'm running a mpd deamon on my server. To control this music player I use a web client.
So far I can control this music player with CommandFusion. To do this I use the HTML link to start, stop, etc the music.
example
Code:
http://x.x.x.x/phpmpreloaded/web_clients/phpmp/index.php?command=play
Now I have a switch that sends a command trough my KNX bus.
example
Code:
"Music_NextPlaylist-3/2/1"
So far I have this configured
Code:
mpdPort = 80u16 mpdIP = 192.168.1.41 mpdDelay = 200u64 mpdNextTrack = 0b01 if event("Music_NextPlaylist-3/2/1") then mpdNextTrack = 0b01 endif if mpdNextTrack then connecttcp(mpdPort, mpdIP) endif if after(mpdNextTrack, mpdDelay) then sendtcp(mpdPort, mpdIP, $/phpmpreloaded/web_clients/phpmp/index.php?command=play$) endif closetcp(mpdPort, mpdIP)
Kommentar