Chromecast control (early access) [ENGLISH]

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • Aleq
    Smart Home'r
    • 04.05.2016
    • 53

    #1

    Chromecast control (early access) [ENGLISH]

    Hi guys,
    I'm working on Chromecast control plugin. I'd like to start short private round of alpha/beta testing before releasing it into the wild. So I'm looking for volunteers, enthusiasts who use Chromecast and would like to control it also from Loxone.

    Regards,
    Aleq
  • KoenMathijs
    Azubi
    • 31.01.2022
    • 2

    #2
    Are you still actively developing this? Got some feature requests if you like...

    Kommentar

    • Aleq
      Smart Home'r
      • 04.05.2016
      • 53

      #3
      I resumed the development and started to work on support of multiple chromecast devices
      Plus I switched to a new "driver" (which handles the Cast API communication) hence some more features may be possible (like real pause + resume, skip to next song, ...)
      Anybody knows if we can get a string into loxone UI? If yes, I could expose the name of currently played song as well.
      Zuletzt geändert von Aleq; 13.02.2023, 10:37.

      Kommentar

      • Christian Fenzl
        Lebende Foren Legende
        • 31.08.2015
        • 11233

        #4
        You might use MQTT to push it to LoxBerrys MQTT Server, that forwards it to the users configured Miniserver.

        Or you directly push it to virtual text inputs via http (as the MQTT Gateway does).

        For both ways, you find connection data to mqtt or Miniservers in LoxBerry‘s general.json.

        Christian
        Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

        Kommentar

        • MaximilianHWL
          Azubi
          • 28.06.2022
          • 3

          #5
          Aleq

          Loxberry is quite new to me and I have trouble getting the Plugin to work.
          I use the newest release of the Loxberry (v3.0.0.6).


          Here the Chromecaste status:
          Code:
          Deprecated: implode(): Passing glue string after array is deprecated. Swap the parameters in /opt/loxberry/webfrontend/htmlauth/plugins/chromecast-4lox/status_exec.php on line 22

          and the log when I try to send a pause command:
          Code:
          DEBUG:root:2023-10-11 11:28:01 RECEIVED: PAUSE for Chromecast 192.168.1.228
          /opt/loxberry/bin/plugins/chromecast-4lox/cast.sh: line 14: /opt/loxberry/bin/plugins/chromecast-4lox/: Is a directory
          ERROR:root:2023-10-11 11:28:01 Error executing: /opt/loxberry/bin/plugins/chromecast-4lox/cast.sh --host 192.168.1.228 media pause *** return code 126 *** OUTPUT: |
          DEBUG:root:2023-10-11 11:28:01 REPLY to 192.168.1.201 port 7651: *PAUSE_NACK;
          DEBUG:root:2023-10-11 11:28:01 REPLY to 192.168.1.201 port 7651: *STATUS_OFFLINE;

          Would be grade if someone could help me solve this problem.​

          Kommentar


          • dj82atwork
            dj82atwork kommentierte
            Kommentar bearbeiten
            Hi MaximilianHWL. Have you been able to solve your problem in the meantime?
        • Christian Fenzl
          Lebende Foren Legende
          • 31.08.2015
          • 11233

          #6
          You may set the Loglevel ofvthe Plugin to DEBUG and submit the full logfile.
          Hilfe für die Menschen der Ukraine: https://www.loxforum.com/forum/proje...Cr-die-ukraine

          Kommentar

          • KoenMathijs
            Azubi
            • 31.01.2022
            • 2

            #7
            Aleq,

            do you have made any progress on the Chromecast Control plugin? I'm looking for a way to control multiple chromecast devices from one loxberry.
            Thanks anyway!

            Kommentar

            • Aleq
              Smart Home'r
              • 04.05.2016
              • 53

              #8
              Hi MaximilianHWL and dj82atwork
              do you both suffer from this problem? I'm still using the old trustworthy version on Loxberry 3.0.0.6 and it works for me.
              The error logs indicate the chromecast utility (a binary bundled with the plugin) is not working. What platform are you? I'm running LoxBerry on Raspberry (ARM)...

              Klicke auf die Grafik für eine vergrößerte Ansicht

Name: image.png
Ansichten: 150
Größe: 120,9 KB
ID: 426640

              Kommentar

              • Dirk
                Azubi
                • 19.11.2024
                • 1

                #9
                Aleq I was planning on implementing your Loxberry Chromecast plugin to turn on the lights once an application is started.
                If I send GET_STATUS to the Loxberry, I receive the correct reply in Loxone's UDP monitor.
                However, I would like to have the application that is currently active displayed in a virtual UDP input but I can't get this to work.
                It could also just be a binary value where 0 means no applications running and 1 means that an application is running.
                Is this possible?

                Kommentar

                • Nukles
                  Azubi
                  • 08.12.2024
                  • 9

                  #10
                  I am having trouble using this plugin. I installed Loxberry and the Plugin on a RaspberryPi. Now when I configure the Chromecast, I enter the Loxberry UDP port (I guess can be anything as long as it's not used yet, right? I choose 1001), the Chromecast IP (according to Discover section), Miniserver IP and UDP port (also here I chose 1001). When I save the configuration, I then click on "Overview" and it says:

                  LoxBerry Chromecast 4 Lox server not running.
                  Check your configuration and try restarting LoxBerry

                  I restarted but again nothing.

                  I checked the Log page and it says:

                  /usr/bin/env: ‘python2’: No such file or directory

                  I tried to install python2 to no avail, as it is not found.

                  What can I do?

                  Thanks!

                  Kommentar

                  • Aleq
                    Smart Home'r
                    • 04.05.2016
                    • 53

                    #11
                    Hi guys,
                    I'll consider that 0/1 (application running/not) in future versions.

                    Regarding python2 - apparently upgraded loxberries still have python2 but fresh installations not. And the plugin is based on python2.
                    I have early version of python3 plugin in works, but it is extremely experimental. It's unfinished, untested. No support. Still, I'm attaching it to the message.

                    If the odds (and gods) are in my favour, I might get some time to work on it during christmas holidays...
                    Angehängte Dateien

                    Kommentar


                    • DimpZ
                      DimpZ kommentierte
                      Kommentar bearbeiten
                      Fingers crossed! Merry Christmas
                  Lädt...