Announcement

Collapse
No announcement yet.

Anyine fixing the original weather_report2.txt file?

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

    Anyine fixing the original weather_report2.txt file?

    It appears that the weather chanel has done it agin and changed the format of the page.

    -Rupp
    💁‍♂️ Support & Customer Service 🙋‍♂️ Sales Questions 🛒 Shop HomeSeer Products

    #2
    I lost my conditions report and fixed it by doing the following: (my apologies to Stein, Hunter, etal who have perfected this script, my method may be clunky)

    Go to the sub Condition() section where you see the following lines:

    position9 = Instr ( s, Webpage, ";F")

    Playstring0= ""
    Playstring0 = Mid ( Webpage, position9 -75,25 )
    Playstring0 = Replace (Playstring0, ";", "",1,-1,1)
    Playstring0 = Replace (Playstring0, chr(9), "",1,-1,1)
    Playstring0 = Replace (Playstring0, chr(10), "",1,-1,1)
    Playstring0 = Replace (Playstring0, chr(13), "",1,-1,1)
    Playstring0 = trim(Playstring0)

    I changed them to look like this:

    position9 = Instr ( s, Webpage, ";F")
    Playstring0= ""
    condition0= Instr ( s, Webpage, "Feels Like")
    Playstring0 = Mid ( Webpage, condition0 -60,25 )
    Playstring0 = Replace (Playstring0, ";", "",1,-1,1)
    Playstring0 = Replace (Playstring0, chr(9), "",1,-1,1)
    Playstring0 = Replace (Playstring0, chr(10), "",1,-1,1)
    Playstring0 = Replace (Playstring0, chr(13), "",1,-1,1)
    Playstring0 = trim(Playstring0)

    There is probably a better way, but now the script works for me.

    Good luck.

    Comment


      #3
      Rupp,

      Looks like there has been a major overhaul to the Weather.com page. I'm going to work on fixing it in the WeatherMan script. It is really just a more recent version of weather_report2 that uses HS .ini support and adds a bunch of features.

      Looks like I might have some work ahead to get this working.
      Mike

      Comment


        #4
        I rewrote the information parsing using a much better method than prior. Should be stable even with weather.com changes.

        I have passed the code over to Mike so that he can update WeatherMan.

        I probably will retire weather2.txt unless there is a big demand to keep it going. WeatherMan is an improved version of weather2.txt and should be very hard to switch over, especially with hs.ini support.

        My Configuration is here
        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