Announcement

Collapse
No announcement yet.

Having problems getting plugins to run

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

    Having problems getting plugins to run

    I think I have it right but the plugins won't stay running.

    HS3 isn't running on a Pi but the Remote is.

    Can some see if something isn't setup right?


    Code:
    cat /etc/os-release
    
    PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="8"
    VERSION="8 (jessie)"
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    
    Mono JIT compiler version 3.2.8 (Debian 3.2.8+dfsg-10+deb8u1)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
        TLS:           __thread
        SIGSEGV:       normal
        Notifications: epoll
        Architecture:  armel,vfp+hard
        Disabled:      none
        Misc:          softdebug 
        LLVM:          supported, not enabled.
        GC:            sgen

    The errors when running:
    Code:
    pi@Relay-01:/opt/RaspberryIO $ sudo ./run.sh
    Code:
    Plugin: RaspberryIO Instance: Relay-01 starting...
    Connecting to server at 10.0.2.16...
    Connection attempt #1
    Connected (HomeSeer API 3). Waiting to be initialized...
    Dec-05 18:43:48 INFO RaspberryIO version 3.0.0.16
    Missing method CompareString in assembly /opt/RaspberryIO/Scheduler.dll, type Microsoft.VisualBasic.CompilerServices.Operators
    Dec-05 18:43:48 ERROR System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
      at HSPI_RaspberryIO.WebConfig..ctor (System.String pageName) [0x00000] in <filename unknown>:0 
      at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00000] in <filename unknown>:0 
    Shutdown IO called
    Dec-05 18:43:48 INFO Shutting Down plug-in
    Dec-05 18:43:48 INFO Shutting Down plug-in
    Connection lost, exiting
    Disconnected from server - client
    Waiting 30 seconds before trying to reconnect


    Here is the listing of the directory on the Pi:
    Code:
    pi@Relay-01:/opt/RaspberryIO $ ls -l
    Code:
    total 3820
    -rw-r--r-- 1 root root   75776 Sep 12  2016 HomeSeerAPI.dll
    -rw-r--r-- 1 root root   44032 Sep 12  2016 HSCF.dll
    -rw-r--r-- 1 root root   50176 Aug 10 16:20 HSPI_RaspberryIO.exe
    -rw-r--r-- 1 root root     351 Sep 10  2016 HSPI_RaspberryIO.exe.config
    -rw-r--r-- 1 root root    7680 Aug 10 16:16 Raspberry.IO.dll
    -rw-r--r-- 1 root root   47104 Aug 10 16:16 Raspberry.IO.GeneralPurpose.dll
    -rw-r--r-- 1 root root   14848 Aug 10 16:16 Raspberry.IO.Interop.dll
    -rw-r--r-- 1 root root  984594 Dec  5 18:04 RaspberryIO_remote_install_3-0-0-16.zip
    -rw-r--r-- 1 root root   13312 Aug 10 16:14 Raspberry.System.dll
    -rwxr-xr-x 1 root root     109 Dec  5 18:24 run.sh
    -rw-r--r-- 1 root root 2646528 Sep 12  2016 Scheduler.dll

    The startup file:
    Code:
    pi@Relay-01:/opt/RaspberryIO $ cat run.sh
    Code:
    #!/bin/sh
    cd /opt/RaspberryIO
    mono HSPI_RaspberryIO.exe server=10.0.2.16 instance=Relay-01 autoreconnect=30


    Code:
      
    Dec-05 3:46:28 PM Info Plugin RaspberryIO with instance: Relay-01 has disconnected
    Dec-05 3:46:28 PM RaspberryIO INFO Shutting Down plug-in
    Dec-05 3:46:28 PM Error Initializing plug-in(1): RaspberryIO Instance:Relay-01:System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_RaspberryIO.WebConfig..ctor (System.String pageName) [0x00000] in :0 at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00000] in :0 Time to load: 22 milliseconds
    Dec-05 3:46:28 PM RaspberryIO ERROR System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_RaspberryIO.WebConfig..ctor (System.String pageName) [0x00000] in :0 at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00000] in :0
    Dec-05 3:46:28 PM RaspberryIO INFO RaspberryIO version 3.0.0.16
    Dec-05 3:46:28 PM Starting Plug-In Initializing plugin RaspberryIO ...
    Dec-05 3:46:28 PM Info Plugin RaspberryIO with instance Relay-01 has connected. IP:10.0.2.22:58964
    HomeSeer Version: HS3 Standard Edition 3.0.0.548
    Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
    Number of Devices: 484 | Number of Events: 776

    Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
    3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
    4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
    3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

    Z-Net version: 1.0.23 for Inclusion Nodes
    SmartStick+: 6.04 (ZDK 6.81.3) on Server

    #2
    on your Pi try:
    Code:
     
     sudo apt-get install mono-vbnc
    also it looks like you have mono 3.2.8 on your Pi, and mono 5.20.1 on your Linux machine, this is likely to cause some other problems, you should upgrade mono on your Pi

    Comment


      #3
      I agree and I've been trying to remove it but every remove info I've found will not get rid of it.

      I did find that 3.2.8 is located in "/usr/bin". I guess that one could remove anything starting with mono* but then it might leave some lint around.
      HomeSeer Version: HS3 Standard Edition 3.0.0.548
      Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
      Number of Devices: 484 | Number of Events: 776

      Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
      3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
      4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
      3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

      Z-Net version: 1.0.23 for Inclusion Nodes
      SmartStick+: 6.04 (ZDK 6.81.3) on Server

      Comment


        #4
        Ignore this as I fixed it.
        I finally found the command that got rid of 3.2.8 but every time I try to install a later version 3.2.8 gets reinstalled. I've read that there is a flag someplace that controls the latest version that can be loaded but I have no idea where that's kept and how to change it. I'll keep looking but a locations to look would be night. I'm loading on Jessie.
        Ok, got mono version 5.x running.
        Code:
        Mono JIT compiler version 5.10.1.20 (tarball Thu Mar 29 11:55:26 UTC 2018)
        Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
            TLS:           __thread
            SIGSEGV:       normal
            Notifications: epoll
            Architecture:  armel,vfp+hard
            Disabled:      none
            Misc:          softdebug 
            Interpreter:   yes
            LLVM:          supported, not enabled.
            GC:            sgen (concurrent by default)
        Tried to startup RaspberyIO and get the following errors on the remote Pi so I muct have left something out of the mono install:
        Code:
        ./run.sh
        Plugin: RaspberryIO Instance: RelayGroup01 starting...
        
        Unhandled Exception:
        System.TypeLoadException: Could not find method due to a type load error
          at HSPI_RaspberryIO.HSPI..ctor () [0x00016] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
          at (wrapper remoting-invoke-with-check) HSPI_RaspberryIO.HSPI..ctor()
          at HSPI_RaspberryIO.Program.MainLoop (System.String ipAddress) [0x00000] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
          at HSPI_RaspberryIO.Program.Main (System.String[] args) [0x000be] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
        [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not find method due to a type load error
          at HSPI_RaspberryIO.HSPI..ctor () [0x00016] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
          at (wrapper remoting-invoke-with-check) HSPI_RaspberryIO.HSPI..ctor()
          at HSPI_RaspberryIO.Program.MainLoop (System.String ipAddress) [0x00000] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
          at HSPI_RaspberryIO.Program.Main (System.String[] args) [0x000be] in <e19ef2a6ff024cdc888e905df7b361ed>:0
        HomeSeer Version: HS3 Standard Edition 3.0.0.548
        Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
        Number of Devices: 484 | Number of Events: 776

        Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
        3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
        4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
        3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

        Z-Net version: 1.0.23 for Inclusion Nodes
        SmartStick+: 6.04 (ZDK 6.81.3) on Server

        Comment


          #5
          I must be getting Old as I normally don't have these issues

          Solved the last issue, I had loaded mono-runtime and not mono-complete.
          Code:
          mono --version
          Mono JIT compiler version 5.10.1.20 (tarball Thu Mar 29 11:55:26 UTC 2018)
          Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
              TLS:           __thread
              SIGSEGV:       normal
              Notifications: epoll
              Architecture:  armel,vfp+hard
              Disabled:      none
              Misc:          softdebug 
              Interpreter:   yes
              LLVM:          supported, not enabled.
              GC:            sgen (concurrent by default)
          When I updated to 548 mono got updated to 6.4.0.198 but I didn't notice until after I read this test. Does that now mean I have to update mono on the remote as well?
          Code:
          mono --version
          Mono JIT compiler version 6.4.0.198 (tarball Tue Sep 24 01:21:28 UTC 2019)
          Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
              TLS:           __thread
              SIGSEGV:       altstack
              Notifications: epoll
              Architecture:  amd64
              Disabled:      none
              Misc:          softdebug 
              Interpreter:   yes
              LLVM:          yes(610)
              Suspend:       hybrid
              GC:            sgen (concurrent by default)
          Now back to the issue of not connecting. The remote seems to start. Here is the remote Pi config gile and resulting info when started:
          Code:
          cat run.sh
          #!/bin/sh
          cd /opt/RaspberryIO
          mono HSPI_RaspberryIO.exe server=10.0.2.16 instance=RelayGroup01 autoreconnect=30
          Code:
          ./run.sh
          Plugin: RaspberryIO Instance: RelayGroup01 starting...
          Connecting to server at 10.0.2.16...
          Connection attempt #1
          Connected (HomeSeer API 3). Waiting to be initialized...
          Dec-08 04:37:50 INFO RaspberryIO version 3.0.0.16
          Dec-08 04:37:50 ERROR System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
          File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
            at HSPI_RaspberryIO.WebConfig..ctor (System.String pageName) [0x0000b] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
            at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00090] in <e19ef2a6ff024cdc888e905df7b361ed>:0 
          Dec-08 04:37:50 INFO Shutting Down plug-in
          Shutdown IO called
          Dec-08 04:37:50 INFO Shutting Down plug-in
          Connection lost, exiting
          Disconnected from server - client
          Waiting 30 seconds before trying to reconnect
          And here is the HS3 log:
          Code:
           
          Dec-08 1:38:08 AM Starting Plug-In RaspberryIO loaded in 15057 milliseconds
          Dec-08 1:37:53 AM Info Plugin RaspberryIO with instance RelayGroup01 has connected. IP:127.0.0.1:60082
          Dec-08 1:37:53 AM Warning I/O interface RaspberryIO is down, executable is not running, restarting ...
          Dec-08 1:37:53 AM Info Plugin RaspberryIO with instance: RelayGroup01 has disconnected
          Dec-08 1:37:50 AM Info Plugin RaspberryIO with instance: RelayGroup01 has disconnected
          Dec-08 1:37:50 AM RaspberryIO INFO Shutting Down plug-in
          Dec-08 1:37:50 AM RaspberryIO INFO Shutting Down plug-in
          Dec-08 1:37:50 AM Error Initializing plug-in(1): RaspberryIO Instance:RelayGroup01:System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_RaspberryIO.WebConfig..ctor (System.String pageName) [0x0000b] in :0 at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00090] in :0 Time to load: 401 milliseconds
          Dec-08 1:37:50 AM RaspberryIO ERROR System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. File name: 'Microsoft.VisualBasic, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at HSPI_RaspberryIO.WebConfig..ctor (System.String pageName) [0x0000b] in :0 at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00090] in :0
          Dec-08 1:37:50 AM RaspberryIO INFO RaspberryIO version 3.0.0.16
          Dec-08 1:37:49 AM Starting Plug-In Initializing plugin RaspberryIO ...
          Dec-08 1:37:49 AM Info Plugin RaspberryIO with instance RelayGroup01 has connected. IP:10.0.2.22:36860
          I'm going to bed and will look at this in the morning.
          HomeSeer Version: HS3 Standard Edition 3.0.0.548
          Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
          Number of Devices: 484 | Number of Events: 776

          Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
          3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
          4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
          3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

          Z-Net version: 1.0.23 for Inclusion Nodes
          SmartStick+: 6.04 (ZDK 6.81.3) on Server

          Comment


            #6
            in addition to mono-complete, have you installed the vb package?

            Code:
             
             sudo apt-get install mono-vbnc

            Comment


              #7
              No, I did miss mono-vnc. My bad on that one. Added it and everything started working.

              In the process ended up somehow loosing WiFi on the board. Since I had been making so many changes I decided to just start from a clean slate. The previous build started from the Z-NET build so I could use it's find feature. I'm trying to get that to work but who know just what pieces it needs.

              Anyway, I'm totally up and running and starting to program it. Also, need to get an outdoor case before I bring it online, hopefully in a week or so.

              Question: Since I'm planing to use the relay board for landscape lighting and sprinklers I need that turn off backup for the sprinklers Although I can easily timeout the sprinkler channels in HS3 I'd rather put a script on the Pi that would turn channels off if they have been on too long. I thought if I used the RPi routines to turn off GPIO channels from a script. However, would they cause any issues with RaspburryIO?

              -----

              Feature upgrade request for the remote RaspberryIOs. It would be nice to have a timeout feature that would be resident in the remote and not dependent on HS3. This would be a backup so if anything happened those channels could be turned off.

              HomeSeer Version: HS3 Standard Edition 3.0.0.548
              Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
              Number of Devices: 484 | Number of Events: 776

              Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
              3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
              4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
              3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

              Z-Net version: 1.0.23 for Inclusion Nodes
              SmartStick+: 6.04 (ZDK 6.81.3) on Server

              Comment


                #8
                Originally posted by Timon View Post

                Question: Since I'm planing to use the relay board for landscape lighting and sprinklers I need that turn off backup for the sprinklers Although I can easily timeout the sprinkler channels in HS3 I'd rather put a script on the Pi that would turn channels off if they have been on too long. I thought if I used the RPi routines to turn off GPIO channels from a script. However, would they cause any issues with RaspburryIO?
                No that should not cause any problem with the RaspberryIO plugin.

                Comment


                  #9
                  Thanks Spud.

                  I've added the programming in to run my landscape lighting and Irrigation and it's working great.

                  I also just noticed that I have the ability to reboot or shutdown the RPi which is great. I just thought that a nice addition might be to send back the CPU temperature as an additional bit of useful status and CPU temp is supported on all RPi's. I may just do that by adding the MQTT receive and publish handlers along with a I2S devices to pick up outdoor temps, humidity and a few other things.

                  For anyone interested here is the configuration I'm using, here is the board I'm using. It can handle both low and high voltage AC and DC loaded. In my case I'm using 24VAC for irrigation and 12VAC for landscape lighting. Just need to get the weather proof enclosure and I can install it.

                  Available on Amazon.

                  Click image for larger version

Name:	fullsizeoutput_1808.jpeg
Views:	105
Size:	88.2 KB
ID:	1345733
                  HomeSeer Version: HS3 Standard Edition 3.0.0.548
                  Linux version: Linux auto 4.15.0-72-generic #81-Ubuntu SMP Tue Nov 26 12:20:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
                  Number of Devices: 484 | Number of Events: 776

                  Enabled Plug-Ins: 3.0.0.13: AirplaySpeak | 2.0.61.0: BLBackup
                  3.0.0.70: EasyTrigger | 1.3.7006.42100: LiftMaster MyQ
                  4.2.3.0: mcsMQTT | 3.0.0.53: PHLocation2 | 0.0.0.47: Pushover 3P
                  3.0.0.16: RaspberryIO | 3.0.1.262: Z-Wave

                  Z-Net version: 1.0.23 for Inclusion Nodes
                  SmartStick+: 6.04 (ZDK 6.81.3) on Server

                  Comment


                    #10
                    cool stuff, thank you for sharing.

                    Comment

                    Working...
                    X