View Full Version : Web Interface for Girder and WinAmp3 using PHP4 and Apache
Palladium
February 20th, 2003, 09:39 PM
Hi. Me Again!
Im looking to create a web interface to COntroll winamp from the Internet/LAN.
I want to Display the Current Song title and maybe a Time Display on a Web Page, as well as be able to Change the song, Playlist, Stop, Pause/resume, and all of those types of things.
I was wondering how I would send commands to girder, as well as how I would get this Info back from Girder. I am Running Apache2 and PHP4.3.1.
Any Tips, Advice, Warnings, Links, or Step by Step walkthroughs would be appreciated. t'anx :)
drobertson
February 21st, 2003, 05:28 AM
I think you want the Internet Event Server Client.
See files here (no PHP). http://www.girder.nl/misc.php
David
Ron
February 21st, 2003, 08:28 AM
Also take a look at the help directory. You'll find a file called Girder.php there.
Palladium
February 21st, 2003, 02:48 PM
I looked into that Girder.Php thing, and There is a slight problem with it Missing a counterpart file (msggirder.php I think or something like it).
Also, I now have Perl, TCL, and Python Support if any of those will help in any way.
t'anx, Palladium
Palladium
February 21st, 2003, 06:32 PM
This Just in. I Am Running Girder and my Web server on the same System. No need to use TCP/IP to Communicate with Girder!
The Apache service and the Girder thing are on the same System. I need to do all my Scripting Server side rather then establishing a TCP/IP Connection with Girder over the Internet. How do I do this?
I now have PHP, Perl, SSI, Python, and TCL available as Server Side Abilities.
JimHugh
February 22nd, 2003, 11:05 AM
Since they are on the same system, one method would be to use event.exe (in Girder program folder) and execute it from one of your CGI scripts.
event <eventstring> [device=18] [payload1] [payload2] [payload3] [-silent]
There is also the gireventlib.dll
http://www.girder.nl/phpBB2/viewtopic.php?t=2911&highlight=gireventlib+dll is a long discussion of methods available
Palladium
February 22nd, 2003, 12:04 PM
Would I be able to get Info back from girder doing that?
Also would I need to move or copy event.exe?
t'anx all for your Help to this point and for your continued help :)
drobertson
February 22nd, 2003, 12:12 PM
event.exe does not return info from Girder.
Why do you want to use event.exe rather than TCP/IP to talk to Girder? If you set up TCP/IP now, then if later on you decide to split your web/Girder across two machine, all you have to do is change an IP address. event.exe only sends to the local machine (correct me if I'm wrong).
If you want to get info from Girder back to your web app you will have to think up something else. (like a web service type thing and use LUA to talk http or whatever to the web service).
David
JimHugh
February 22nd, 2003, 12:16 PM
I don't think it matters where event.exe lives as long as it on the same system. You should be able to put the path to the executable in whatever script you are using to gather the event string and payload info from.
As far as getting info back from Girder, event.exe is not the solution, it is a send only triggering mechanism
AFAIK, you would need to use LUA to persist the info to a file and then read that file from your web scripts. I would like to see an extension of the Internet Event Server that in addition to the existing protocols allowed a Girder Global variable to be queried remotely...
BTW, the Internet Event suggestion made earlier does not require a connection to the Capital "I" Internet. The connection can even be to and from the same computer! (I do it that way while testing sometimes)
I have one master intranet web server that various laptops, computers and PDA's access with web browsers. I was using it to just send Girder "Internet" messages to the HTPC, but recently put Girder on all of the PCs to receive CallerID announcement "broadcasts" using a script inspired by Jeff Seifert.
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.