JOhnson Posted July 1, 2015 Author Report Share Posted July 1, 2015 (edited) ok err0r I have edited this and what I will do is I will stream music all day today (Thursday 2nd July) and into the early hours of Friday .... I dont know if you are five hours behind ect this is the link: http://myradiostream.com/32/8104 and you might need this link and all http://s32.myradiostream.com:8104/ again thank you for your reply and help on this one Edited July 2, 2015 by JOhnson Link to comment Share on other sites More sharing options...
err0r Posted July 3, 2015 Report Share Posted July 3, 2015 menu channel { Radio Test .Set Channel: { set %radiotest.room $$?="Full Channel Name" } .$iif($timer(.radiotest),$style(2)) Turn On: { radiotest | .timer.radiotest 0 10 radiotest | echo -a radiotest msg on } .$iif(!$timer(.radiotest),$style(2)) Turn Off: { unset %radiotest.song | unset %radiotest.lastsong | .timer.radiotest off | echo -a radiotest msg off } } alias radiotest { sockclose radiotest | sockopen radiotest s32.myradiostream.com 8104 } on *:sockopen:radiotest: { sockwrite -n $sockname GET /7.html HTTP/1.0 sockwrite -n $sockname User-Agent: SHOUTcast Song Status (Mozilla Compatible) sockwrite -n $sockname Host: $+(s32.myradiostream.com,:,8104) sockwrite -n $sockname $crlf } on *:sockread:radiotest: { if ($sockerr > 0) return var %radiotest | sockread -fn %radiotest if ($regex(%radiotest,/<body>(.*)<\/body>/)) { set %radiotest.song $gettok($regml(1),7-,44) if (%radiotest.song != %radiotest.lastsong) { msg %radiotest.room Now playing on Radio - %radiotest.song set %radiotest.lastsong %radiotest.song } } } Link to comment Share on other sites More sharing options...
JOhnson Posted July 3, 2015 Author Report Share Posted July 3, 2015 its not working ... I have "Set Channel" as %#The\bMusic\bLodge and that set the room in variables and that reads exactly like this %radiotest.room %#The\bMusic\bLodge ... I have switched it on and all I am getting is radiotest msg on in the bot but nothing else ? the radio has been on all night and is still on now again thanks for you help err0r Link to comment Share on other sites More sharing options...
err0r Posted July 3, 2015 Report Share Posted July 3, 2015 works fine for me. ¥1Room_Protector: Welcome e r r ☺ r Room_Protector sets +v e r r ☺ rradiotest msg on<+e r r ☺ r> Now playing on Radio - Foreigner - I Don't Want To Live Without..radiotest msg off Link to comment Share on other sites More sharing options...
JOhnson Posted July 3, 2015 Author Report Share Posted July 3, 2015 the radio isn't streaming so how comes you got Now playing on Radio - Foreigner - I Don't Want To Live Without.. and there is me telling all my listeners to use my other radio this weekend and by the way how many hours are you behind the UK ... and again thank you for your help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now