Announcement

Collapse
No announcement yet.

Was GetAppPath function dropped?

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

    Was GetAppPath function dropped?

    If not, what is the method name name, if yes, can you add?
    Thanks,
    Dirk

    #2
    I was also searching for this function. It might have been missed. So +1
    -- Wim

    Plugins: JowiHue, RFXCOM, Sonos4, Jon00's Perfmon and Network monitor, EasyTrigger, Pushover 3P, rnbWeather, BLBackup, AK SmartDevice, Pushover, PHLocation, Zwave, GCalseer, SDJ-Health, Device History, BLGData

    1210 devices/features ---- 392 events ----- 40 scripts

    Comment


      #3
      I to require GetAppPath but can not find it? rjh
      Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
      X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
      Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
      Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
      Scripts =
      Various

      Comment


        #4
        This function is not really needed as .NET provides it for you, all it is:

        System.IO.Path.GetDirectoryName(System.AppDomain.CurrentDoma in.BaseDirectory)

        We are trying to trim down the API by removing things that .NET already provides.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          rjh
          How do you guarantee HS3 plugins will run on HS4 when functions are removed from the API?

          Comment


            #6
            Originally posted by rjh View Post
            This function is not really needed as .NET provides it for you, all it is:

            System.IO.Path.GetDirectoryName(System.AppDomain.CurrentDoma in.BaseDirectory)

            We are trying to trim down the API by removing things that .NET already provides.
            rjh This returns the path of the plugin .exe and the problem I have is if it is running remotely it returns the local path but GetAppPath returned the HS3.exe path on the device HS is running on.
            Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
            X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
            Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
            Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
            Scripts =
            Various

            Comment


              #7
              The entire HS3 API is there, we just created a new API over the old one that "hides" the old functions. In theory you can get all the old functions if you really wanted to. If a function is missing that you need, let us know and we will add it.

              So HS3 plugins get the exact same API they got before.

              Originally posted by kriz83 View Post
              rjh
              How do you guarantee HS3 plugins will run on HS4 when functions are removed from the API?
              💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

              Comment


                #8
                Just for my information, why do you need the path of HS if the plugin is running remotely?

                Originally posted by enigmatheatre View Post

                rjh This returns the path of the plugin .exe and the problem I have is if it is running remotely it returns the local path but GetAppPath returned the HS3.exe path on the device HS is running on.
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  Originally posted by rjh View Post
                  Just for my information, why do you need the path of HS if the plugin is running remotely?


                  I use it to place files in the HTML/Plugin Name directory so it can be downloaded by the user from the config page of the plugin. I also use this so the log file is placed on the HS system and not the remote one.

                  Greig.
                  Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
                  X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
                  Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
                  Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
                  Scripts =
                  Various

                  Comment


                    #10
                    Originally posted by rjh View Post
                    This function is not really needed as .NET provides it for you, all it is:

                    System.IO.Path.GetDirectoryName(System.AppDomain.CurrentDoma in.BaseDirectory)

                    We are trying to trim down the API by removing things that .NET already provides.
                    This works for me

                    Comment


                      #11
                      Ok, we are adding it back, it will be in the next update.

                      Originally posted by enigmatheatre View Post

                      I use it to place files in the HTML/Plugin Name directory so it can be downloaded by the user from the config page of the plugin. I also use this so the log file is placed on the HS system and not the remote one.

                      Greig.
                      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                      Comment


                        #12
                        Originally posted by rjh View Post
                        Ok, we are adding it back, it will be in the next update.


                        Great. Thank you for your time on this.
                        Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
                        X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
                        Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
                        Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
                        Scripts =
                        Various

                        Comment


                          #13
                          Originally posted by rjh View Post
                          System.IO.Path.GetDirectoryName(System.AppDomain.CurrentDoma in.BaseDirectory)
                          I'm using the following, is it the same?
                          Code:
                          Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)

                          Comment

                          Working...
                          X