I┬┤am loking for some example files for the webserver.
I want to do a remotecontrol page, i can control winamp but not get the track name in the webserver page?
Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Webserver example
Re: Webserver example
Code: Select all
<HTML><HEAD><TITLE>Eventghost Dynamic Webserver</TITLE>
</head>
<BODY bgcolor="#EEEEEE">
<a href="?shuffel"><img border="0" src="shuffel.gif"></a>
<a href="?herhalen"><img border="0" src="repeat.gif"></a>
<a href="?stop"><img border="0" src="stop.gif"></a>
<a href="?voorige"><img border="0" src="previous.gif"></a>
<a href="?pause"><img border="0" src="pause.gif"></a>
<a href="?next"><img border="0" src="next.gif"></a>
<a href="?mute"><img border="0" src="mute.gif"></a>
<a href="?volumedown" ><img border="0" src="min.gif"></a>
<a href="?volumeup" ><img border="0" src="plus.gif"></a>
</BODY>
</HTML>
-
hanspettersson
- Posts: 42
- Joined: Sat Feb 20, 2010 2:42 pm
Re: Webserver example
Thank you, but my problem is how i get the trackname, track time to the webbserver in real time?Diabl0570 wrote:Code: Select all
<HTML><HEAD><TITLE>Eventghost Dynamic Webserver</TITLE> </head> <BODY bgcolor="#EEEEEE"> <a href="?shuffel"><img border="0" src="shuffel.gif"></a> <a href="?herhalen"><img border="0" src="repeat.gif"></a> <a href="?stop"><img border="0" src="stop.gif"></a> <a href="?voorige"><img border="0" src="previous.gif"></a> <a href="?pause"><img border="0" src="pause.gif"></a> <a href="?next"><img border="0" src="next.gif"></a> <a href="?mute"><img border="0" src="mute.gif"></a> <a href="?volumedown" ><img border="0" src="min.gif"></a> <a href="?volumeup" ><img border="0" src="plus.gif"></a> </BODY> </HTML>
Re: Webserver example
i had this problem too,
i fixed it by using the dynamic webserver:
http://www.eventghost.org/forum/viewtop ... it=dynamic
i use this marco's in eventghost:
this method is far from perfect becouse i don't know how to send a event from media monkey to eventghost when media monkey plays another song. so this works only if you first press refresh on you website

good luck!
edit:
maybe the winamp webinterface is a easyer way to fix this (this works also for Mediamonkey!):
i fixed it by using the dynamic webserver:
http://www.eventghost.org/forum/viewtop ... it=dynamic
Code: Select all
<HTML><HEAD>
<TITLE>Eventghost Dynamic Webserver Test</TITLE>
<meta http-equiv="refresh" content="10;url=song info.html">
</head>
<BODY bgcolor="#EEEEEE">
<table>
<tr><td>Previous : <i>{{eg.globals.Previous}}</i></td></tr>
<tr><td>Now Playing:</i> <b><i>{{eg.globals.NowPlaying}}</b></i></td></tr>
<tr><td>Next Track: <b><i>{{eg.globals.NextTrack}}</b></i></td></tr>
<tr><td>Waardering (van 0 tot 100): <b><i>{{eg.globals.Rating}} <a href="?Rating+">Goed</a> / <a href="?Rating- ">Slecht</a></b></i><br></td></tr>
<tr><td><a href="?F5">Resresh (F5)</a><br></td></tr>
</table>
</BODY>
</HTML>Code: Select all
<Macro Name="Get Basic Song Info">
<Event Name="HTTP.refresh" />
<Event Name="HTTP.next" />
<Action>
MediaMonkey.GetBasicSongInfo([False, False, True, True, False, False, False, False, False, False, False, False, False, False, False, False, False], u' - ')
</Action>
<Action>
EventGhost.PythonCommand(u'eg.globals.NowPlaying=eg.result')
</Action>
</Macro>
<Macro Name="Get Basic Song Info Of Previous Track">
<Event Name="HTTP.refresh" />
<Event Name="HTTP.next" />
<Action>
MediaMonkey.GetBasicSongInfoPreviousTrack([False, False, True, True, False, False, False, False, False, False, False, False, False, False, False, False, False], u' - ')
</Action>
<Action>
EventGhost.PythonCommand(u'eg.globals.Previous=eg.result')
</Action>
</Macro>
<Macro Name="Get Basic Song Info Of Next Track">
<Event Name="HTTP.refresh" />
<Event Name="HTTP.next" />
<Action>
MediaMonkey.GetBasicSongInfoNextTrack([False, False, True, True, False, False, False, False, False, False, False, False, False, False, False, False, False], u' - ')
</Action>
<Action>
EventGhost.PythonCommand(u'eg.globals.NextTrack=eg.result')
</Action>
</Macro>
good luck!
edit:
maybe the winamp webinterface is a easyer way to fix this (this works also for Mediamonkey!):
Code: Select all
http://www.mediamonkey.com/forum/viewtopic.php?f=2&t=14090