Announcement

Collapse
No announcement yet.

Ultraview Status Question

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

    Ultraview Status Question

    Quick question from a new user. I've been playing with the latest Ultaview status and have been able to change the various xsl files to put my devices into the different catagories. The problem is that they also stay in the Lamps and Modules section regardless of TYPE. Not sure if it is how I have my devices configured or not. Running HS 1.6. Any suggestions would be appreciated. Thanks.

    Frank

    #2
    Frank,

    I think you need to play with pulling out the devices by name or location. In my lights xsl file, I have the following lines of code:

    <xsl:sort select="LOCATION" order="ascending" />
    <xsl:if test="NAME = 'Front Lights' or NAME = 'Driveway Lights' or NAME = 'Hallway' or NAME = 'Lamp'">

    The if statment separates out only the devices I am looking to display based on location.

    This may have been explained elsewhere on the board, but I think the order of things goes something like:

    The ultra_view2_status.asp has sections that set the name of the xsl files...divSystemInfo for example. Here's the code within the file ultra_view2_status.txt to add new sections:

    set objDivElement = document.all.divSystemInfo
    Call LoadDiv("ultra_view2_status_sysinfo.xsl", objDivElement)

    set objDivElement = document.all.divWeather
    Call LoadDiv("ultra_view2_status_weather.xsl", objDivElement)

    set objDivElement = document.all.divLights
    Call LoadDiv("ultra_view2_status_lights.xsl", objDivElement)

    etc..

    Within each xsl file, use the code example above to display only what you want. Be careful editing the xsl files because keywords must be lower case. If you have an 'if' spelled as 'If' or 'select' as 'Select', the section will not be displayed.

    -Tom

    Visit my HomeSeer at http://68.55.67.82:81

    [This message was edited by Tom Kern on Tue, 13 May 2003 at 06:47 PM.]
    -Tom

    Visit Kernhome
    Kern Theater Gallery

    (User: guest / Pass: guest)

    Comment


      #3
      Tom,

      Thanks for the help. I've made a lot of progress and still learning about Homeseer Web design. Now in the process of trying to add new sections to the base display template. Not there yet, but the fun is in getting there. Thanks again.

      frank

      Comment


        #4
        That's cool, glad its coming along. Post a link when you are done so we can all check it out!

        -Tom

        Visit my HomeSeer at http://68.55.67.82:81 (New Guest Downloads)
        -Tom

        Visit Kernhome
        Kern Theater Gallery

        (User: guest / Pass: guest)

        Comment


          #5
          Done ... You mean you can finish this? Long way off so I'll post a link now. http://childress.ods.org/. The normal guest login for Homeseer. You will definitely recognize the color scheme. Lot's of experiments on the page so that is why there are duplicate sections. The Web cam page is just thrown together until I have time to set it up properly (think Rupps site). The weather page will be redone by the weekend, assuming I have some hobby time this week.

          Frank

          Comment


            #6
            Dear Frank and Tom,

            How did you cat the right Icon in Ultra View.
            I did try a lot, could not cat it work the right way.
            Can you maybe sent or post the scripts you used?

            Thanks in advance,

            Jan Slag

            Comment


              #7
              Frank,

              How did you get the 3-column showing on your UltraStatus page under category "Home Occupancy"? I have a sensor lock for each motion sensor and I would like to show just the lock icon next to each sensor rather than a new category.

              Your help is much appreciated.

              Simon

              Comment


                #8
                Hi htsource,

                Well it's a long story. I wanted to replicate the type of display Rupp uses on his site with Quickview ... but I have yet to work out the details of how to modify Ultraview Status to do it. So I added some code to the end of ultra_view2_status.asp. Just created the table and used the various Homeseer calls to populate the cells. I'll attach the modified file to the post, it's probably easier than trying to explain it.

                Frank
                Attached Files

                Comment


                  #9
                  Hi Frank,

                  Your asp page looks quite easy to implement, but do you know a way to only show the icon instead of the whole status text? I'm almost there

                  Thanks again for sharing the codes.

                  Simon

                  Comment


                    #10
                    Frank,

                    Everything looks great! Yes, the color scheme looks oddly familiar...glad you could use it. I would love to have some of the devices you do! Quick question if you don't mind, what do you use to determine if your xbox is "up" or "down" since it cannot be pinged? Is it based on an appliance module or controlled outlet?

                    -Tom

                    Visit my HomeSeer at http://68.55.67.82:81 (New Guest Downloads)
                    -Tom

                    Visit Kernhome
                    Kern Theater Gallery

                    (User: guest / Pass: guest)

                    Comment


                      #11
                      Tom, how did you get both the breaking news and recent news and traffic report to display on the ultraview status page?

                      Comment


                        #12
                        Bud,

                        I just saved the breaking news to a different device right before it is turned off. Here is how the code looks in the CNN script I use:

                        If hs.IsOff(virtualdevice) <> true Then
                        ' TBK 6.14.03 Added
                        hs.SetDeviceString "v11", "<a href=""http://www.cnn.com""><img src=" + newsicon + " border=0></a> " & " " & strEarlier, True
                        hs.setdevicelastchange "v11", now()
                        dbg "breaking news alert has ended, turning virtualdevice OFF"
                        hs.ExecX10 virtualdevice, "OFF"
                        dbg "resetting virtualdevice devicestring since there is no longer any breaking news"
                        hs.SetDeviceString virtualdevice, "", True
                        End If

                        Same thing with the traffic, just set an alternate device that you can pass through to UltraView Status. Here's the traffic code:

                        if used_incidents = 0 then
                        device_all_incidents = "<font color='blue'><font size='2'>" & " Traffic Alerts For " & title_info & "</font><br><font color='silver'>" & Date_Time & "<br><hr><b>" & "No Accidents to Report" & "<hr>"
                        hs.setDeviceString virtual_device_num, "<a href=""http://autos.msn.com/everyday/TrafficReport.aspx?zipcode=" & web_address_zip & "&src=CpEd""><img src='/images/tcone1.gif'border=0></a>" & device_all_incidents
                        ' TBK 06.02.03 Added code to set virtual device with number of accidents
                        hs.setDeviceString "v10", " Traffic Incidents: None"
                        else
                        hs.setDeviceString virtual_device_num, "<a href=""http://autos.msn.com/everyday/TrafficReport.aspx?zipcode=" & web_address_zip & "&src=CpEd""><img src='/images/tcone1.gif'border=0></a>" & device_all_incidents
                        hs.setDeviceString "v10", "<a href=""/stat""><img src='/images/merge1.gif'border=0></a>" & " Traffic Incidents: " & CStr(used_incidents)
                        End If


                        -Tom

                        Visit my HomeSeer at http://68.55.67.82:81 (New Guest Downloads!)
                        -Tom

                        Visit Kernhome
                        Kern Theater Gallery

                        (User: guest / Pass: guest)

                        Comment


                          #13
                          Cool I'll see if I can add this code...

                          Now if I could only get UV to stop displaying [virtual] next to all the virtual device names

                          Comment

                          Working...
                          X