Announcement

Collapse
No announcement yet.

Icons not correct

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

    Icons not correct

    I have looked for an answer to this but cannot seem to find anything.

    I have ran the configuration and when I place the device and tell the script what image to use, It shows on the configuration correctly however when I try to use the .asp page I get red x for everthing but the lights. Do I need to define my images elsewhere? What about the off images. Where do I input those?

    I know these are some basic questions but I have been poring over instructions and posts for this plug in for days and can't find the answers
    Kirk

    http://cleverhouseautomation.ca
    http://southcoastwebsitedesign.ca

    #2
    Kirk,
    It's been a while but I believe they need to be in the HTML directory. Try placing one of the redX images in the HTML directory and see if that fixes it.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Folder did not matter

      I changed them to the HTML folder and I still get the red x's
      Kirk

      http://cleverhouseautomation.ca
      http://southcoastwebsitedesign.ca

      Comment


        #4
        Kirk,
        Give me an example of what's not working.
        💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

        Comment


          #5
          Icon filenames are generally held in the device string. UltraView strips out HTML code from device strings, so you end up with just the filename and no path. For example, a device string might be img src="/images/webviews.gif". UltraView strips this down to webviews.gif and so you get the red X.

          As Rupp suggests, you can put all your icons in the html folder, but then you might actually need to keep two copies - one in html and one in images so that the other (non-UltraView) HS pages work too.

          Another solution is to edit the include\ultra_view2_xml.inc file. Look at the GetDeviceData() function. There is a series of Select Case statements that can modify the icons based on type and name. For example, the following inserts images/DooMotion/ to the front of device strings of the type MS14A (Hawkeye II) and Occupancy so that UltraView can find the corresponding icons.

          Code:
          select case strDeviceType
          	case "MS14A (Hawkeye II)", "Occupancy"
          		if strDeviceString = "" then
          			strDeviceString = "Unknown"
          			strDeviceIcon = "unknown.gif"
          		else
          			strDeviceIcon = "images/DooMotion/" & BuildIcon(strDeviceString)
          		end if
          end select

          Comment


            #6
            This is what I did

            Ok I did this:

            <code>
            case "DooNetwork Plugin Device"
            if strDeviceString = "" then
            strDeviceString = "Unknown"
            strDeviceIcon = "unknown.gif"
            else
            strDeviceIcon = "images/" & BuildIcon(strDeviceString)
            End If
            </code>

            However I still get the red x with all of the proper info about my computers. IP, uptime

            My images are in both the html folder and HTML/images folder
            Kirk

            http://cleverhouseautomation.ca
            http://southcoastwebsitedesign.ca

            Comment


              #7
              What path is given for the rex X icon when you right-click on it an select Properties?

              Comment


                #8
                Kirk,
                This only way its going to automatically pick them up is if the device string matches the icon name as Pete has iterated. So for example if your device string is on line you need a gif named online.gif if your device string is ChristmasTreeOn then you need a gif named ChristmasTreeOn.gif, etc.
                💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                Comment


                  #9
                  ok, but

                  I thought by adding the doonetwork select case that I can change the icon it uses based on the plugin.

                  For example my computers in doonetwork use the pc-on.gif. is this not what the select case should also use then. Th path that the red x has is online.gif. where is that coming from?
                  Kirk

                  http://cleverhouseautomation.ca
                  http://southcoastwebsitedesign.ca

                  Comment


                    #10
                    The online.gif is coming from the device string. I'm not sure how the device string is set in the case of the DooNetwork plugin. The easy solution is to rename your icon to online.gif instead of pc-on.gif. That should "doo" it.

                    Comment


                      #11
                      that is what I thought.

                      Upon further inspection (because it did not work), I see that the path of the red x is actually something like this. http://192.168.1.111:93/images/online[192.168.1.110).gif

                      the IP address that is in this is that of the computer it is representing. not the HS machine. the HS machine is 111.
                      Kirk

                      http://cleverhouseautomation.ca
                      http://southcoastwebsitedesign.ca

                      Comment


                        #12
                        Just saw this other thread that you have seen too - http://board.homeseer.com/showthread.php?t=85797. This is a really good solution. You still have to name your icons per the device string. The only drawback I've found so far is that it gets rid of the The xxx located in the yyy has been in the zzz state for over nnn minutes. tooltip. That's not too bad considering that this method doesn't require updating of the include\ultra_view2_xml.inc file everytime you add a new device type.

                        Comment


                          #13
                          Kirk,
                          Unfortunately you will need to name you icon online[192.168.1.110).gif to get it to work.
                          💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

                          Comment


                            #14
                            I see

                            So I take it that the doonetwork plugin does that naming then.

                            Funny, why when I ran the configurator for ultraview did I input all of the icons I wanted to use, if it does ot actually use them? I am not not complaining, I am just trying to understand this script.
                            Kirk

                            http://cleverhouseautomation.ca
                            http://southcoastwebsitedesign.ca

                            Comment


                              #15
                              Originally posted by Rupp
                              Unfortunately you will need to name you icon online[192.168.1.110).gif to get it to work.
                              Not so sure... I have a device where the device string is &lt;img src=""/images/guest.gif""&gt; Logged In: 192.168.1.1. I used the method mentioned above and the icon displays correctly with the text next to it. This in UltraView Status. I'm unclear... Are we talking about UltraView Status or UltraView (floorplan)???

                              Comment

                              Working...
                              X