Using iTunes Library with LMS and pCP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Man in a van
    Senior Member
    • Jan 2011
    • 6902

    Using iTunes Library with LMS and pCP

    > That path would need to be something like ....
    >
    > smb://192.168.x.y/sharename/music/iTunes.xml


    No, that's still a URI. You'd really need a path which is mounted in the
    file system: /mnt/music/iTunes.xml or whatever.

  • Man in a van
    Senior Member
    • Jan 2011
    • 6902

    #2
    Using iTunes Library with LMS and pCP

    I'm helping someone start with LMS and piCoreplayer

    He would like to use his iTunes library on his iMac.

    I don't know yet, which OS he is using on the Mac but I can practise on mine.

    So El Capitan with iTunes

    I exported the Library to Documents so the path is

    /Users/ronnie/Documents/Library.xml

    I also have a xml file here

    /Volumes/APPLE HDD HTS541010A9E662 Media/Users/ronnie/Music/iTunes/iTunes Music Library.xml
    If I go to iTunes Plugin Settings and enter either string, prefaced by the IP Address of the Imac, I get a return message, viz;

    Invalid value "http://192.168.1.109 /Volumes/APPLE HDD HTS541010A9E662 Media/Users/ronnie/Music/iTunes/iTunes Music Library.xml" for xml_file

    and

    Invalid value "http://192.18.1.109 /Users/ronnie/Documents/Library.xml" for xml_file
    What am I doing wrong ?

    ronnie

    Comment

    • Paul Webster
      Senior Member
      • Apr 2005
      • 10345

      #3
      The plugin probably wants a file not a url.
      You would probably have to mount the MAC file system from the RPi.
      Or ... write a script to push the xml file to the RPi every few hours/days.
      Paul Webster
      Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
      and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

      Comment

      • Man in a van
        Senior Member
        • Jan 2011
        • 6902

        #4
        Originally posted by Paul Webster
        The plugin probably wants a file not a url.
        You would probably have to mount the MAC file system from the RPi.
        Or ... write a script to push the xml file to the RPi every few hours/days.

        Hi Paul, thanks for showing pity

        "I'm a simple soul Doctor, more dog ?"

        Click image for larger version

