Announcement

Collapse
No announcement yet.

Jon00 Homeseer 2 web page (Quick view) builder discussion

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

    #46
    Straight from the ini file-Column2Section2-1Left=Homeseer version:
    Column2Section2-1Right=BPVar01

    Column2Section2-2Left=Homeseer uptime:
    Column2Section2-2Right=BPVar02

    Column2Section2-3Left=Web page views:
    Column2Section2-3Right=BPVar03


    Thanx
    Tim
    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

    Comment


      #47
      Just found this error--
      PHP Code:
      1/14/2007 12:19:32 PM ~!~Error~!~Script compile error'GetLastRemoteIP' is not a member of 'Scheduler.hsapplication'.on line 67
      1
      /14/2007 12:19:32 PM ~!~SCR~!~Option Strict Offimports Schedulerimports SystemPublic Module scriptcode4#Region "Automatically generated code, do not modify"'Automatically generated code, do not modify'Event Sources Begin    <System.ContextStaticAttribute()> Public WithEvents hs As Scheduler.hsapplication    <System.ContextStaticAttribute()> Public WithEvents hsp As scheduler.hsp    <System.ContextStaticAttribute()> Public WithEvents hssystem As scheduler.phone0'Event Sources End'End of automatically generated code#End Regionsub Main(parm as object)'****** Jon00 Homeseer 2 Web page builder *****''Supplementary script to work with Buildpage.aspx''Please see the documentation that comes With the package.''Version: 1.02'Date: 14th January 2007''Written by Jon00 (Jon Simmons jon00@btinternet.com )''Always check For the latest version at http://www.jon00.me.uk/hs.html''Feel free to make suggestions/comments to the Homeseer forum and/or jon00@btinternet.com''Enjoy - Remember, Please give credit when credits due!Dim Command As StringDim Extra1 As StringDim HouseCode As StringDim I As IntegerDim P As ObjectDim Pi As ObjectDim s As StringDim StrVar As StringFor I=1 to 99hs.CreateVar ("BPVar" & I)next'Variable 1 - Homeseer versionstrVar=hs.versionhs.SaveVar ("BPVar1",strVar)'Variable 2 - Homeseer uptimestrVar=hs.SystemUptime()hs.SaveVar ("BPVar2",strVar)'Variable 3 - Web page viewsstrVar=hs.WEBStatsPageViews()hs.SaveVar ("BPVar3",strVar)'Variable 4 - Last remote IP AddressstrVar=hs.GetLastRemoteIP()hs.SaveVar ("BPVar4",strVar)'Variable 5 - Web logged in userstrVar=hs.WEBLoggedInUser()hs.SaveVar ("BPVar5",strVar)'Variable 6 - Sunrise TimestrVar=hs.Sunrise()hs.SaveVar ("BPVar6",strVar)'Variable 7 - Sunset TimestrVar=hs.Sunset()hs.SaveVar ("BPVar7",strVar)'Variable 8 - Local Time nowstrVar=Timeofday()hs.SaveVar ("BPVar8",strVar)'Variable 9 - Local Date nowstrVar=Today()hs.SaveVar ("BPVar9",strVar)'Variable 10 - Homeseer phone InterfacestrVar=hsp.linestatus(1)if strVar = "0" then     strVar = "Idle"else    strVar = "Busy"end ifhs.SaveVar ("BPVar10",strVar)'Variable 11 - CM11A/CM12U StatusstrVar=hs.X10InterfaceStatusif strVar = "0" then     strVar = "Stable"else    strVar = "Alert"end ifhs.SaveVar ("BPVar11",strVar)'Variable 12 - Last X10strVar=hs.LastX10Housecode=hs.stringitem(strVar,2,";")Command=hs.stringitem(strVar,3,";")Extra1=hs.stringitem(strVar,4,";")Select Case CommandCase 0StrVar=HouseCode & " (All Units Off)"Case 1StrVar=HouseCode & " (All Lights On)"Case 2StrVar=HouseCode & " (On)"Case 3StrVar=HouseCode & " (Off)"Case 4StrVar=HouseCode & " (Dim: " & Extra1 & ")"hs.SaveVar ("BPVar11",strVar)Case 5StrVar=HouseCode & " (Bright: " & Extra1 & ")"hs.SaveVar ("BPVar11",strVar)Case 6StrVar=HouseCode & " (All Lights Off)"Case 7StrVar=HouseCode & " (Extended)"Case 8StrVar=HouseCode & " (Hail Request)"Case 9StrVar=HouseCode & " (Hail Ack)"Case 10StrVar=HouseCode & " (Preset Dim)"Case 11StrVar=HouseCode & " (Ex Data Xfer)"Case 12StrVar=HouseCode & " (Status On)"Case 13StrVar=HouseCode & " (Status Off)"Case 14StrVar=HouseCode & " (Status Request)"Case 15StrVar=HouseCode & " (Dim To Off)"Case elseStrVar="Unknown"End selecths.SaveVar ("BPVar12",strVar)'Variable 13 - LAN IP AddressstrVar=hs.LanIPhs.SaveVar ("BPVar13",strVar)'Variable 14 - WAN IP AddressstrVar=hs.WANIPhs.SaveVar ("BPVar14",strVar)'Variable 15 - Homeseer ThreadsstrVar=hs.HSThreadshs.SaveVar ("BPVar15",strVar)'Variable 16 - Homeseer Memory UsedstrVar=hs.HSMemoryUsedhs.SaveVar ("BPVar16",strVar)'Variable 17 - Homeseer Scripts runningstrVar=hs.ScriptsRunningstrvar=replace(strVar,",",", ") hs.SaveVar ("BPVar17",strVar)'Variable 18 - Operating System VersionstrVar=hs.GetOSVersionhs.SaveVar ("BPVar18",strVar)'Variable 19 - Is Licenced?If hs.IsLicensed then    strVar="HomeSeer is licensed"else     strVar="This copy of HomeSeer is not currently licensed"end ifhs.SaveVar ("BPVar19",strVar)'Variable 20 - Plugin countpi = hs.GetPluginsEx  hs.SaveVar ("BPVar20",pi.count)'Variable 21 - Plugin ListstrVar=""For Each p in pi    If Trim (p.name)<>"" then StrVar = StrVar & p.Name & ", "Next StrVar=Replace(StrVar,p.Name & ", ",p.Name)hs.SaveVar ("BPVar21",strVar)'******* User defined here *****'Variable 51 - FreestrVar=""hs.SaveVar ("BPVar51",strVar)'Variable 52 - FreestrVar=""hs.SaveVar ("BPVar52",strVar)'Variable 53 - FreestrVar=""hs.SaveVar ("BPVar53",strVar)'Variable 54 - FreestrVar=""hs.SaveVar ("BPVar54",strVar)'Variable 55 - FreestrVar=""hs.SaveVar ("BPVar55",strVar)End subEnd Module 
      Thanx
      Tim
      FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

      HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

      Comment


        #48
        Tim,

        What version of Homeseer are you running?

        Also, try the ini file that comes with the package.
        Jon

        Comment


          #49
          2.1.100

          Tim
          FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

          HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

          Comment


            #50
            I'm on 2.1.171.0

            and... no errors...

            Column1Section7-1Left=Homeseer Version
            Column1Section7-1Right=BPVar01

            DJ
            ---------------------------------------------------http://weather.penicuik.org

            Comment


              #51
              EDIT: Just noticed that this may be a RIGHT option only - am I correct!?!?


              Quickie for Jon....

              The use of BPVarXX inline with description text does not seem to work for me... just noticed...

              It just displays the BPVarXX where the variable is expected...

              The BPVarXX variables work elsewhere as values for the right column, just not in line with the description text in the left. It acts the same if I only have the variable name and no text...

              No big deal but was a nice option...

              DJ
              ---------------------------------------------------http://weather.penicuik.org

              Comment


                #52
                Tim,

                Run the script buildpage.vb on its own.

                If it errors in the log, it's will be to do with the version of Homeseer you are running and you will need to upgrade.
                Jon

                Comment


                  #53
                  Made a manual event and it did error--1/14/2007 1:28:35 PM - Error - Script compile error: 'GetLastRemoteIP' is not a member of 'Scheduler.hsapplication'.on line 67

                  Thanx
                  Tim
                  FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                  HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                  Comment


                    #54
                    Originally posted by djblack View Post
                    EDIT: Just noticed that this may be a RIGHT option only - am I correct!?!?


                    Quickie for Jon....

                    The use of BPVarXX inline with description text does not seem to work for me... just noticed...

                    It just displays the BPVarXX where the variable is expected...

                    The BPVarXX variables work elsewhere as values for the right column, just not in line with the description text in the left. It acts the same if I only have the variable name and no text...

                    No big deal but was a nice option...

                    DJ
                    You can only have text in the left column - but you can remove the left column completely by setting the ColumnXSectionXWidthLeft to 0. This then leaves the right column which takes up the full width.
                    Jon

                    Comment


                      #55
                      Originally posted by fungun View Post
                      Made a manual event and it did error--1/14/2007 1:28:35 PM - Error - Script compile error: 'GetLastRemoteIP' is not a member of 'Scheduler.hsapplication'.on line 67

                      Thanx
                      Tim
                      If you don't want to upgrade and use that command, you can just rem it out of the script:

                      Change:

                      strVar=hs.GetLastRemoteIP()

                      to

                      'strVar=hs.GetLastRemoteIP()
                      Jon

                      Comment


                        #56
                        Went up to 2.1.104 Still get the same error.
                        Oh well.
                        Here are all the things I had to rem out to make it work-

                        1/14/2007 1:49:24 PM - Error - Script compile error: 'GetLastRemoteIP' is not a member of 'Scheduler.hsapplication'.on line 67

                        1/14/2007 1:53:44 PM - Error - Script compile error: 'LanIP' is not a member of 'Scheduler.hsapplication'.on line 176

                        1/14/2007 1:56:22 PM - Error - Script compile error: 'HSThreads' is not a member of 'Scheduler.hsapplication'.on line 188

                        1/14/2007 1:57:07 PM - Error - Script compile error: 'HSMemoryUsed' is not a member of 'Scheduler.hsapplication'.on line 194

                        1/14/2007 1:57:48 PM - Error - Error in LINEStatus: Value cannot be null.Parameter name: Argument 'Array' is Nothing.

                        Except that last one about LINEStatus, don't know what that means.

                        Thanx
                        Tim
                        FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                        HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                        Comment


                          #57
                          Tim,

                          So many additions/changes have been made since 104 including all the new scripting commands I am using. You really need to upgrade to the release candidates:

                          http://board.homeseer.com/showthread.php?t=118514
                          Jon

                          Comment


                            #58
                            Originally posted by jon00 View Post
                            You can only have text in the left column - but you can remove the left column completely by setting the ColumnXSectionXWidthLeft to 0. This then leaves the right column which takes up the full width.

                            Thanks for that quick reply - I wanted to put a time in with the "Heading" text which does not have a left or right...

                            No worries, a small point in a great piece of work!

                            DJ
                            ---------------------------------------------------http://weather.penicuik.org

                            Comment


                              #59
                              OK,

                              I've added it for you to try. You can now add variables to the heading, Left or right columns Just replace buildpage.aspx with the attached.

                              Edit - attachment removed - now included in V1.03
                              Last edited by jon00; January 16, 2007, 01:43 PM.
                              Jon

                              Comment


                                #60
                                Jon, it's work GREAT! Thanks for the program.

                                Terry

                                Comment

                                Working...
                                X