Announcement

Collapse
No announcement yet.

Chromecast Config file issue

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

    Chromecast Config file issue

    I am very new to using a Home Troller HS3 on a Linux. Had HS2 on a desk top for years.
    I have a Linux Homeseer Troller HS3 that I purchased a few months ago, and it works great other than I can not get the Chomecast plug-in to operate.
    The plug-in loads onto the Linux just fine, and shows OK when it is activated in the manage plug-ins..
    As instructed in the Chromecast users guide, I have down loaded and installed the avahi-daemon version 0.6.31, and it indicates that it is running ok. I have mono version 5.0.1.1 on my Linux. I have also ran the commands in the Chromecast users guide to move the Mono.CSharp.dll and the CSScriptLibrary to the usr/local/Homeseer/bin.
    I found a post from zwolfpack that shows steps to install mono-devel, install mono-complete, install libmono-microsoft-csharp4.0-cil, and avahi-daemon. Not sure if I should try any of these steps.
    When I try to access the config file for the plug-in, I get the following Error in the log.
    Thanks for any help !!
    an-22 8:56:19 AM HSTouch Server Debug 08:56:19:7026 ~ Value change ref:78 Address:14.69.17:2 NewVal: 100OldVal: 0
    Jan-22 8:51:20 AM Chromecast ERROR System.TypeInitializationException: The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load array element type, due to: Could not load type of field 'HSPI_Chromecast.ChromecastTarget:_chromecast' (17) due to: Could not load file or assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: assembly:/usr/local/HomeSeer/HSPI_Chromecast.exe type:ChromecastTarget member: at System.Collections.Generic.List`1[T]..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at HSPI_Chromecast.ChromecastApp.b__70_0 () [0x00000] in <513abbf6b8c84f248544c6cf86104c48>:0
    Jan-22 8:51:20 AM Starting Plug-In Plugin Chromecast started successfully in 209 milliseconds
    Jan-22 8:51:20 AM Chromecast INFO Chromecast version 3.0.0.29
    Jan-22 8:51:20 AM Starting Plug-In Initializing plugin Chromecast ...
    Jan-22 8:51:20 AM Info Plugin Chromecast has connected. IP:127.0.0.1:57693
    Jan-22 8:51:19 AM Plug-In Finished initializing plug-in Chromecast
    Jan-22 8:49:49 AM Updater Install/Update of package Chromecast was successful.
    Jan-22 8:49:49 AM Updater Extraction Complete.
    Jan-22 8:49:49 AM Updater Extracting files from zip file: images.zip
    Jan-22 8:49:49 AM Updater Warning File exists, not overwriting: \usr\local\HomeSeer\Config\\Chromecast.ini
    Jan-22 8:49:49 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll.config

    #2
    yes. I think you need to install the mono-devel package

    Code:
    sudo apt-get install mono-devel

    Comment


      #3
      Installed mono-devel and got
      running command sudo apt-get install mono-devel

      Reading package lists...

      Building dependency tree...

      Reading state information...

      Some packages could not be installed. This may mean that you have

      requested an impossible situation or if you are using the unstable

      distribution that some required packages have not yet been created

      or been moved out of Incoming.

      The following information may help to resolve the situation:



      The following packages have unmet dependencies:

      mono-devel : Depends: libglib2.0-0 (>= 2.40.2) but 2.40.0-2 is to be installed

      Recommends: referenceassemblies-pcl but it is not going to be installed

      Recommends: msbuild but it is not going to be installed

      Still no Chomecast config working.

      I have 9 files in the Chromecast folder, is that the correct number, thought I saw where some one said to delete the Newtonsoft.Json.dll file?

      Should Chromecast work with mono JIT compiler version 5.0.1.1?

      I noticed that Mono.CSharp.dll and CSScriptLibrary.dll are in the same usr/local/Homeseer/bin folder, as the Chromecast folder is, but these two .dll files are not in the Chromecast folder with in the bin. Should they be?

      Any other suggestions?

      Comment


        #4
        Originally posted by Lorne Powell View Post
        Installed mono-devel and got
        running command sudo apt-get install mono-devel

        Reading package lists...

        Building dependency tree...

        Reading state information...

        Some packages could not be installed. This may mean that you have

        requested an impossible situation or if you are using the unstable

        distribution that some required packages have not yet been created

        or been moved out of Incoming.

        The following information may help to resolve the situation:



        The following packages have unmet dependencies:

        mono-devel : Depends: libglib2.0-0 (>= 2.40.2) but 2.40.0-2 is to be installed

        Recommends: referenceassemblies-pcl but it is not going to be installed

        Recommends: msbuild but it is not going to be installed

        Still no Chomecast config working.

        I have 9 files in the Chromecast folder, is that the correct number, thought I saw where some one said to delete the Newtonsoft.Json.dll file?

        Should Chromecast work with mono JIT compiler version 5.0.1.1?

        I noticed that Mono.CSharp.dll and CSScriptLibrary.dll are in the same usr/local/Homeseer/bin folder, as the Chromecast folder is, but these two .dll files are not in the Chromecast folder with in the bin. Should they be?

        Any other suggestions?
        The problem is that mono-devel can't be installed on your SEL because of a dependency problem.
        All other things you mentioned are fine, don't change anything.

        Jon from HST is trying to find a solution. If you haven't done already contact HST support so that you get notified when the solution is found.

        Comment


          #5
          Lon says he is working on a fix, and is very close to having it completed. Ask him for a detailed instruction when he has the answer completed to make Chromecast work.

          Comment


            #6
            I did spend a day asking google and trying many things to finally get Mono updated on my SEL. I'm sure I did many things that were not needed to get this done.

            However, I decided to backup my HomeSeer directory and do a fresh and complete install Ubuntu 18.04 LTS server with Mono 5.18 and the ASPX patch. Restored the HomeSeer directory, configured HS3 to auto start on boot.


            HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
            Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
            Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

            Comment


              #7
              Okay, Jon said he found a script error and was fixing it the other day. I tried to reload Chromcast today and got the following errors and no go with the plug in.

              When config file requested
              Feb-13 9:57:13 AM Chromecast ERROR Failure has occurred while loading a type.
              When Chromecast downloaded
              Feb-13 9:54:09 AM Insteon Received House MASTER BATHROOM LIGHTS (06.EB.A8) Go OFF
              Feb-13 9:53:12 AM Chromecast ERROR System.TypeInitializationException: The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load array element type, due to: Could not load type of field 'HSPI_Chromecast.ChromecastTarget:_chromecast' (17) due to: Could not load file or assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: assembly:/usr/local/HomeSeer/HSPI_Chromecast.exe type:ChromecastTarget member: at System.Collections.Generic.List`1[T]..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at HSPI_Chromecast.ChromecastApp.b__70_0 () [0x00000] in <513abbf6b8c84f248544c6cf86104c48>:0
              Feb-13 9:53:12 AM Starting Plug-In Plugin Chromecast started successfully in 219 milliseconds
              Feb-13 9:53:12 AM Chromecast INFO Chromecast version 3.0.0.29
              Feb-13 9:53:12 AM Starting Plug-In Initializing plugin Chromecast ...
              Feb-13 9:53:12 AM Info Plugin Chromecast has connected. IP:127.0.0.1:59909
              Feb-13 9:53:11 AM Plug-In Finished initializing plug-in Chromecast
              Feb-13 9:52:52 AM Updater Install/Update of package Chromecast was successful.
              Feb-13 9:52:52 AM Updater Extraction Complete.
              Feb-13 9:52:52 AM Updater Extracting files from zip file: images.zip
              Feb-13 9:52:52 AM Updater Warning File exists, not overwriting: \usr\local\HomeSeer\Config\\Chromecast.ini
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll.config
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Mono.Zeroconf.Providers.Avahi.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Mono.Zeroconf.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Sockets.Plugin.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Sockets.Plugin.Abstractions.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/SharpCaster.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Newtonsoft.Json.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Google.Protobuf.dll
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/HSPI_Chromecast.exe.config
              Feb-13 9:52:52 AM Updater Copying file: /usr/local/HomeSeer/HSPI_Chromecast.exe
              Feb-13 9:52:51 AM Updater Installing package Chromecast
              Feb-13 9:52:51 AM Updater Update hspi_chromecast.exe downloaded successfully
              Feb-13 9:52:51 AM Updater Downloading update: Chromecast
              Feb-13 9:52:51 AM Updater Starting download of updates
              Still looking for an answer on how to make this plug in work for me. Not sure what I am missing if it is working for others?

              Comment


                #8
                Jon posted the script in another thread:
                https://forums.homeseer.com/forum/ho...chromecast-exe

                the script is:
                https://homeseer.com/linux/sel/selmonocomplete.sh

                try to run it and then restart the plugin

                Comment


                  #9
                  Feb-14 11:25:42 AM Chromecast ERROR Failure has occurred while loading a type.
                  Feb-14 11:25:26 AM Chromecast ERROR System.TypeInitializationException: The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load array element type, due to: Could not load type of field 'HSPI_Chromecast.ChromecastTarget:_chromecast' (17) due to: Could not load file or assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: assembly:/usr/local/HomeSeer/HSPI_Chromecast.exe type:ChromecastTarget member: at System.Collections.Generic.List`1[T]..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at HSPI_Chromecast.ChromecastApp.b__70_0 () [0x00000] in <513abbf6b8c84f248544c6cf86104c48>:0
                  Feb-14 11:25:26 AM Starting Plug-In Plugin Chromecast started successfully in 208 milliseconds
                  Feb-14 11:25:26 AM Chromecast INFO Chromecast version 3.0.0.29
                  Feb-14 11:25:26 AM Starting Plug-In Initializing plugin Chromecast ...
                  Feb-14 11:25:26 AM Info Plugin Chromecast has connected. IP:127.0.0.1:49939
                  Feb-14 11:25:25 AM Plug-In Finished initializing plug-in Chromecast
                  Feb-14 11:21:39 AM Updater Install/Update of package Chromecast was successful.
                  Feb-14 11:21:39 AM Updater Extraction Complete.
                  Feb-14 11:21:39 AM Updater Extracting files from zip file: images.zip
                  Feb-14 11:21:39 AM Updater Warning File exists, not overwriting: \usr\local\HomeSeer\Config\\Chromecast.ini
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll.config
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Mono.Zeroconf.Providers.Avahi.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Mono.Zeroconf.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Sockets.Plugin.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Sockets.Plugin.Abstractions.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/SharpCaster.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Newtonsoft.Json.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Google.Protobuf.dll
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/HSPI_Chromecast.exe.config
                  Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/HSPI_Chromecast.exe
                  Feb-14 11:21:39 AM Updater Installing package Chromecast
                  Feb-14 11:21:39 AM Updater Update hspi_chromecast.exe downloaded successfully
                  Feb-14 11:21:38 AM Updater Downloading update: Chromecast
                  Feb-14 11:21:38 AM Updater Starting download of updates

                  Comment


                    #10
                    Did you run the script?
                    Did you see any error when you ran it?

                    Comment


                      #11
                      Ran the script from the Linux tools on my computer, not the Linux directly.
                      It looked like it ran, with no errors as below
                      running command #!/bin/bash wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb wget http://us.archive.ubuntu.com/ubuntu/...buntu4_all.deb sudo dpkg -i libglib2.0-0_2.48.0-1ubuntu4_i386.deb sudo dpkg -i libglib2.0-bin_2.48.0-1ubuntu4_i386.deb sudo dpkg -i libglib2.0-data_2.48.0-1ubuntu4_all.deb wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb sudo dpkg -i pkg-config_0.26-1ubuntu4_i386.deb sudo apt-get install -y msbuild sudo apt-get install -y mono-devel sudo apt-get install -y mono-complete sleep 5

                      Comment


                        #12
                        Reloaded Chromecast and the log showed the following
                        Feb-14 11:25:42 AM Chromecast ERROR Failure has occurred while loading a type.
                        Feb-14 11:25:26 AM Chromecast ERROR System.TypeInitializationException: The type initializer for 'System.Collections.Generic.List`1' threw an exception. ---> System.TypeLoadException: Could not load array element type, due to: Could not load type of field 'HSPI_Chromecast.ChromecastTarget:_chromecast' (17) due to: Could not load file or assembly 'System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. assembly:System.Runtime, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type: member: assembly:/usr/local/HomeSeer/HSPI_Chromecast.exe type:ChromecastTarget member: at System.Collections.Generic.List`1[T]..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at HSPI_Chromecast.ChromecastApp.b__70_0 () [0x00000] in <513abbf6b8c84f248544c6cf86104c48>:0
                        Feb-14 11:25:26 AM Starting Plug-In Plugin Chromecast started successfully in 208 milliseconds
                        Feb-14 11:25:26 AM Chromecast INFO Chromecast version 3.0.0.29
                        Feb-14 11:25:26 AM Starting Plug-In Initializing plugin Chromecast ...
                        Feb-14 11:25:26 AM Info Plugin Chromecast has connected. IP:127.0.0.1:49939
                        Feb-14 11:25:25 AM Plug-In Finished initializing plug-in Chromecast
                        Feb-14 11:21:39 AM Updater Install/Update of package Chromecast was successful.
                        Feb-14 11:21:39 AM Updater Extraction Complete.
                        Feb-14 11:21:39 AM Updater Extracting files from zip file: images.zip
                        Feb-14 11:21:39 AM Updater Warning File exists, not overwriting: \usr\local\HomeSeer\Config\\Chromecast.ini
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll.config
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/avahi-sharp.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Mono.Zeroconf.Providers.Avahi.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Mono.Zeroconf.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Sockets.Plugin.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Sockets.Plugin.Abstractions.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/SharpCaster.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Newtonsoft.Json.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/bin/Chromecast/Google.Protobuf.dll
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/HSPI_Chromecast.exe.config
                        Feb-14 11:21:39 AM Updater Copying file: /usr/local/HomeSeer/HSPI_Chromecast.exe
                        Feb-14 11:21:39 AM Updater Installing package Chromecast
                        Feb-14 11:21:39 AM Updater Update hspi_chromecast.exe downloaded successfully
                        Feb-14 11:21:38 AM Updater Downloading update: Chromecast
                        Feb-14 11:21:38 AM Updater Starting download of updates

                        Comment


                          #13
                          Originally posted by Lorne Powell View Post
                          Ran the script from the Linux tools on my computer, not the Linux directly.
                          It looked like it ran, with no errors as below
                          running command #!/bin/bash wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb wget http://us.archive.ubuntu.com/ubuntu/...buntu4_all.deb sudo dpkg -i libglib2.0-0_2.48.0-1ubuntu4_i386.deb sudo dpkg -i libglib2.0-bin_2.48.0-1ubuntu4_i386.deb sudo dpkg -i libglib2.0-data_2.48.0-1ubuntu4_all.deb wget http://us.archive.ubuntu.com/ubuntu/...untu4_i386.deb sudo dpkg -i pkg-config_0.26-1ubuntu4_i386.deb sudo apt-get install -y msbuild sudo apt-get install -y mono-devel sudo apt-get install -y mono-complete sleep 5
                          I would ssh connect with something like putty or connect a keyboard and screen. Run the commands in the script one at a time. Be on the lookout for failed to load due to a missing dependency.

                          I fixed this problem before the script existed and it took many tries to get a successful upgrade of mono. Since then I bit the bullet and completely rebuilt my SEL with a fresh install of Ubuntu 18.04 and Mono 5.18

                          HS3 SEL running Pro Edition 3.0.0.531 on Ubuntu 18.04, mono 5.20, 656 devices, 209 events.
                          Plug-Ins: Chromecast, Device History, EasyTrigger, Ecobee, JowiHue, LutronCaseta, MeiUnifi, PHLocation2, Pushover 3P, SDJ-Health, Sonos, WeatherFlow, weatherXML
                          Scripts: SparkMan's Lock Event, 5 of Jon00 scripts.

                          Comment


                            #14
                            From SSH (recommended):
                            Download Putty
                            Enter IP Address and then Login
                            sudo wget homeseer.com/linux/sel/selmonocomplete.sh
                            sudo sh selmonocomplete.sh

                            From Linux Tools:
                            Access HS3 via Web Browser
                            Go to Tools->System->Linux Tools
                            Login
                            sudo wget homeseer.com/linux/sel/selmonocomplete.sh
                            sudo sh selmonocomplete.sh

                            Comment


                              #15
                              Hi Lorne,

                              Assuming you have the default image from the SEL, that script will install any dependencies necessary. You should not need to run it line by line either. To check what version you have, do mono --version and it should be 5.18. You can also do sudo apt-get install mono-devel and it will come back saying nothing was installed because the latest is already installed to check if the script works. Feel free to give support a call if you are having issues with this still. They are briefed on the fix and issue. I do recommend SSH over Linux Tools though.

                              I did notice that the script ends with "reboot" and not "sudo reboot" which means your controller probably did not reboot. Have you restarted it since running the script? You will need to do so. I have updated the script on the server.

                              Comment

                              Working...
                              X