Announcement

Collapse
No announcement yet.

Jon00 HTML to Image Utility

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

    Hi Jon,

    Does this utility support the use of port numbers in the url? I tried it and doesn't seem to work for me (URL=192.168.1.100:81/sbradiodisplay-01.asp). It just returns the image below. I didn't see anything in the documentation that it does or doesn't support this.

    Thanks
    Al
    Attached Files
    Last edited by sparkman; May 20, 2014, 06:26 AM.
    HS 4.2.8.0: 2134 Devices 1252 Events
    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

    Comment


      Yes, it is supported. Try starting the URL with http://
      Jon

      Comment


        Thanks Jon, that worked.

        I've found so far that the HS3 version is not as stable as the HS2 version. In fact, I' ve turned off the HS3 version and running the screen grabs from HS2 and it's improved stability of the system significantly. In the debug log for the HS3 version, I get a lot of these:

        Code:
        5/23/2014 5:36:59 PM Error at Webgrab Subroutine Block 2 Thread was being aborted.
        5/23/2014 5:37:06 PM Error at Webgrab Subroutine Block 3 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 3 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:07 PM Error at Webgrab Subroutine Block 3 Thread was being aborted.
        5/23/2014 5:36:58 PM Error at Webgrab Subroutine Block 2 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 3 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:08 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:12 PM Error at Webgrab Subroutine Block 3 Thread was being aborted.
        5/23/2014 5:37:13 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:13 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:13 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:17 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:17 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:17 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:19 PM Error at Webgrab Subroutine Block 3 Thread was being aborted.
        5/23/2014 5:37:19 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:19 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:19 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        5/23/2014 5:37:21 PM Error at Webgrab Subroutine Block 1 A generic error occurred in GDI+.
        5/23/2014 5:37:27 PM Error at Webgrab Subroutine Block 4 Thread was being aborted.
        5/23/2014 5:37:27 PM Error at Webgrab Subroutine Block 5 Thread was being aborted.
        5/23/2014 5:37:27 PM Error at Webgrab Subroutine Block 1 Thread was being aborted.
        Any ideas as to what could be causing that? I run HS2 and HS3 on the same system. I have 3 events that run the image grab: one every minute, one every 2 minutes and one every 5 minutes. I've been using the same events under HS2 for a couple of years with no issues.

        Thanks
        Al
        HS 4.2.8.0: 2134 Devices 1252 Events
        Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

        Comment


          The difference is that I move the graphics processing to a separate exe as some people in the HS2 version were getting out of memory errors. Are you grabbing more than one image per event?
          Jon

          Comment


            Hi Jon,

            For the one that runs once per minute I grab one picture and two each for the others.

            Thanks
            Al
            HS 4.2.8.0: 2134 Devices 1252 Events
            Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

            Comment


              As a test, can you try configuring the events so that you only grab one image at a time?
              Jon

              Comment


                Hi Jon, will do and I'll let you know the results in a few days.

                Thanks
                Al
                HS 4.2.8.0: 2134 Devices 1252 Events
                Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                Comment


                  Jon00HTML2Image.exe and system freeze

                  Hello,

                  I am using your super plug in for 1 year for drawing around 30 graph of devices in HSTouch. The running machine is a WHS2011 running as a VM machine.
                  Part of the script I wrote:
                  hs.runex(
                  "Jon00HTML2Image.vben", "Main", "1")
                  hs.waitsecs(10)
                  hs.runex(
                  "Jon00HTML2Image.vben", "Main", "2")
                  hs.waitsecs(10)
                  ....
                  hs.runex("Jon00HTML2Image.vben", "Main", "32")
                  hs.waitsecs(10)
                  ' hs.runex("Jon00HTML2Image.vben", "Main", "1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+21+22+23 +24+25+26+27+28+29+30+31+32"
                  but the problem occur much early.

                  As I would like to have a better stable use of home automation . I found out that:
                  - wating 10s beetwen two run of Jon00HTML2Image.vben was uncorrect since I launch my script every 4 mn. So there should be 2 simulatenous execution of my script. (I just modify to wait only 5s)
                  - problem seems to occur when machine busy (as it is a VM, difficult to master)

                  I would appreciate to find a solution. It can be:
                  - solve the problem in your code
                  - find a way so that the process Jon00HTML2Image.exe autokill when an error occur assuming that next execution of script would be ok.
                  - launch a control Windows command to monitor or kill Jon00HTML2Image.exe processes (something like sudo ps axu |grep Jon00HTM*.exe |kill -9 and sorry for my approximative unix)

                  My problem is that I do not know how to do this in Windows nor in your code.

                  Of course any other ideas will be very wellcome

                  Best regards



                  Comment


                    Originally posted by jon00 View Post
                    As a test, can you try configuring the events so that you only grab one image at a time?

                    Hi Jon,

                    I recently moved this back to HS3 and it's been stable. I'm using your recurring event trigger tool to trigger the events and have not seen the same issue that I had earlier this year.

                    Thanks
                    Al
                    HS 4.2.8.0: 2134 Devices 1252 Events
                    Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                    Comment


                      Originally posted by philantier View Post
                      Hello,

                      I am using your super plug in for 1 year for drawing around 30 graph of devices in HSTouch. The running machine is a WHS2011 running as a VM machine.
                      Part of the script I wrote:
                      hs.runex(
                      "Jon00HTML2Image.vben", "Main", "1")
                      hs.waitsecs(10)
                      hs.runex(
                      "Jon00HTML2Image.vben", "Main", "2")
                      hs.waitsecs(10)
                      ....
                      hs.runex("Jon00HTML2Image.vben", "Main", "32")
                      hs.waitsecs(10)
                      ' hs.runex("Jon00HTML2Image.vben", "Main", "1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+21+22+23 +24+25+26+27+28+29+30+31+32"
                      but the problem occur much early.

                      As I would like to have a better stable use of home automation . I found out that:
                      - wating 10s beetwen two run of Jon00HTML2Image.vben was uncorrect since I launch my script every 4 mn. So there should be 2 simulatenous execution of my script. (I just modify to wait only 5s)
                      - problem seems to occur when machine busy (as it is a VM, difficult to master)

                      I would appreciate to find a solution. It can be:
                      - solve the problem in your code
                      - find a way so that the process Jon00HTML2Image.exe autokill when an error occur assuming that next execution of script would be ok.
                      - launch a control Windows command to monitor or kill Jon00HTML2Image.exe processes (something like sudo ps axu |grep Jon00HTM*.exe |kill -9 and sorry for my approximative unix)

                      My problem is that I do not know how to do this in Windows nor in your code.

                      Of course any other ideas will be very wellcome

                      Best regards



                      When I get a moment, I'll take a look at this.
                      Jon

                      Comment


                        Originally posted by sparkman View Post
                        Hi Jon,

                        I recently moved this back to HS3 and it's been stable. I'm using your recurring event trigger tool to trigger the events and have not seen the same issue that I had earlier this year.

                        Thanks
                        Al
                        Travis Hale continues my recurring event program as he found it more reliable than the HS3 event engine.... I'm not sure how this would affect the operation of this utility however.
                        Jon

                        Comment


                          Originally posted by jon00 View Post
                          Travis Hale continues my recurring event program as he found it more reliable than the HS3 event engine.... I'm not sure how this would affect the operation of this utility however.
                          Hi Jon,

                          I don't know if the two are related or not. Earlier this year the events for creating the images were triggered by the HS3 event engine and now with your utility, but a lot of other things have changed as well.

                          Cheers
                          Al
                          HS 4.2.8.0: 2134 Devices 1252 Events
                          Z-Wave 3.0.10.0: 133 Nodes on one Z-Net

                          Comment


                            Hi Jon,

                            I have the same problem of sparkman.I tried it and doesn't seem to work for me (URL=/http://192.168.50.129:81/bbarchart24h0.html).

                            my ini file is this:

                            [Capture1]
                            URL=http://192.168.50.129:81/bbarchart24h0.html
                            DeviceBGColor=
                            ImagePath=ultime24h.png
                            crop=
                            WBWidth=
                            WBHeight=
                            Delay=500

                            I tried to solve the problem by insert http:// and increasing the delay time up to 500, but it did not work.

                            can you help me?
                            Thanks
                            Attached Files

                            Comment


                              Try setting the width and height i.e.

                              WBWidth=1000
                              WBHeight=1000

                              Also check that the page displays correctly in IE on your Homeseer server
                              Last edited by jon00; July 21, 2015, 04:35 PM.
                              Jon

                              Comment


                                Putting Image in HS Touch

                                First of all- this works great! Donation on the way!

                                I should know how to do this, but do I get the image into HS Touch?
                                I am saving the images into a folder under HS3/html-
                                C:\Program Files (x86)\HomeSeer HS3\html\Captures

                                When I create a textbox in HSTouch and reference the image, HS Touch Designer copies the image to the HS Touch Graphics Folder.

                                Seems like this would be static and not update.

                                Thanks again!

                                DSteiNeuro
                                DSteiNeuro

                                HS3Pro

                                MSI Cubi Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz, 2201 Mhz, 2 Core(s), 4 Logical Processor(s) 16GB DDRl RAM

                                Enabled Plug-Ins
                                BLRussound, BLSpeech, HSTouch Server, JowiHue, MyQ, Nest, Rain8, Squeezebox, Ultra1Wire3, UltraGCIR3, Vista Alarm, X10,Z-Wave

                                Comment

                                Working...
                                X