Name:	itunes.png
Views:	1
Size:	51.0 KB
ID:	1571815

        Not exactly easy music for the masses is it

        ronnie

        Comment

        • Paul Webster
          Senior Member
          • Apr 2005
          • 10345

          #5
          That path would need to be something like ....

          smb://192.168.x.y/sharename/music/iTunes.xml

          For a MAC I assume that it would be nfs rather than smb

          but you would have to set up the share on the MAC first to make it available.

          Probably would need id/password/guid/uid of some sort if anonymous sharing not available.

          Unless someone else has a definitive answer, I suggest searching more general MAC sites for how to access files on a MAC from Linux and then once that is working ... LMS should work as well.
          Paul Webster
          Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
          and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

          Comment

          • rkrug
            Senior Member
            • Dec 2013
            • 117

            #6
            Definitely Samba share.

            Setting it up on a Mac is easy- in settings, select share and add the folder you want to share and the permissions. Anonymous is also possible.

            I am not sitting in front of my Mac, so I can’t send screenshots. Let me know and I be will look at it.


            Sent from my iPhone using Tapatalk

            Comment

            • Man in a van
              Senior Member
              • Jan 2011
              • 6902

              #7
              Originally posted by rkrug
              Definitely Samba share.

              Setting it up on a Mac is easy- in settings, select share and add the folder you want to share and the permissions. Anonymous is also possible.

              I am not sitting in front of my Mac, so I can’t send screenshots. Let me know and I be will look at it.


              Sent from my iPhone using Tapatalk
              Any info is appreciated, thanks

              ronnie

              Comment

              • Man in a van
                Senior Member
                • Jan 2011
                • 6902

                #8
                Well I have made some progress

                I have plugged a usb stick into the pcp, and installed samba (it only took about ten attempts to successfully complete the installation)

                Connected to the pcp from my iMac and transferred an album to the usb stick

                Scanned the stick and played back the album

                Now what I would like to do, is reverse the process, as it seems it once was possible.

                I want to use the iTunes plugin to access the iTunes on the iMac, or have pcp mount a folder on the iMac as it would do on a NAS, essentially the same task

                Any help out there ?

                I can connect to my iMac from my Windows 10 Pro Desktop, why not from LMS ?

                As originally conceived surely the process was designed to be relatively user friendly, not requiring a book full of learning ........I might be wrong about that

                ronnie

                Comment

                • Paul Webster
                  Senior Member
                  • Apr 2005
                  • 10345

                  #9
                  Originally posted by Man in a van
                  I can connect to my iMac from my Windows 10 Pro Desktop, why not from LMS ?
                  What is the full path to the XML file when viewed from the Windows PC?
                  Paul Webster
                  Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                  and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                  Comment

                  • Man in a van
                    Senior Member
                    • Jan 2011
                    • 6902

                    #10
                    Originally posted by Paul Webster
                    What is the full path to the XML file when viewed from the Windows PC?
                    This:

                    \\RONALDS-IMAC\APPLE HDD HTS541010A9E662 Media\Users\ronnie\Music\iTunes\iTunes Music Library.xml

                    Comment

                    • Paul Webster
                      Senior Member
                      • Apr 2005
                      • 10345

                      #11
                      OK - so
                      \\RONALDS-IMAC\APPLE HDD HTS541010A9E662 Media\Users\ronnie\Music\iTunes\iTunes Music Library.xml
                      implies
                      hostname
                      RONALDS-IMAC
                      sharename
                      APPLE HDD HTS541010A9E662 Media
                      path to file
                      \Users\ronnie\Music\iTunes\iTunes Music Library.xml

                      In pCP - LMS/Setup Network Disk Mount
                      Mount Point /mnt/
                      ronsmac

                      IP Address
                      RONALDS-IMAC

                      Share Name
                      APPLE HDD HTS541010A9E662 Media

                      Share Type
                      CIFS

                      If you are lucky that is all you will need to mount the MAC from pCP.
                      So - try it and see if it works
                      If it does then you should see it mount when pCP boots and ssh to pCP should show files under
                      /mnt/ronsmac

                      If you had to type in username/password on the Windows PC then put the same into pCP
                      Paul Webster
                      Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
                      and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin

                      Comment

                      • Man in a van
                        Senior Member
                        • Jan 2011
                        • 6902

                        #12
                        Well, I'm lucky; and you, SIR, win the coconut

                        Click image for larger version

Name:	iMac1.png
Views:	1
Size:	45.8 KB
ID:	1571827

                        Click image for larger version

Name:	iMac2.png
Views:	1
Size:	65.0 KB
ID:	1571828

                        Click image for larger version

Name:	iMac3.png
Views:	1
Size:	49.4 KB
ID:	1571829

                        That should keep the bugger in That There London happy, and I have learnt a litle bit more

                        ronnie

                        Although I'm really grateful, it's still a pity that this route is necessary though

                        Comment

                        • Man in a van
                          Senior Member
                          • Jan 2011
                          • 6902

                          #13
                          This "bear of little brain" is slowly getting his head around this smb, iTunes and piCorePlayer

                          Click image for larger version

Name:	facepalm.png
Views:	20
Size:	114.3 KB
ID:	1571871

                          on picoreplayer

                          mount point for xml file

                          /mnt/ronsmac/Users/ronnie/Music/iTunes/iTunes Music Library.xml

                          for iTunes media folder

                          /mnt/ronsmac/Users/ronnie/Music/iTunes/iTunes Media
                          I now need to make a new image and confirm that all is well.

                          I'll take notes

                          ronnie

                          Comment

                          Working...