Announcement

Collapse
No announcement yet.

Jon00 DataScraper/JSON Parser Script For Homeseer 3 and Homeseer 4

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

    I've tried it here and works fine. Remember that it will only trigger on a change to the device text so unless it changes, it will not trigger. Best way to test is to delete the device and then run again to test your trigger.
    Jon

    Comment


      OK now it has triggered. But only once, I think I know why. In grab2, I have TriggerString1=red. That should be TriggerString2=red, correct ?

      Comment


        It has triggered once. I tried a few more times. I deleted the data out of the Jon00DataScraperData.ini, deleted the devices, then triggered my event to scrape the data. Nothing.

        This is my datascraper.ini, and I am triggering grab 1+2

        [Grab1]
        Path=https://www.wunderground.com/dashboard/pws/IWESTC4
        TextFile=0
        Encoding=
        Username=
        Password=
        Options=
        UserAgent=
        Devicemode=0
        StripHTML=1
        UseIE=0
        SSLMode=0


        Pattern1=(?s)class="circle".*?<span _ngcontent.*?>(.*?)</span>
        DeviceName1=Station Online/Offline
        DeviceText1=[0]
        DeviceValue1=
        DeviceImage1=
        Speakbutton1=0
        TriggerString1=Online
        SearchMode1=1
        TriggerEvent1=Weather Station Offline

        [Grab2]
        Path=https://www.wunderground.com/dashboard/pws/IWESTC4
        TextFile=0
        Encoding=
        Username=
        Password=
        Options=
        UserAgent=
        Devicemode=0
        StripHTML=1
        UseIE=0
        SSLMode=0


        Pattern1=(?s)style="background-color.*?);"></span><span _ngcontent

        DeviceName1=Station Summary
        DeviceText1=[0]
        DeviceValue2=
        DeviceImage2=
        Speakbutton2=0
        TriggerString1=green
        SearchMode1=1
        TriggerEvent2=Weather Station Offline

        Comment


          In [Grab2], TriggerEvent2 should be TriggerEvent1
          Jon

          Comment


            Version 1.0.27 has been released.

            Changes since V1.0.26:

            Added PostData setting to allow data requests using POST in addition to GET
            Jon

            Comment


              SSL/TLS Error

              I've recently started receiving errors on one of my defined scrapings: "[Grab1] Error in Grab Block 3 The request was aborted: Could not create SSL/TLS secure channel."

              The page I'm trying to retrieve is "https://www.county-waste.com/" to grab the announcements at the top of the page.

              Comment

              Working...
              X