Announcement

Collapse
No announcement yet.

Hourly Forecast form weather.com

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

    Hourly Forecast form weather.com

    They changed the darn site again.

    To fix the script, change the line:
    If InStr(line(i), "<TD><IMG height") > 0 And InStr(line(i - 1), "<TR bgColor") > 0 Then

    to

    If InStr(line(i), "<TD class=f4") > 0 And InStr(line(i - 1), "<TR>") > 0 Then

    that seems to get it working again.

    #2
    Why not switch the script to use the xml file? weather.com doesn't want people scraping their site, that is why they provide the xml for free.
    And once you are using the xml file you don't have to worry about the site changing and breaking the script.
    --
    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


      #3
      Jeff, or anybody. Please explain what is involved in setting up the XML weather. I have seen snippets of info on varous threads here, but nothing appears complete and concise. I signed up for a weather.com account yesterday. What now?

      Thanks!
      :-p

      Comment


        #4
        Pete:
        Look in the path c:/program files/homeseer/docs/weathercom_xml/weatherxml.doc

        There are complete and consise directions here.
        -Rupp
        sigpic

        Comment


          #5
          Thanks! I guess I forgot to mention that I had not yet installed WeatherXML and therefore did not know about this document. Just installed it now and will begin to setup.

          Comment

          Working...
          X