Announcement

Collapse
No announcement yet.

AUDIOPHONICS RASPDAC MINI Kit

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • #16
    Originally posted by gregex
    I got the Audiophonics python OLED script working with on pCP 6.1 with python3.6
    (A quick and dirty port of an old Audiophonics python script is attached.)

    Increase your filesystem size (500 MB is more than enough)

    Install the following extensions: compiletc.tcz, freetype-dev.tcz, python3.6-dev.tcz, squashfs-tools.tcz (I may have forgotten one or two)

    Create a file called reqs.pip with the following contents:

    Code:
    pillow --global-option="build_ext" --global-option="--disable-jpeg" --global-option="--disable-zlib" --global-option="--enable-freetype"
    luma.oled
    luma.core
    pyftdi
    smbus2
    spidev
    RPI.GPIO
    pyusb
    pyserial
    pylms
    Then run the following commands

    Code:
    sudo python3 -m pip install --upgrade pip setuptools
    pip install -r reqs.pip --prefix=/tmp/raspdacmini-deps/usr/local --ignore-installed
    sed -i 's/\t/        /' /tmp/raspdacmini-deps/usr/local/lib/python3.6/site-packages/pylms/player.py
    mksquashfs /tmp/raspdacmini-deps /tmp/raspdacmini-py36-deps.tcz
    sudo cp -p /tmp/raspdacmini-py36-deps.tcz /etc/sysconfig/tcedir/optional
    echo raspdacmini-py36-deps.tcz | sudo tee -a /etc/sysconfig/tcedir/onboot.lst
    Tried installing a couple of times today but no luck, seems to install ok but no display.

    On reboot the reqs.pip file is empty, is this normal?

    Is the lms_oled_1.54_spi_audiophonics_py3.py file just for info or do I need to run it some how?

    Thanks

    Comment


    • #17
      Originally posted by kit1cat
      Tried installing a couple of times today but no luck, seems to install ok but no display.

      On reboot the reqs.pip file is empty, is this normal?

      Is the lms_oled_1.54_spi_audiophonics_py3.py file just for info or do I need to run it some how?

      Thanks
      reqs.pip won't survive a reboot unless you do a backup, but you only need that file if you are building the python dependencies.

      Sorry, I should have been clear -- run this to start the display:

      Code:
      python3 lms_oled_1.54_spi_audiophonics_py3.py
      If it works and you like it, add that line to "User Commands" on the Tweaks page to start it on reboot.
      If you get errors, post here.

      Comment


      • #18
        Originally posted by gregex
        reqs.pip won't survive a reboot unless you do a backup, but you only need that file if you are building the python dependencies.

        Sorry, I should have been clear -- run this to start the display:

        Code:
        python3 lms_oled_1.54_spi_audiophonics_py3.py
        If it works and you like it, add that line to "User Commands" on the Tweaks page to start it on reboot.
        If you get errors, post here.
        Thanks, sorry to be a pain, but is there a way to copy the python3 lms_oled_1.54_spi_audiophonics_py3.py file from windows to the sd card? I normally use Linux file system for windows by Paragon Software but I don't think that will work with picoreplayer.

        Comment


        • #19
          WinSCP (works alongside Putty) is a good way to move files between pCP and Windows.
          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


          • #20
            Microsoft got their act together and full embraced the Linux world with WSL 2

            Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.


            No more dual booting, or Docker
            You can spin up a linux environment in seconds along with all the tools and productivity enhancements you'd ever need

            The Windows Subsystem for Linux 2 (WSL 2) is here. It's now easy to get started with Linux and integrate Ubuntu 20.04 LTS quickly from within Windows 10. WSL...


            Under windows 10 has full linux integration inclusive of ssh and scp so use of WinSCP, Filezilla or putty is pretty much moot

            I only use a Windows machine at home for my Photoshop setup but now I have no excuse not to spin up a Linux instance on the same machine and get the best of both worlds.
            As of 25-Sep-2021 my digitized collection is (25931 hours 59 minutes) + (23 seconds) or
            2.958 years in duration
            random continuous play would really annoy the neighbors...

            Digitized thus far:

            Total Tracks: 169,609
            Total Albums: 15,626
            Total Artists: 22,284
            Total Genres: 780
            Total Playing Time: 25931:59:23


            With another ~6000 yet to be cataloged and ripped... a moving target such that it is ...

            Comment


            • #21
              Originally posted by gregex
              Sorry, I should have been clear -- run this to start the display:

              Code:
              python3 lms_oled_1.54_spi_audiophonics_py3.py
              From reading earlier in the thread, I thought you already had the OLED directory from the dietpi image, which contains the required fonts.
              I am having trouble attaching it in a zipfile here (no useful error message), but it is the same fonts subdirectory as in the 7z file in this post


              You'll also need to edit lms_oled_1.54_spi_audiophonics_py3.py line 75 and 79 to contain your server IP and player MAC address. (As mentioned here https://forums.slimdevices.com/showt...284#post976284)
              Last edited by gregex; 2020-06-28, 23:30.

              Comment


              • #22
                Thanks for further info guys, I will take a look.

                Sorry gregex, I did not realise I needed other files to get your solution up and running. I thought running your script would be enough, like the script I ran for moOde. Unfortunately I am not a Linux user, I can cut/paste commands and edit a simple file but that's about it. I still have the dietpi image but there was no info on how get up and running with picoreplayer. Any way, thanks again for your help. I will give it another go later.

                Comment


                • #23
                  @Paul-Webster - WinSCP looks like just what I needed.

                  @shunte88 - WSL 2 looks a great way of learning a bit of Linux.

                  Thanks guys

                  Comment


                  • #24
                    I have found WinSCP very useful for looking at the files on the SD card , but when I try to copy or edit a file I keep getting error 3 Permission denied, works without a problem on my dietpi image. Any way around this error?

                    When I booted my dietpi image, I found the display was working ok, which I find a bit strange. It was not working last time I tried it?

                    Comment


                    • #25
                      Select SCP
                      Host name
                      Port Number
                      User Name
                      Password
                      Click on Advanced
                      Click on SCP/Shell
                      From the Default dropdown select sudo/su
                      OK

                      if you are going to open this a lot you can save the link

                      piCoreplayer doesn't need this procedure (I think, from memory)


                      ronnie

                      Comment


                      • #26
                        Originally posted by Man in a van
                        Select SCP
                        Host name
                        Port Number
                        User Name
                        Password
                        Click on Advanced
                        Click on SCP/Shell
                        From the Default dropdown select sudo/su
                        OK

                        if you are going to open this a lot you can save the link

                        piCoreplayer doesn't need this procedure (I think, from memory)


                        ronnie
                        Thanks ronnie, but not working for me, I wonder if I am using a different version?

                        I only have shell and no sudo/su option only sudo su - ?

                        Comment


                        • #27
                          Click image for larger version

Name:	scp.png
Views:	1
Size:	137.9 KB
ID:	1569270

                          Comment


                          • #28
                            I use "sudo -s" in winSCP if I require root access.

                            Comment


                            • #29
                              Not sure why root access should be required to scp files to piCorePlayer. User should be tc and files should be written by default to /home/tc. Using "pi" or "dietpi" will give Permission Denied (I do this accidentally all the time when switching between boot images)

                              Comment


                              • #30
                                Partial Success Copied the font folder and the oled_1.54_spi_audiophonics_py3.py file to /home/tc, ran the command python3 lms_oled_1.54_spi_audiophonics_py3.py from puttty and I have a display reading "Trying to connect player to LMS". My LMS server is on another PI connected to a usb drive.

                                Comment

                                Working...
                                X
                                😀
                                🥰
                                🤢
                                😎
                                😡
                                👍
                                👎