Announcement

Collapse
No announcement yet.

Web page builder for Homeseer 3 & Homeseer 4

Collapse
This topic is closed.
X
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    There is an error I see on these pages I do not see on the normal HS pages:
    Click image for larger version

Name:	image.jpg
Views:	144
Size:	10.0 KB
ID:	1591701

    Comment


      If I use Chrome (regret) it displays with the same issue, but the source also shows the issue:
      <td class='tablecelldevice' align='left' Valign='middle' width='160'>Family Room</td>
      <td style='width: 1px; padding-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px;'></td>
      <td class='tablecelldevice' align='left' Valign='middle' width=''>
      <span style='white-space:nowrap; vertical-align:middle;'><span style='white-space:nowrap; display:-moz-inline-box; display:inline-block; vertical-align:middle; '><img src='images/HomeSeer/status/Thermometer-70.png' height='32' ></span><span style='white-space:nowrap; display:-moz-inline-box; display:inline-block; vertical-align:middle; padding:3px;'>65.3 °F</span></span></td>
      <td style='width: 1px; padding-left:0px; padding-top:0px; padding-right:0px; padding-bottom:0px;'></td>
      <td class='tablecelldevice' Valign='middle' align='left'>
      Today 8:13:19</td>
      <tr height=1px>
      <tr height=1px>

      Comment


        That is a Homeseer stylesheet; nothing to do with Web builder.

        I was referring to my device viewer and documenter anyway...

        Try this. Rather than:

        [Device,244]

        Try

        Code:
        [Device,244] {replace, "°","&deg;"}
        Jon

        Comment


          Originally posted by jon00 View Post
          That is a Homeseer stylesheet; nothing to do with Web builder.

          I was referring to my device viewer and documenter anyway...

          Try this. Rather than:

          [Device,244]

          Try

          Code:
          [Device,244] {replace, "°","&deg;"}
          Ok, so this worked, and we are closer.
          Except this is not a solution that works for me as it is not only the degree symbol that fails, anything like this fails.
          I have weather reports as well as air quality that use arrows and such, they both fail:
          Click image for larger version

Name:	image.jpg
Views:	169
Size:	22.8 KB
ID:	1591710
          and I have no idea what they will display and no control over what they display.

          This was working before going to HS4...
          could the custom.css be the issue?
          I am so clueless when it comes to .css stuff

          Comment


            The issue is due to page encoding.

            See if this makes any difference.

            Under [Settings]

            Add/append

            HeadData = <meta charset='utf-8'>

            Then refresh the page.

            Are you on Linux or Windows?

            Jon

            Comment


              Originally posted by jon00 View Post
              The issue is due to page encoding.

              See if this makes any difference.

              Under [Settings]

              Add/append

              HeadData = <meta charset='utf-8'>

              Then refresh the page.

              Are you on Linux or Windows?
              I am on Linux.

              found it - it worked!!

              thanks a million, this was bugging the crap out of me, and pissing off the wife

              Comment


                Hi Jon,
                I just loaded today's HS4 Beta Release 4.2.17.2 (Windows 11) and it no longer runs Webpage Builder. I get only a blank web page. I get this error in the log. I checked to see that required files are still in the correct locations. The other HS4 pages work fine.

                Error in Main Block 2: System.InvalidCastException: Conversion from string "Error" to type 'Integer' is not valid. ---> System.FormatException: Input string was not in a correct format. at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDoub le(String Value, NumberFormatInfo NumberFormat) at Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger (String Value) --- End of inner exception stack trace --- at Microsoft.VisualBasic.CompilerServices.Symbols.Container.Inv okeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.Object LateGet(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateGe t(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack) at scriptcode3.VBWrapper.Main(Object MyData)

                I copied your default qv.ini and Buildpage.vb files into HS4 and they ran OK. So I thought the problem was in one of my files. I tracked this down to a problem in my qv.ini file. I had a duplicate entry for a pair of​ JSON entries:

                JSONRefresh2556on=/JSON?request=controldevicebylabel&ref=2556&label=On
                JSONRefresh2556off=/JSON?request=controldevicebylabel&ref=2556&label=Off​

                These pairs existed twice. When I deleted one pair, then everything worked again. I thought it was strange that the duplicate pair only threw the error after the upgrade to beta 4.2.17.2

                Maybe this will help others who encounter the same problem. Thanks for all you to!

                -Rick

                Comment


                  Jon,

                  I have three questions:
                  Can I have more than three columns under a section?
                  Instead of left, middle,right? (I am guessing no because of the labels)

                  I have two distinct .ini setups, the top section is the only difference, all of the columns and data are the same.
                  I tried to use appending to add a common .ini file that I could reference from each, but I could not get it to work.
                  What is the magic needed here?

                  lastly;
                  I have this line:
                  Code:
                  Column1Heading1=Current Conditions&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;Time to open Windows: [device,860]     [clock,1]
                  ​
                  which produces this:
                  Click image for larger version

Name:	image.jpg
Views:	139
Size:	20.5 KB
ID:	1592336
                  I cannot find a way to remove the ']' from the end of the clock, any ideas?
                  Is there a cleaner way to space this out?

                  thanks!

                  Scott

                  Comment


                    1) No, it is hard coded for 3 columns only.

                    2) In your first ini file, define your second ini file in the Appendini=

                    i.e. Appendini=qv1

                    In your second ini (example here qv1.ini), change Removelogobar=2

                    3) I think only one tag is allowed per column but it should work if you just use [clock,1

                    Jon

                    Comment


                      1> I thought this was the case, just wanted to confirm.

                      2> I think this function works differently than what I need.
                      I have tried a lot of combinations, and I get a blank screen a lot.

                      I am looking to only edit a single .ini to change the items displayed. Right now I edit two for the two different displays I use.

                      3> cool, this worked.

                      thanks,

                      Scott

                      Comment


                        Great. Glad you got it working.

                        This does not get much love these days. It is very old (since HS2) and I have moved all my efforts to HSTile which is infinitely flexible and gives dynamic updates without page refreshes.
                        Jon

                        Comment


                          Originally posted by jon00 View Post
                          Great. Glad you got it working.

                          This does not get much love these days. It is very old (since HS2) and I have moved all my efforts to HSTile which is infinitely flexible and gives dynamic updates without page refreshes.
                          I like it, as I use it for my iPads, but I never got the second .ini file thing working and am still stuck editing two separate .ini files if I add/remove an item.

                          Comment


                            I stil use this on some older iPads and I use multiple .ini files in iframes.
                            "if I have seen further [than others], it is by standing on the shoulders of giants." --Sir Isaac Newton (1675)

                            Comment

                            Working...
                            X