[How To] CD playback - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How To] CD playback (/showthread.php?tid=2091) |
RE: [How To] CD playback - TheOldPresbyope - 03-06-2020 Purists will no doubt object that I'm really talking here about the label of the filesystem in a partition and not a label of the partition itself. Sorry about that.
Also, they'll no doubt point out that the lsblk command combines what I did in two steps, e.g.,
Code: pi@moode3a:~ $ lsblk -f Sorry about that, too. My excuse is I'm old and lsblk wasn't invented until long after I cut my eye teeth on Unix.
Regards,
Kent
RE: [How To] CD playback - DRONE7 - 03-06-2020 Quote:My excuse is I'm old and lsblk wasn't invented until long after I cut my eye teeth on Unix. We are never too old to enjoy a happy childhood.... My #1 Wifelet tells me mine is just beginning... RE: [How To] CD playback - CallMeMike - 03-06-2020 (03-06-2020, 05:47 AM)DRONE7 Wrote:Quote:My excuse is I'm old and lsblk wasn't invented until long after I cut my eye teeth on Unix. ...being there, done that, wearing the T-shirt (if I remember unaided where I've left it last night)... ... on to greater things now, hold on... where's my list? RE: [How To] CD playback - DRONE7 - 03-06-2020 Quote:(if I remember unaided where I've left it last night)Bathroom floor prolly and tomorrow you'll be in the dogbox for that.... Quote:... on to greater things now, hold on... where's my list? Brahms and Liszt...sort of list ? I can never remember where I put those either... RE: [How To] CD playback - Onionhead - 03-07-2020 (03-06-2020, 02:05 AM)TheOldPresbyope Wrote: @Onionhead RE: [How To] CD playback - TheOldPresbyope - 03-07-2020 @Onionhead Sorry, I've been using the command line for so many years I forget others may not be at the same level of literacy. First, all the commands I used in my follow-up posts were intended just to illustrate how the filesystems in the two partitions on the uSD card end up as a merged filesystem when moOde is running. That was only because in your first post you said Quote: Have the sd card with moOde 6.4.2 in my mac. Zip file is on the mac. Using terminal I have navigated to the sd card "boot" and then typed in cd /home/pi which gives error No such file or directory. I was trying, clumsily as it turns out, to show why, in this Mac-editing mode, you would have to navigate to the sd card "rootfs". (I should have gone a step further and pointed out that you would then type in "cd home/pi" --- e.g., without the leading "/", because the card's filesystem has been mounted at "rootfs" in your Mac's filesystem.) But now you're trying commands on the RPi so let's start over. When you ssh into moOde, you are presented with the command-line prompt Code: pi@moode:~ $ This says you are logged in as user "pi" on a host named "moode" and in your home directory "~", is the command-line interpreter's shorthand for "/home/pi". The "$" character is the actual prompt. [1] You type in your commands after it. If you were at some other level in the directory system, you'd see something like Code: pi@moodecd:/var/www/command $ which is what you saw in one of my examples: I was logged in as user "pi" on host "moodecd" and in the "/var/www/command" directory. The directory that I was in was irrelevant to the problem I was discussing; I should have taken care to return to my home directory before executing the command I was showing. The point is that only what comes after the "$" is something you'd want to enter. So let's go back to square one. You've booted your moOde player. You've ssh'ed into it. You're sitting at the command line prompt I showed in the first code block above. Now you should be able to enter the commands just as I gave them in the README in my github repo. Regards, Kent [1] I shall resist the urge to talk about differences in command line interpreters. We're running bash by default in moOde/Raspbian. RE: [How To] CD playback - TheOldPresbyope - 03-07-2020 I mentioned in Post #17 that "...I need to get back to the promised Version 1 of the CDPlay". Here's a screenshot of what I've come up with so far. Compared to the zeroth version in my moOdeCDPlay github repo currently, this version displays a default cover, which I created by editing Tim's default moOde cover file, and cleans up some of the text information. That reported encoded value "16/44.1" is fake, by the way. My code doesn't ask MPD, it just displays the Redbook values for an audio CD. I haven't decided yet what to do about those "Unknown artist - Unknown album" lines in the playlist. The corresponding "Audio info" popup says Code: Audio Information so I suppose I should "fix" the encoded value here too. I don't show an example here, but this version looks fine in the Play bar at the bottom of the radio/folder/tags/albums views, too. To get this far took only modest modifications in /var/www/inc/playerlib.php but this does mean a somewhat more involved installation process. Regards, Kent RE: [How To] CD playback - fdealexa - 03-08-2020 Thanks for your immense dedication to the project. I think I can speak on behalf of everyone stating that we are all waiting for the new version (v.1) ... but the recommendation is: "please be focused on the definitive (v.2)"; I am agog to see it. Best regards and thanks again, Francesco RE: [How To] CD playback - Tim Curtis - 03-09-2020 Kent, Maybe we should try to integrate this into r650 given the rich set of features already completed and planned? As long as we can detect its a CD we can add some logic to display "16/44.1" and hide the "unknown.../unknown..." line from Playlist. Artist/album/title lookup would be something to look at post r650 -Tim RE: [How To] CD playback - TheOldPresbyope - 03-09-2020 (03-09-2020, 12:17 AM)Tim Curtis Wrote: Kent, Fixed audioinfo.php this afternoon. Now working on blanking the Unknowns. So far, V1.0 appears to consist of simple additions to playerlib.php and audioinfo.php along with the handful of service and bash scripts already in V0.1. The V2.0 wish list looks much harder even with the wonderful abcde bash script [1] as a pathfinder. I'd almost want to implement a simple Internet-connected CD player first to gain some experience with the online metadata/coverart services. I should be done with cleaning up V1.0 (like deleting the snarky comment lines I planted as I was figuring out how php does things!) and testing the result in a fresh moOde install in the next day or so. I'm developing in 6.4.2. I want to try using diff/patch to add the php code to 6.5.0. Regards, Kent [1] 5585 lines of beautifully organized bash code---a model for programmers to study. |