Announcement

Collapse
No announcement yet.

Install Issue

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

    Install Issue

    The absolute path to the RaspberryIO plugin on my HS3 Windows 10 computer is: C:/Program Files (x86)/Homeseer HS3/Updates3/RaspberryIO3.0.0.16/
    When I try to start run.sh, I get the following error:
    ./run.sh: 2: ./run.sh: Syntax error: "(" unexpected

    It appears that run.sh does not like the parenthesis around (x86).

    The run.sh file on my remote RaspberryPi is:
    #!/bin/sh
    cd C:/Program Files (x86)/Homeseer HS3/Updates3/RaspberryIO3.0.0.16/
    mono HSPI_RaspberryIO.exe server =192.168.1.170 instance=HS3Relays autoreconnect=30


    #2
    run.sh is run on the Raspberry Pi, not the Windows PC. See instructions here:
    https://forums.homeseer.com/forum/an...yio-user-guide

    The absolute path they're speaking of is the path to the RaspberryIO software on the Raspberry Pi, not Windows.

    Comment


      #3
      My mistake for not reading closely enough. I corrected the path to be my Raspberry Pi and now I get a list of errors shown below:
      ./run.sh: 2: cd: can't cd to /home/pi/RaspberrIO
      Plugin: RaspberryIO Instance: HS4Relays starting...
      Connecting to server at 192.168.1.170...
      Connection attempt #1
      Connected (HomeSeer API 3). Waiting to be initialized...
      Jan-08 07:20:35 INFO RaspberryIO version 3.0.0.17
      Jan-08 07:20:35 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 <8997381ebe404409bd1f4b1f4c03d8c8>:0
      at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00090] in <8997381ebe404409bd1f4b1f4c03d8c8>:0
      Shutdown IO called
      Jan-08 07:20:35 INFO Shutting Down plug-in
      Jan-08 07:20:35 INFO Shutting Down plug-in
      Connection lost, exiting
      Disconnected from server - client
      Waiting 30 seconds before trying to reconnect
      Connecting to server at 192.168.1.170...
      Connection attempt #1
      Connected (HomeSeer API 3). Waiting to be initialized...
      Jan-08 07:21:07 INFO RaspberryIO version 3.0.0.17
      Jan-08 07:21:07 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 <8997381ebe404409bd1f4b1f4c03d8c8>:0
      at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00090] in <8997381ebe404409bd1f4b1f4c03d8c8>:0
      Shutdown IO called
      Jan-08 07:21:07 INFO Shutting Down plug-in
      Jan-08 07:21:07 INFO Shutting Down plug-in
      Connection lost, exiting
      Disconnected from server - client
      Waiting 30 seconds before trying to reconnect
      Connecting to server at 192.168.1.170...
      Connection attempt #1
      Connected (HomeSeer API 3). Waiting to be initialized...
      Jan-08 07:21:39 INFO RaspberryIO version 3.0.0.17
      Jan-08 07:21:39 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 <8997381ebe404409bd1f4b1f4c03d8c8>:0
      at HSPI_RaspberryIO.RaspberryPiApp.Init () [0x00090] in <8997381ebe404409bd1f4b1f4c03d8c8>:0
      Shutdown IO called
      Jan-08 07:21:39 INFO Shutting Down plug-in
      Jan-08 07:21:39 INFO Shutting Down plug-in
      Connection lost, exiting
      Disconnected from server - client
      Waiting 30 seconds before trying to reconnect

      Comment


        #4
        ./run.sh: 2: cd: can't cd to /home/pi/RaspberrIO
        looks like there is a typo in your run.sh script.
        I guess it should be:
        cd /home/pi/RaspberryIO

        also the "File not found" error indicates that you have to install the mono-vbnc package
        Code:
         
         sudo apt-get install mono-vbnc

        Comment


          #5
          I corrected my typo and did the sudo apt-get install mono-vbnc

          RaspberryIO now connects to my Homeseer PC with the following errors:

          ​​​​​​​i@raspberrypi:~/RaspberryIO $ ./run.sh
          Plugin: RaspberryIO Instance: HS4Relays starting...
          Connecting to server at 192.168.1.170...
          Connection attempt #1
          Connected (HomeSeer API 3). Waiting to be initialized...
          Jan-08 15:23:07 INFO RaspberryIO version 3.0.0.17
          Jan-08 15:23:12 INFO Raspberry Pi running on Bcm2711 processor
          Jan-08 15:23:12 INFO Firmware rev11546897, board model B4 (Raspberry Pi 4 Model B)
          Jan-08 15:23:12 INFO Serial number: 100000000a225e0e
          Jan-08 15:23:12 ERROR Raspberry.IO.Interop.MemoryMapFailedException: Exception of type 'Raspberry.IO.Interop.MemoryMapFailedException' was thrown.
          at Raspberry.IO.Interop.MemoryMap.ThrowOnError[TException] (System.IntPtr result) [0x00012] in &lt;a5cd8c725d2641ebb7a150728fde73e9&gt;:0
          at Raspberry.IO.Interop.MemoryMap.Create (System.IntPtr address, System.UInt32 size, Raspberry.IO.Interop.MemoryProtection protection, Raspberry.IO.Interop.MemoryFlags memoryflags, System.Int32 fileDescriptor, System.UInt32 offset) [0x00017] in &lt;a5cd8c725d2641ebb7a150728fde73e9&gt;:0
          at Raspberry.IO.GeneralPurpose.GpioConnectionDriver..ctor () [0x0004e] in &lt;46bc1863e4d746e4ac31fec584bdf513&gt;:0
          at Raspberry.IO.GeneralPurpose.GpioConnectionSettings.GetBestDr iver (Raspberry.IO.GeneralPurpose.GpioConnectionDriverCapabilitie s capabilities) [0x0000a] in &lt;46bc1863e4d746e4ac31fec584bdf513&gt;:0
          at Raspberry.IO.GeneralPurpose.GpioConnectionSettings.get_Defau ltDriver () [0x0002f] in &lt;46bc1863e4d746e4ac31fec584bdf513&gt;:0
          at Raspberry.IO.GeneralPurpose.GpioConnectionSettings..ctor () [0x00006] in &lt;46bc1863e4d746e4ac31fec584bdf513&gt;:0
          at HSPI_RaspberryIO.RaspberryPiApp.&lt;Init&gt;b__52_0 () [0x000c4] in &lt;8997381ebe404409bd1f4b1f4c03d8c8&gt;:0

          Comment


            #6
            you need to run the script using sudo

            Code:
             
             sudo ./run.sh

            Comment


              #7
              Thanks Much, that was the issue

              Comment

              Working...
              X