Announcement

Collapse
No announcement yet.

USB Remote Control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Do you know for sure that Jivelite is running?
    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


      #17
      Sorry for my delay.....I am close to be dad

      I do not have any screen connected to rpi, I am using the browser.

      I am not sure. What I have done so far is just to install Jivelite from Tweaks. I have done nothing else so far.

      Do you want me to run some test? Until yesterday I was running pCP 7.0, now I have updated to 8.1.

      Comment


        #18
        when you install jivelite it needs you to select some settings first time you use it. until then jivaite won't respond to keyboard or remote commands.

        connect a screen, do the initial setup then try it
        PiCorePlayer 8.2 on Allo Digi One Signature (Lounge)
        PiCorePlayer 8.2 with Hifiberry Digi+ Material running on PI for control (Office)
        PiCorePlayer 8.2 with pi official touchscreen and Hifiberry DAC+(Kitchen)
        Radio (Bedroom)
        PiCorePlayer 8.2 with Allo BOSS DAC (Bedroom)
        PiCorePlayer 8.2 with Hifiberry AMP+. Squeezelite=x for control (Garage)
        PiCorePlayer 8.2 with Hifiberry AMP+(Patio 2)
        PiCorePlayer 8.2 with Hifiberry AMP+(Patio 2)

        LMS 8.3 on unRaid 6.11.5 Server (Seneca HDS)

        Comment


          #19
          I do not have the screen, perhaps I should buy a converter micro HDMI to HDMI and connect to the screen/TV. Can it be a solution?

          If you say that jivelite needs to be configurated using an external screen, this is an expense that I can do.

          Do you have any further suggestions?

          Comment


            #20
            You could look at configuring the USB remote to control Squeezelite instead.
            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


              #21
              Originally posted by Paul Webster View Post
              You could look at configuring the USB remote to control Squeezelite instead.
              I am a bit confused ahahaa, my apologies. What I want to achieve is to control LMS with the USB control.

              How can I configure the USB remote to control Squeezelite, if the keyboard is working neither? Maybe there is something to do first.

              How can I configure my remote with squeezelite, unfortunately the remote control in the examples are a different model than mine.

              Comment


                #22
                It is possible to catch the USB keyboard events and launch a script which then connects to LMS.

                However, it might be easier to make JiveLite think that it has already been configured.

                I have done this before ... but I'll have to find the notes again.
                Basically it requires stopping JiveLite (set in pCP to not automatically start on boot and then boot) then put a specially configured file in the right place ... and then reconfigure pCP to start JiveLite on boot and reboot.
                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


                  #23
                  Originally posted by Paul Webster View Post
                  It is possible to catch the USB keyboard events and launch a script which then connects to LMS.

                  However, it might be easier to make JiveLite think that it has already been configured.

                  I have done this before ... but I'll have to find the notes again.
                  Basically it requires stopping JiveLite (set in pCP to not automatically start on boot and then boot) then put a specially configured file in the right place ... and then reconfigure pCP to start JiveLite on boot and reboot.
                  I am not good with linux but I can follow a procedure, if it is not too complicate. It will be great if you can find the notes. I really would like to add a remote control to pCP.

                  Comment


                    #24
                    Completely untested ...

                    You will need SSH connection to your pCP system (for example - using PuTTY)

                    Set AutoStart to No - pCP web interface/Tweaks/Automatic start of Jivelite when pCP boots
                    Reboot

                    Login via SSH to pCP
                    Verify that Jivelite is not running

                    Code:
                    ps -ef | grep -i jivelite
                    if you see
                    /opt/jivelite/bin/jivelite
                    then it is running - so go back through the steps above.

                    Now that Jivelite is not running (do not use "kill" to stop it because it will be restarted by a script) you can try the next part

                    Note - in the command below it is essential that you copy each one, one at a time, and execute them via your SSH session.
                    Case is important (upper v lower) and the brackets are curly ... use copy/paste

                    Code:
                    echo settings = {setupDone=true,} > SetupWelcome.lua
                    sudo chown root SetupWelcome.lua
                    sudo mv SetupWelcome.lua .jivelite/userpath/settings/
                    
                    echo settings = {locale=\"EN\",} > SetupLanguage.lua
                    sudo chown root SetupLanguage.lua
                    sudo mv SetupLanguage.lua .jivelite/userpath/settings/
                    ls -lrt .jivelite/userpath/settings/

                    copy the output and save it to a text file


                    Then set jivelite to start on boot and reboot
                    Last edited by Paul Webster; 2022-03-17, 10:16. Reason: Edited to include backslash to escape quote
                    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


                      #25
                      Originally posted by Paul Webster View Post
                      Completely untested ...

                      You will need SSH connection to your pCP system (for example - using PuTTY)

                      Set AutoStart to No - pCP web interface/Tweaks/Automatic start of Jivelite when pCP boots
                      Reboot

                      Login via SSH to pCP
                      Verify that Jivelite is not running

                      Code:
                      ps -ef | grep -i jivelite
                      if you see
                      /opt/jivelite/bin/jivelite
                      then it is running - so go back through the steps above.

                      Now that Jivelite is not running (do not use "kill" to stop it because it will be restarted by a script) you can try the next part

                      Note - in the command below it is essential that you copy each one, one at a time, and execute them via your SSH session.
                      Case is important (upper v lower) and the brackets are curly ... use copy/paste

                      Code:
                      echo settings = {setupDone=true,} > SetupWelcome.lua
                      sudo chown root SetupWelcome.lua
                      sudo mv SetupWelcome.lua .jivelite/userpath/settings/
                      
                      echo settings = {locale="EN",} > SetupLanguage.lua
                      sudo chown root SetupLanguage.lua
                      sudo mv SetupLanguage.lua .jivelite/userpath/settings/
                      ls -lrt .jivelite/userpath/settings/

                      copy the output and save it to a text file


                      Then set jivelite to start on boot and reboot
                      Thank you thank you so much for such great help.

                      I have the errors below:

                      1) mv: can't rename 'SetupWelcome.lua': No such file or directory
                      2) mv: can't rename 'SetupLanguage.lua': No such file or directory
                      3) ls: .jivelite/userpath/settings/: No such file or directory

                      I have copied what I did below.

                      [email protected]:~$ ps -ef | grep -i jivelite
                      9119 tc 0:00 grep -i jivelite
                      [email protected]:~$ echo settings = {setupDone=true,} > SetupWelcome.lua
                      [email protected]:~$ sudo chown root SetupWelcome.lua
                      [email protected]:~$ sudo mv SetupWelcome.lua .jivelite/userpath/settings/
                      mv: can't rename 'SetupWelcome.lua': No such file or directory
                      [email protected]:~$ sudo chown root SetupWelcome.lua
                      [email protected]:~$ sudo mv SetupWelcome.lua .jivelite/userpath/settings/
                      mv: can't rename 'SetupWelcome.lua': No such file or directory
                      [email protected]:~$ echo settings = {locale="EN",} > SetupLanguage.lua
                      [email protected]:~$ sudo chown root SetupLanguage.lua
                      [email protected]:~$ sudo mv SetupLanguage.lua .jivelite/userpath/settings/
                      mv: can't rename 'SetupLanguage.lua': No such file or directory
                      [email protected]:~$ ls -lrt .jivelite/userpath/settings/
                      ls: .jivelite/userpath/settings/: No such file or directory

                      before the first step of your guide i had:

                      [email protected]:~$ ps -ef | grep -i jivelite
                      8825 root 0:00 {jivelite.sh} /bin/sh /opt/jivelite/bin/jivelite.sh
                      9845 tc 0:00 grep -i jivelite

                      Any idea? Thanks again

                      Comment


                        #26
                        Ah ... Iguess that the .jivelite/userpath/settings folder does not exist ... perhaps because JiveLite has not exited cleanly.

                        Try
                        mkdir .jivelite
                        mkdir .jivelite/userpath
                        mkdir .jivelite/userpath/settings

                        Then repeat the mv commands
                        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


                          #27
                          Excellent, another step forward

                          Below the result:

                          [email protected]:~$ ls -lrt .jivelite/userpath/settings/
                          total 8
                          -rw-r--r-- 1 root staff 29 Mar 16 23:25 SetupWelcome.lua
                          -rw-r--r-- 1 root staff 24 Mar 16 23:26 SetupLanguage.lua

                          I have turned on jivelite and rebooted pcp.

                          I have pasted the output to a txt file.

                          After the reboot I have tried the remote control but nothing is happening yet.

                          Comment


                            #28
                            Tricky to diagnose without access to the display that JiveLite should be presenting.

                            I saw that you list of the directory showed 8 items but you only put 2 of them here.
                            Please post the full list (along with their date/time).
                            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


                              #29
                              Now I'm confused.

                              If you don't have a screen attached, then why have you installed Jivelite?

                              Comment


                                #30
                                Originally posted by Yatsushiro View Post
                                Now I'm confused.

                                If you don't have a screen attached, then why have you installed Jivelite?
                                So that it can be controlled (vol, Pause/resume) via USB remote ... and it, in turn, would control a player via LMS.
                                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

                                Working...
                                X