Announcement

Collapse
No announcement yet.

Jon00 HTML to Image Utility

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

    Originally posted by jon00 View Post
    what value did you enter for the tablewidth setting?
    I tried several different values, 650, 800, and 1000.
    Billy

    Comment


      Can you try it set to 1000 but also set the tablebackgroundcolor and see if it displays that correctly on the device advanced tab. I tried a large chart here and it seemed to capture OK.
      Jon

      Comment


        Sure, not a problem Jon.

        I set the following in the Jon00VDGraphingHS3.ini

        Code:
        TableWidth=1000
        TableBackGroundColor=Yellow
        This is a snapshot of the advanced tab for the device.
        Click image for larger version

Name:	hsdevice.jpg
Views:	1
Size:	41.9 KB
ID:	1192211

        This is the file that is produced using the Jon00HTML2ImageHS3
        Click image for larger version

Name:	capture03sumppump2.png
Views:	1
Size:	5.8 KB
ID:	1192212

        If you need me to post the INI files, let me know.

        Thanks for your help it is appreciated.
        Billy

        Comment


          Jon do you need any additional information on this? I can't seem to keep the output from wrapping?
          Billy

          Comment


            Yes, would you post the entire ini section used to produce your graph.
            Jon

            Comment


              Originally posted by jon00 View Post
              Yes, would you post the entire ini section used to produce your graph.
              Sure, no problem

              This is the section in the Jon00HTML2ImageHS3.ini file
              Code:
              [Capture3]
              URL=deviceref 2435
              DeviceBGColor=
              ImagePath=<hspath>\html\images\BJD\Jon00HTML2ImageHS3\capture03sumppump2.png
              crop=
              WBWidth=
              WBHeight=
              Delay=
              This is the section in the Jon00VDGraphingHS3.ini file
              Code:
              [Graph4]
              Title=Sump Pump #2
              Textbeforevalue=
              Textaftervalue=" Level"
              Units=
              Backgroundcolor=#b6bdc6
              Imagefile=Green.gif
              Samplesize=288
              Height=40
              Heightspacer=3
              Tooltips=1
              Maxvalue=4
              Minvalue=0
              Data=$DV:2153
              Dataoffset=
              Logging=0
              ShowCurrentValue=2
              ShowLowHighValues=1
              ShowAverageSessionValue=1
              DelayCount=1
              DivideValue=1
              MarkerHeight=40
              MarkerSetPoint=
              MarkerDuration=24
              MarkerImageFile=white.gif
              MarkerType=1
              StartTime=
              FinishTime=
              TimeImageFile=blue.gif
              Counter=1
              Zoom=2
              TableWidth=1000
              TableBackGroundColor=Yellow
              Range1Upper=1
              Range1Lower=0
              Range1ImageFile=blue.gif
              Range2Upper=2
              Range2Lower=1
              Range2ImageFile=green.gif
              Range3Upper=3
              Range3Lower=2
              Range3ImageFile=orange.gif
              Range4Upper=4
              Range4Lower=3
              Range4ImageFile=red.gif
              Let me know if you need anything else

              Thanks again for all you do, it is appreciated.
              Billy

              Comment


                Thanks, I've sent you an email with a new version to try.
                Jon

                Comment


                  Excellent, that was it Jon.

                  Thanks for the help, the version you sent works great.
                  Billy

                  Comment


                    I am trying to figure out a capture problem.
                    Thought I could fix it by editing a css file.

                    https://forums.homeseer.com/showthre...=95611&page=12

                    At post # 227

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

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

                    Comment


                      I don't really know why there is a difference. Have you tried adding a body entry to the css to set the background color to gray i.e. something like:

                      Code:
                      body		{
                      	background-color: #333333;
                      }
                      Jon

                      Comment


                        Thanks, Jon.
                        That didn't work. I'll keep looking.

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

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

                        Comment


                          Jon, should this plugin work in the Linux version of HS3? I'm running Mono 5.4.1.6.

                          I installed and configured it as you documented, but in my log I get a messages "Jon00HTML2ImageHS3.exe file not found". Is it possible it is looking to find it in a specific directory? I put it in the root directory with the rest of my plugin exe's. My HS3 root is "/usr/local/HomeSeer/"


                          Jan-07 11:38:45 AM Jon00_HTML2Image Jon00HTML2ImageHS3.exe file not found
                          Jan-07 11:38:45 AM Event Running script in background: /usr/local/HomeSeer/scripts/Jon00HTML2ImageHS3.vben("Main","1")
                          Jan-07 11:38:45 AM Event Event Trigger "Testing Jon00 Image converter"



                          -

                          Comment


                            No, this application is for Windows only. It was written before there was a HS3 version on Linux.
                            Jon

                            Comment


                              HI Jon, i am running your HTML to image script. Its great by the way !!)))

                              However, i keep getting errors. See error log text below. Any suggestions?

                              See the end of this message for details on invoking
                              just-in-time (JIT) debugging instead of this dialog box.

                              ************** Exception Text **************
                              System.Threading.ThreadAbortException: Thread was being aborted.
                              at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
                              at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntP tr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
                              at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
                              at System.Windows.Forms.Control.DefWndProc(Message& m)
                              at System.Windows.Forms.Control.WndProc(Message& m)
                              at System.Windows.Forms.WebBrowserBase.WndProc(Message& m)
                              at System.Windows.Forms.WebBrowser.WndProc(Message& m)
                              at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(M essage& m)
                              at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Mes sage& m)
                              at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


                              ************** Loaded Assemblies **************
                              mscorlib
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
                              ----------------------------------------
                              Jon00HTML2ImageHS3
                              Assembly Version: 1.0.0.0
                              Win32 Version: 1.0.0.0
                              CodeBase: file:///C:/Program%20Files/HomeSeer%20HS3/Jon00HTML2ImageHS3.exe
                              ----------------------------------------
                              Microsoft.VisualBasic
                              Assembly Version: 10.0.0.0
                              Win32 Version: 14.7.3062.0 built by: NET472REL1
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
                              ----------------------------------------
                              System
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
                              ----------------------------------------
                              System.Core
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3362.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
                              ----------------------------------------
                              System.Windows.Forms
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
                              ----------------------------------------
                              System.Drawing
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
                              ----------------------------------------
                              System.Configuration
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3324.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
                              ----------------------------------------
                              System.Xml
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
                              ----------------------------------------
                              System.Runtime.Remoting
                              Assembly Version: 4.0.0.0
                              Win32 Version: 4.7.3221.0 built by: NET472REL1LAST_C
                              CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
                              ----------------------------------------

                              ************** JIT Debugging **************
                              To enable just-in-time (JIT) debugging, the .config file for this
                              application or computer (machine.config) must have the
                              jitDebugging value set in the system.windows.forms section.
                              The application must also be compiled with debugging
                              enabled.

                              For example:

                              <configuration>
                              <system.windows.forms jitDebugging="true" />
                              </configuration>

                              When JIT debugging is enabled, any unhandled exception
                              will be sent to the JIT debugger registered on the computer
                              rather than be handled by this dialog box.


                              Comment


                                Not sure. Is there a file called Jon00HTML2ImageHS3Errorlog.txt in the HS3 root directory? If so does that provide any more info?
                                Jon

                                Comment

                                Working...
                                X