Announcement

Collapse
No announcement yet.

hs.GetURL not working in ASP

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

    hs.GetURL not working in ASP

    The hs.GetURL works great in scripts. But in ASP pages such as Weather_MSNBC.asp or JohnWPB's new WeatherAudry2.asp, I get script errors in the displayed HTML page. Adding a hs.WriteLog to the asp page shows the length of the returned hs.GetURL to be zero. I can confirm this by seeing no url_temp files added to the HS temp directory. Every now and then, maybe one in 50 tries, the asp pages do display.

    Does anyone have ideas how I could debug this further? Anyone else experiencing this prblem?

    I did fire up an old machine running HS v1.6.119 and these pages run fine, every time. But on the other machine running v1.6.200, rarely does it work.

    #2
    d-smes,
    Have you tried the HS.GetURLIE? Many have reported better success using this function.
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    Comment


      #3
      Good idea Rupp. I'll try that tonight.

      Comment


        #4
        I guess I'll need to do a little research as to why hs.GetURLIE didn't work unless someone has a quick pointer for me. Here is the error I get:
        Script error: Wrong number of arguments or invalid property assignment: 'hs.GetUrlIE'
        grabline = hs.GetUrlIE(site,page,false,80)

        Comment


          #5
          GetURLIE only has 2 params.

          <pre class="ip-ubbcode-code-pre">
          strPage = hs.GetURLIE("http://www.somedomain.com/somepage.htm",FALSE)
          </pre>
          --
          Jeff Farmer
          HS 3, HSPhone
          My HS3 Plugins: CFHSExtras, Random, Restart, Tracker, WeatherXML, PanaBluRay
          Other Plugins In Use: APCUPSD, BLOnkyo, Device History, EasyTrigger, HSTouch Server, PHLocation2, Pushover, RFXCom, UltraGCIR3, UltraMon3, UltraPioneerAVR3, X10, Z-Wave

          Hardware: GoControl Irrigation Controler, Schlage Lever Lock, Schlage Deadbolt, Way2Call Hi-Phone, RFXCom RFXrec433 Receiver, WGL 800, TI-103, Z-Net, Pioneer 1120, Pioneer 1021, Pioneer LX302, Panasonic BDT-110, Panasonic BDT-210 x2

          Comment


            #6
            Thanks. Things seem to work now! I'll try it awhile and see if it consistently works.

            Comment

            Working...
            X