Announcement

Collapse
No announcement yet.

preferred naming convention for plugin subfolders

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

    preferred naming convention for plugin subfolders

    so my plugin ID is Insteon with a capital eye.

    do i use this name for my subfolder in the hs\html, html\images, and bin folders, or do i go all lower case?

    i know this doesn't matter on Windows but i had a lot of problems with linux in the past.

    With hs3 i found the homeseer subfolders (used mixed camel case) weren't consistent in the beginning and it cause me a lot of problems.

    even now when i debug in Chrome it separates Insteon from insteon in the page view navigator.
    Mark

    HS3 Pro 4.2.19.5
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
    Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

    #2
    I use proper casing and never had any issues.

    Why even bother trying lowercase?

    Click image for larger version

Name:	Screenshot 2021-11-23 105202.png
Views:	128
Size:	24.7 KB
ID:	1509543

    Comment


      #3
      do you support linux with your plugins?
      Mark

      HS3 Pro 4.2.19.5
      Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
      Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
      Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

      Comment


        #4
        Originally posted by mnsandler View Post
        do you support linux with your plugins?
        Yes

        Comment


          #5
          To create the plugin specific path I have helper:

          Click image for larger version

Name:	Screenshot 2021-11-23 135249.png
Views:	121
Size:	19.9 KB
ID:	1509575

          And Plugin ID I extract from the Namespace:

          Click image for larger version

Name:	Screenshot 2021-11-23 135433.png
Views:	111
Size:	9.0 KB
ID:	1509576

          Comment


            #6
            do you do this because the Updater using the install.txt doesn't build the folders correctly?
            Mark

            HS3 Pro 4.2.19.5
            Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
            Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
            Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

            Comment


              #7
              I actually generate html files in source code.
              And most AKWeather icons download at runtime.
              And AKGoogleCast downloads translated mp3 files.
              And AKHeatmiserNeo generates temperature charts.

              Comment


                #8
                And MakePluginPath returns the path to the folder for use in the plugin. CreateDirectory is "just-in-case".

                Comment

                Working...
                X