Announcement

Collapse
No announcement yet.

Change Device Icons

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

    Change Device Icons

    Is there a way to assign a new icon to a normal X-10 device instead of a lightbulb?

    #2
    Sure but it depends on how you are controlling this light. If you control it using an event then in that event you can add to the script speech tab, script to run field something like:
    &hs.SetDeviceString "F17", "<font color='#E4FC42'><img src='blank.gif'></font> " & " Desired Text Here"
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Originally posted by Rupp
      Sure but it depends on how you are controlling this light. If you control it using an event then in that event you can add to the script speech tab, script to run field something like:
      &hs.SetDeviceString "F17", " " & " Desired Text Here"
      The &hs..... is that actually in the script window or so I need to put it in a txt? Also, for the icon, is that just the file name/location, e.g. c:/program files/homseer......?

      Comment


        #4
        Sorry MeSteve,
        The text was rendered as a dead image is should show
        PHP Code:
        &hs.SetDeviceString "F17""<font color='#E4FC42'><img src='blank.gif'></font> " " Desired Text Here" 
        and yes this goes in the text box not in a text file. Any time you add code in the textbox you need to preceed it with the &
        Attached Files
        Last edited by Rupp; November 15, 2004, 08:30 AM.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          What would I put inside the brackets? Sorry all the Q's, but this is my first venture into the writting code way of thinking.

          Comment


            #6
            Which brackets?
            💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

            Comment


              #7
              OK, I've been at the computer too long, last time I looked all your last reply said was

              "Sorry MeSteve,
              The text was rendered as a dead image is should show
              [code]"

              but of course now it shows up

              Comment


                #8
                Sorry,
                I was typing in the rely and accidentally hit submit.
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  Got it to change the status text, but no luck on the icon. Does it have to be a .gif? Do I need the whole file path or just the path from the hs folder?

                  Comment


                    #10
                    Looks like this
                    Attached Files

                    Comment


                      #11
                      meSteve,
                      The GUI's icon can not be changed only the web interface. Look at that device in the web interface.
                      💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                      Comment


                        #12
                        That makes all the diference in the world!!! Thanks, now how do I get it back to normal on the GUI

                        Comment


                          #13
                          &hs.setdeviceString "a1",clear
                          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                          Comment


                            #14
                            OK, beating the dead horse one more time. I can't get the background of my .gif to apear transparent. It is transparent in the preview window down the left side of the windows folder view. Also, I tried adjusting the background color of the .tablecellcustom on the style sheet to match the bg color of the .gif but no luck.

                            Comment


                              #15
                              MeSteve - Your icons are probally not transparent but have a white background, you will have to create your icons (gif's) with a transparent background, I use Paint Shop Pro 7, below are instructions.

                              1. Open the gif in PSP
                              2. Zoom the image a bit so you can see what you are doing
                              3. Go to colours, increase colour depth, choose 16 million colours
                              4. Select the background within the image, the easiest way to do this is using the 'magic wand' tool on the left hand side, then select an area of the background, if this does not select the whole background hold the 'shift' key and select the bits missed.
                              5. Select the Flood Fill tool (left hand side (looks like a bucket)), choose a colour from the colour palette (top right), I always choose a bright green.
                              6. Click on the background you now have selected and this should flood fill with the colour you choose.
                              7. Go to colours, Set Palette Transparency, I only ever click 'ok' on the pop up window and do not change the defaults.
                              8. On the next pop up choose 'Set the transparency value to palette entry' bottom radio button.
                              9. Move your mouse over your image and click somewhere on the background colour (green in my case), then click OK.
                              10. Save the image as a .gif.

                              You now have an icon/image with a transparent background. You may have to touch up some of the edges of the image with the paint brush and your choosen background colour as the 'wand' tool may not select all of the background.

                              If you want to see the effects of your transparency without having to load in your web page, within PSP go to colour, view palette transparency, I use this mode to touch up the edges as I can see the effects straight away, if I don't like what I have done then it's just a quick ctrl Z to undo.

                              If you are having troubles post the images here, and I'll see what I can do.

                              My appologies if I'm teaching my granny to suck eggs.

                              Lance
                              Lance

                              Comment

                              Working...
                              X