Edit file /config/rm-apps, change this line
rb,/kojak/kojak-slinger, -c -e -s -i 127.1
to look like this
rb,/kojak/kojak-slinger, -c -e -s
This adds some Unix commands like mv, grep, and especially fs-cifs which lets us mount windows file shares. Added these lines to the bottom of /kojak/boot.sh to mount the mp3 directory on our windows server:
sleep 10 # wait for networking to come up
/nto/bin/fs-cifs -a //mywindowsservername:192.168.1.2:/mp3 /mp3 user password
This lets us telnet into the Audrey so we don't have to sit typing at it. Made installing all these hacks easy to do from the comfort of a real keyboard.
Now WAVs can be remotely pushed to the Audrey by loading this URL: http://audrey.ip.address/playsound.shtml?http://windows.server/wavs/abc.wav
<html><head><title>WAV Push</title></head></body>
<!--#exec cmd="playsound_noph $QUERY_STRING &" -->
</body></html>
So now we can play music off our server.
This is necessary to install the gui-less MP3 player (plaympegaudio_noph) to push MP3s to the Audrey since I couldn't find it anywhere except in an install package for Mr. Audrey. Just transfer this file to the Audrey, chmod +x ins-utils.zip and then execute it to install the package manager
<html><head><title>MP3 Push</title></head></body>Similar to the WAV push, the MP3 push can be done by accessing the URL. It can be automated in a script using wget to download the URL.
<!--#exec cmd="plaympegaudio_noph $QUERY_STRING &" -->
</body></html>
I think that's all. I replicated the changes to 3 other Audreys by dumping an image to a CF and installing it on the other 3. Not bad for an evening's work :)
No comments:
Post a Comment