maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Fm transmitter + play music at specified time? (https://talk.maemo.org/showthread.php?t=48227)

ToJa92 2010-03-24 20:52

Re: Fm transmitter + play music at specified time?
 
Quote:

Originally Posted by festivalnut (Post 580950)
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.

festivalnut 2010-03-24 21:58

Re: Fm transmitter + play music at specified time?
 
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!

ToJa92 2010-03-24 22:08

Re: Fm transmitter + play music at specified time?
 
Well capitalization is important. If the extension is .MP3 then you can't write .mp3.

rash.m2k 2010-03-24 22:16

Re: Fm transmitter + play music at specified time?
 
theres a reason I like Linux/maemo so much!

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!

Tablet series rocks!

festivalnut 2010-03-25 00:35

Re: Fm transmitter + play music at specified time?
 
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?

teh 2010-03-25 13:32

Re: Fm transmitter + play music at specified time?
 
I'm quite tempted by all this cron jobbing xterminal typing to start writing some automated processes on my device now!

For example I might do a timed connection to the internet to do updates (Windows Update Style!) and reboots, that kinda thing.

Nice one for bringing this up, might come in handy one day.

MohammadAG 2010-03-25 19:57

Re: Fm transmitter + play music at specified time?
 
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)

ToJa92 2010-03-26 14:31

Re: Fm transmitter + play music at specified time?
 
Quote:

Originally Posted by MohammadAG (Post 582367)
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 :p

EDIT: Can you install the package "debianutils" to get cron?

EDIT#2: Just read this if you need cron: http://wiki.maemo.org/Fcron

twaelti 2010-04-02 20:26

Re: Fm transmitter + play music at specified time?
 
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").


All times are GMT. The time now is 14:37.

vBulletin® Version 3.8.8