Announcement

Collapse
No announcement yet.

Harmony plugin for Linux?

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

    #46
    Try setting the permissions how you want them before creating the zip file. Right now, your zip file contains this:

    -rw-r--r-- 1 pi pi 17 Nov 28 2016 HarmonyHub.AuthorizationToken
    -rw-r--r-- 1 pi pi 305152 Dec 9 2016 HarmonyHubControl.exe
    -rw-r--r-- 1 pi pi 408248 Dec 15 2016 harmonyhubcontrol_linux_arm.exe
    -rw-r--r-- 1 pi pi 383480 Dec 15 2016 harmonyhubcontrol_linux.exe
    -rw-r--r-- 1 pi pi 26119 May 16 2014 harmony-hub.jpg
    -rw-r--r-- 1 pi pi 1048004 Dec 3 11:13 HomeSeer HarmonyHub plug-in V3.7 documentation.pdf
    -rw-r--r-- 1 pi pi 940613 Jan 12 22:14 HomeSeer HarmonyHub plug.pdf
    -rw-r--r-- 1 pi pi 190464 Jan 12 16:22 HSPI_HarmonyHub.exe
    -rw-r--r-- 1 pi pi 85 Dec 3 10:32 hspi_HarmonyHub.ini
    -rw-r--r-- 1 pi pi 512 Dec 3 10:32 install.txt
    -rw-r--r-- 1 pi pi 821224 Nov 6 2012 msvcp110d.dll
    -rw-r--r-- 1 pi pi 815192 May 15 2014 msvcp120d.dll
    -rw-r--r-- 1 pi pi 1697232 Nov 6 2012 msvcr110d.dll
    -rw-r--r-- 1 pi pi 1824344 May 17 2014 msvcr120d.dll

    The 'x' bit isn't set on anything. Execute 'chmod +x *.exe *.dll' before you zip it up.

    Comment


      #47
      Originally posted by zwolfpack View Post
      Try setting the permissions how you want them before creating the zip file. Right now, your zip file contains this:

      -rw-r--r-- 1 pi pi 17 Nov 28 2016 HarmonyHub.AuthorizationToken
      -rw-r--r-- 1 pi pi 305152 Dec 9 2016 HarmonyHubControl.exe
      -rw-r--r-- 1 pi pi 408248 Dec 15 2016 harmonyhubcontrol_linux_arm.exe
      -rw-r--r-- 1 pi pi 383480 Dec 15 2016 harmonyhubcontrol_linux.exe
      -rw-r--r-- 1 pi pi 26119 May 16 2014 harmony-hub.jpg
      -rw-r--r-- 1 pi pi 1048004 Dec 3 11:13 HomeSeer HarmonyHub plug-in V3.7 documentation.pdf
      -rw-r--r-- 1 pi pi 940613 Jan 12 22:14 HomeSeer HarmonyHub plug.pdf
      -rw-r--r-- 1 pi pi 190464 Jan 12 16:22 HSPI_HarmonyHub.exe
      -rw-r--r-- 1 pi pi 85 Dec 3 10:32 hspi_HarmonyHub.ini
      -rw-r--r-- 1 pi pi 512 Dec 3 10:32 install.txt
      -rw-r--r-- 1 pi pi 821224 Nov 6 2012 msvcp110d.dll
      -rw-r--r-- 1 pi pi 815192 May 15 2014 msvcp120d.dll
      -rw-r--r-- 1 pi pi 1697232 Nov 6 2012 msvcr110d.dll
      -rw-r--r-- 1 pi pi 1824344 May 17 2014 msvcr120d.dll

      The 'x' bit isn't set on anything. Execute 'chmod +x *.exe *.dll' before you zip it up.
      Doesn't work :-(
      Regards,

      Rien du Pre
      The Netherlands
      Using:
      Homeseer PRO latest HS4 BETA on a Raspberry
      Plugin's:
      RFXCOM, mcsMQTT, Z-Wave

      Comment


        #48
        I think this method should work for you -

        Include a file "chmod.sh" in your installer:
        Code:
        #/bin/sh
        chmod +x $(dirname $0)/*.exe
        Install it in your bin directory (.\bin\HarmonyHub)

        Run this during your plugin initialization, calling it as follows

        /bin/sh <hs3_root><hs3_root>/bin/HarmonyHub/chmod.sh

        Calling a script this way allows it to run even though its 'x' permission bits aren't set.</hs3_root></hs3_root>

        Comment


          #49
          Originally posted by zwolfpack View Post
          I think this method should work for you -

          Include a file "chmod.sh" in your installer:
          Code:
          #/bin/sh
          chmod +x $(dirname $0)/*.exe
          Install it in your bin directory (.\bin\HarmonyHub)

          Run this during your plugin initialization, calling it as follows

          /bin/sh <hs3_root><hs3_root>/bin/HarmonyHub/chmod.sh

          Calling a script this way allows it to run even though its 'x' permission bits aren't set.</hs3_root></hs3_root>
          Good idea !!!!

          Don't need to use sudo in the script?
          Regards,

          Rien du Pre
          The Netherlands
          Using:
          Homeseer PRO latest HS4 BETA on a Raspberry
          Plugin's:
          RFXCOM, mcsMQTT, Z-Wave

          Comment


            #50
            Originally posted by Rien du Pre View Post
            Good idea !!!!

            Don't need to use sudo in the script?
            Thanks to the suggestion of Zwolfpack, this issue has been resolved. Credentials are now automatically set.

            This was a long term problem and finally solved :-)
            Last edited by Rien du Pre; March 25, 2018, 08:20 AM.
            Regards,

            Rien du Pre
            The Netherlands
            Using:
            Homeseer PRO latest HS4 BETA on a Raspberry
            Plugin's:
            RFXCOM, mcsMQTT, Z-Wave

            Comment

            Working...
            X