okay i seem to be halfway there, compiled script, chmod'd it (whatever the hell that is!) ran it, fm transmitter comes on but i get an error message along the lines of Home directory /home/user not ours. i noticed your code has the sound file under usr/share... do i have to copy my sounds to that location rather than MyDocs? and if so is that a good idea? or if not wtf have i done wrong?
Point to a sound file in /home/user, that should do the trick. Assuming you have them there.
yeah still getting the "home directory home/user not ours" error. anyway timer sorted. script for turning on transmitter sorted. gonna get a bit more practice with xterm cos from what i can see i'm pointing it in the right direction, prob a little thing like a capital letter or space out of place. i'll be back crying for help tomorrow if i spend all night failing! thanks again guys!
in less than a day we have helped this guy acheive what would probably take months if it was using another OS - becuase he'd have to wait for an app to be made and approved!
actually could the script be amended to kick in the media player and autoplay a playlist or artist, instead of just playing one file? i'm gonna keep hammering away n hopefully get a hang of this, while i'm here any links to a quick learn xterm guide?
Playlists should be possible, but you need mplayer (MAFW is still something I don't know much about).
Use this instead of the play-sound line.
mplayer -playlist <playlistfile>
BUT, play-sound overrides volumes, mplayer doesn't, meaning you'd have to set the volume to 100 before going to bed (unless there's a command for changing volume, but I'm not sure about that)
Playlists should be possible, but you need mplayer (MAFW is still something I don't know much about).
Use this instead of the play-sound line.
mplayer -playlist <playlistfile>
BUT, play-sound overrides volumes, mplayer doesn't, meaning you'd have to set the volume to 100 before going to bed (unless there's a command for changing volume, but I'm not sure about that)
Great! Now all that is missing is cron, then I'm set
EDIT: Can you install the package "debianutils" to get cron?
For anybody interested: there is now a "mafw-play-list" command in extras-devel (I've compiled a special version of the mafw-renderer-example.c). You can use that to launch a playlist playing from the command line ("mafw-play-list nameOfMyList").