Pi Musicbox Computer Not Reading Other Partition
After my project to control my Christmas Tree lights with my Raspberry Pi, what would exist my adjacent project? I eventually landed on tinkering with Pi Musicbox, a spin of Raspbian with Mopidy that allows users to play all sorts of streaming services—like Spotify, TuneIn, SoundCloud—and local sound files on a 'headless' Raspberry Pi.
In this guide, I'll prove a chip of the work I had to do to get Pi MusicBox working to my satisfaction equally well every bit some of the issues I'1000 still dealing with.
The hardware
- Raspberry Pi B+
- Mini SD bill of fare and SD adapter
- Ethernet cablevision
- AmazonBasics USB-powered calculator speakers
Annotation: I ran into buffering issues when using my Cana Kit Wi-Fi USB dongle, and so I plugged directly into ane of my router'south ethernet ports instead.
Reference materials
- Pi MusicBox'due south official setup instructions
- More detailed instructions
Installation
The first thing I had to do was 'dd' the MusicBox image onto my mini SD bill of fare from my Fedora 21 laptop:
sudo dd bs=1M if=musicbox0.5.two.img of=/dev/mmcblk0
Once I was washed copying the image, I mounted the mini SD card using an
SD card adapter on my fedora laptop to modify the config/settings.ini file in the MUSICBOX partition. In that file, you can set the root password for your server, enable SSH, prepare Wi-Fi, and configure your Spotify account*, amidst other things. After saving my changes to settings.ini, I unmounted my carte and plugged it into the Pi. Once it booted it upwards, I just accessed http://192.168.ane.30/ (the IP my router gave my Pi) from my laptop.
*Yous need a Spotify Premium account to via Pi MusicBox.
Configuration
If yous want to get fancy with your setup, this is probably be the part of the project that will have up most of your fourth dimension. In my instance, I wanted to brand the songs I had on my Mac playable from the Pi. I shared a music folder on my Mac and mounted the share onto the Pi. MusicBox has a set of options in settings.ini that allow you to enter Samba share information for the organisation to scan, but I couldn't get that to work with a share coming from a Mac. Instead, I went and edited the /etc/fstab on my Pi and added:
//192.168.1.79/music /mnt/music cifs
username=myusername,password=mypassword,nounix,sec=ntlmssp,noperm,rw 0 0
My estimate is that MusicBox tries to mount a samba/cifs share without using the sec=ntlmssp option, which is required to mount a share from a Mac Os X host in Linux (Once more, this is just a guess).
Note: I am mounting the in a higher place on /mnt/music. I had to alter the /etc/mopidy/mopidy.conf file. I had to ready media_dir to /mnt/music
If y'all don't have a Spotify Premium subscription (I didn't), MusicBox will only spin on the web interface and nix will happen. I concluded upward finding the log for the application and noticed when Mopidy started it said non-premium accounts couldn't access the content I was trying to access.
The log location for Mopidy on Musicbox is: /var/log/mopidy/mopidy.log
Remember to enable SSH and fix a root password on the settings.ini (equally previously mentioned) so you tin admission the log file.
Local radio
Another one of my favorite MusicBox features is its ability to interact with TuneIn, which allows yous to listen to local radio stations.
Problems
As much fun every bit I had setting this up, at that place were a few issues I struggled with. Some of them may be of my own doing, and others may be related to Mopidy itself, but at this betoken I simply run into them as issues. So, this is meant to be for information'due south sake and not criticism of the project at all:
- Samba configuration on
settings.inidoesn't seem to work with Os X shares. - Streaming from a Samba share via Wi-Fi (using the Cana Kit Wi-Fi dongle, at least) doesn't quite work. Also much buffering.
- Local file refreshes don't seem to work unless the organisation is rebooted.
I tried running mopidy local scan to force a file browse, but it aways fails with the error: UnicodeDecodeError: 'ascii' codec tin't decode byte 0xc3 in position 4560: ordinal not in range(128)
- I had the same error as above on
mopidy.logwhen I was trying to scan for thousands of files on my Samba share. I reduced the files to well-nigh 480 and fabricated sure only files with "ascii" characters were available, and so my local files showed up on the spider web interface. - Manually restarting (or stopping and and then starting) Mopidy doesn't seem to trigger a local file scan either.
In summary
It was another bully afternoon Rasperry Pi project. I at present accept a music/radio streaming service that tin can be remotely accessed via a spider web interface. It doesn't require a monitor, Idiot box, keyboard, or mouse. All I demand is a network connection and some speakers.
Open
Hardware
Connection
This article is part of the Open Hardware Connection column coordinated by Rikki Endsley. Share your stories about the growing open hardware customs and the fantastic projects coming from makers and tinkers around the earth by contacting us at open@opensource.com.
dalrympleyoungold.blogspot.com
Source: https://opensource.com/life/15/3/pi-musicbox-guide
0 Response to "Pi Musicbox Computer Not Reading Other Partition"
Post a Comment