Announcement

Collapse
No announcement yet.

Solution to display Jon00Graphs on HSTouch

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

    Solution to display Jon00Graphs on HSTouch

    Hi,
    I made a script called DisplayGraphsJon00.vbs that creates a html of the graph in the devicestring of Jon00's Graphingstools.
    That html has the name Graph & devicecode.html

    You then can define a textelement in HST and in the txtfield you enter the reference for the webserver of HS and the html page.
    (something like http://adreswebserverortwebserver/Graphs40.html)

    The script you can alter to your liking.
    It's not parmed, but you can alter it easily.

    Maybe later I make a parmed one, or if you want, I am thankful then.

    PS I added html to auto update every 60 secs but it seems not to work, don't know why, in other situation in HST autorefreshing worked that way but with other webserver then HS. Refresh is done when you open and close the page.

    I found it, I set the refresh to 600 seconds, so 10 minutes. Adjust to 60 or conform update frequency of your devices, in the script htmlsettings.
    You could trigger the script within the same event as Jon00's updating of the devices.

    Happy scripting,
    Hammy
    Attached Files
    Last edited by Hammy; July 3, 2011, 11:50 AM. Reason: additional info+

    #2
    Very nice Hammy!
    - Pete

    Auto mator
    Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
    Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
    HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

    HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
    HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

    X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

    Comment


      #3
      Looks good!

      Originally posted by Hammy View Post
      PS I added html to auto update every 60 secs but it seems not to work
      I think you need to change the line:

      strBegin = strBegin & "<meta http-equiv=" & CHR(34) & "refresh" & CHR(34) & " content=" & CHR(34) & "600" & CHR(34) & ">"

      to:

      strBegin = strBegin & "<meta http-equiv=" & CHR(34) & "refresh" & CHR(34) & " content=" & CHR(34) & "60" & CHR(34) & ">"
      Jon

      Comment


        #4
        Originally posted by jon00 View Post
        Looks good!



        I think you need to change the line:

        strBegin = strBegin & "<meta http-equiv=" & CHR(34) & "refresh" & CHR(34) & " content=" & CHR(34) & "600" & CHR(34) & ">"

        to:

        strBegin = strBegin & "<meta http-equiv=" & CHR(34) & "refresh" & CHR(34) & " content=" & CHR(34) & "60" & CHR(34) & ">"
        Yep Jon00 I just found that out myself.
        Thanks anyway.

        Comment


          #5
          Another option can be found here
          Jon

          Comment

          Working...
          X