Does MightyOhm's radio remember the last station?

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
pscrzy
Posts: 7
Joined: Sat Oct 23, 2010 6:53 pm

Re: Does MightyOhm's radio remember the last station?

Post by pscrzy »

root@OpenWrt:~# ls -l ~/.mpd/
-rw-r--r-- 1 root root 91 Jan 1 00:00 mpd.db
-rw------- 1 root root 90 Jan 1 00:13 mpd.error
-rw------- 1 root root 0 Jan 1 00:13 mpd.log
drwxr-xr-x 1 root root 0 Jan 1 00:04 playlists


cat: can't open '/root/.mpd/mpdstate': No such file or directory
User avatar
mightyohm
Site Admin
Posts: 1063
Joined: Fri Apr 03, 2009 10:29 pm
Location: Seattle, WA
Contact:

Re: Does MightyOhm's radio remember the last station?

Post by mightyohm »

I bet mpd never has a chance to create the state file when you shut down. If you enable the pid file in mpd.conf and execute mpd --kill, then start mpd again, I bet it will resume playing (and mpdstate will actually be created).
pscrzy
Posts: 7
Joined: Sat Oct 23, 2010 6:53 pm

Re: Does MightyOhm's radio remember the last station?

Post by pscrzy »

Thanks it worked. It created the file and now it resumes playing when the router boots.
Post Reply