Announcement

Collapse
No announcement yet.

Upload Custom Status graphics

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

    Upload Custom Status graphics

    I have identified the following resources:
    https://board.homeseer.com/showthread.php?t=183899
    https://board.homeseer.com/showthread.php?t=173934

    I understand how to manually upload an image to use as a status graphic, but I have seen plugins which include their own right in the plugin.

    Any idea how?

    #2
    So... here is the answer to my own question...

    In Visual Studio you can add "resources" to the project file (to include images). The are embedded in the exe.

    In the plugin initialization you simply write the resources to a file.. Ensure the folder exists first.

    In my case it looked like this:
    Code:
    Dim PathToApp As String = Environment.CurrentDirectory & "/html/images/[MY CUSTOM FOLDER]/"
            System.IO.Directory.CreateDirectory(PathToApp) 'This creates the folder (if it already exists, no error is thrown)
            My.Resources.RX.Save(PathToApp & "RX.png")
            My.Resources.TX.Save(PathToApp & "TX.png")
            My.Resources.switch.Save(PathToApp & "switch.png")

    Comment


      #3
      You can also include them in the installation zip file and include a reference to them in the install.txt file.

      Cheers
      Al
      HS 4.2.8.0: 2134 Devices 1252 Events
      Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

      Comment


        #4
        ^^^Al's method is what I use and it's much easier to control/maintain...
        HS4Pro on a Raspberry Pi4
        54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
        Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

        HSTouch Clients: 1 Android

        Comment


          #5
          How do you deploy the "zip" installer during debugging on a Hometroller Zee S2?
          Just upload to the root the same as the exe?

          If so, is there a good reference for the installer file? I didn't see much in the SDK about it.

          Comment


            #6
            http://www.homeseer.com/support/home...ur_package.htm
            http://www.homeseer.com/support/home..._structure.htm
            https://forums.homeseer.com/showthread.php?t=162479
            HS 4.2.8.0: 2134 Devices 1252 Events
            Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

            Comment

            Working...
            X