Announcement

Collapse
No announcement yet.

[VB.NET] my.Alert

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

    #76
    Give me the URL details again and what you are trying to parse and I will take a look tomorrow.
    Jon

    Comment


      #77
      PHP Code:
      text page

      https
      ://waterservices.usgs.gov/nwis/iv/?format=rdb&sites=06604200&parameterCd=00060,00065,00010&siteType=LK&siteStatus=all


      XML format

      https
      ://waterservices.usgs.gov/nwis/iv/?format=waterml,2.0&sites=06604200&parameterCd=00060,00065,00010&siteType=LK&siteStatus=all




      To Parse


      <wml2:MeasurementTVP><wml2:time>2017-01-05T12:45:00-06:00</wml2:time><wml2:value>1.6</wml2:value><wml2:metadata><wml2:TVPMeasurementMetadata/>



      <
      wml2:MeasurementTVP><wml2:time>2017-01-05T12:45:00-06:00</wml2:time><wml2:value>4.51</wml2:value><wml2:metadata><wml2:TVPMeasurementMetadata/> 
      I need one of the "time", then I need the "1.6" and the "4.51" values.
      Thank you for trying.

      Tim
      FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

      HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

      Comment


        #78
        Seems to work fine:

        Obviously the values have changed since last night.
        Attached Files
        Jon

        Comment


          #79
          Thank you for trying.
          I am a bit puzzled as to why your script works and the "my.Alert" script doesn't.
          Could it be, ( I thought about this last night), that my HS2 is still running on Win XP and so my Internet Explorer is too old for their website update.
          I ask because I browse those sites using Firefox but I'm sure HS is using IE to scrape it.

          Thanks,
          Tim
          FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

          HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

          Comment


            #80
            Well, that's it. I tried to open those links with IE on the HS2 pc and the page can not be displayed.
            Guess I'll have to wait till I get a new PC.

            Tim
            FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

            HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

            Comment


              #81
              Originally posted by fungun View Post
              Well, that's it. I tried to open those links with IE on the HS2 pc and the page can not be displayed.
              Guess I'll have to wait till I get a new PC.

              Tim
              Just tried it here on an old XP PC and get the same result.
              Jon

              Comment


                #82
                I just stumbled across this and was looking to download it, but it appears the link is broken...

                Comment


                  #83
                  Originally posted by waynehead99 View Post
                  I just stumbled across this and was looking to download it, but it appears the link is broken...
                  FYI, it is a HS2 script. Is that what you want?

                  The equivalent in HS3 is either Web-scraper plugin in the updater or my DataScraper script on my site.
                  Jon

                  Comment


                    #84
                    I need to get rid of a % sign in a scrapped string so I can set the value the same as the device string.
                    Here is the ini section for it.
                    PHP Code:
                    [Clouds]
                    URL=http://www.accuweather.com/en/us/arnolds-park-ia/51331/current-weather/22514_pc
                    RegExSearch=<li>Cloud Cover: <strong>(?<number>[0-9]{1,3}\%)</strong>
                    RegExReplace=number
                    DeviceString
                    =I45
                    Content
                    =92
                    The device string now reads 92%

                    Thanks,
                    Tim
                    FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

                    HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

                    Comment

                    Working...
                    X