Announcement

Collapse
No announcement yet.

Package Tracker Discussion

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

    #16
    MeSteve,

    First of all, this is a great script.

    I am having the same problem with Package Tracker that DV was having. If I look at the page received from the URL it shows jscript code only, no data. What needs to be changed to retrieve the correct information (and eliminate the error)? I am trying to track USPS shipments.

    the specific error is:

    1/5/2007 6:46:59 AM - Error - Running script, script run or compile error in file: Package_Tracker.txt5:Invalid procedure call or argument: 'mid' in line 58 More info: Invalid procedure call or argument: 'mid'


    Line (57 & )58 is:

    strLastscan = strBody
    strLastscan = Mid(strLastscan,Instr(strLastscan,"Scan History:"))

    and of course:

    strBody = hs.GetUrl(strHost,strPage,false,80)

    TIA,

    Mitch
    Last edited by Midon; January 5, 2007, 06:50 AM.
    http://www.midondesign.com

    Comment


      #17
      OK, I found the problem. iShip is not providing Scan information for USPS so the script errors out. I changed the routine to be:

      strLastscan = strBody
      if Instr(strLastscan,"Scan History:") <>0 then
      strLastscan = Mid(strLastscan,Instr(strLastscan,"Scan History:"))
      strLastscan = Mid(strLastscan,Instr(strLastscan,"0"">")+3)
      strTmp = Mid(strLastscan,1,Instr(strLastscan,"<")-1)
      strLastscan = Mid(strLastscan,Instr(strLastscan,"0"">")+3)
      strLastscan = Mid(strLastscan,Instr(strLastscan,"0"">")+3)
      strLastscan = strTmp & " " & Mid(strLastscan,1,Instr(strLastscan,"<")-1)
      else
      strLastscan = "Scan History: not available"
      end if


      Also, I changed the routine at the end from:

      elseif strCarrier = "USPS" then

      to:

      elseif strCarrier = "US Postal Service" then

      Thanks,

      Mitch
      Last edited by Midon; January 5, 2007, 07:32 AM.
      http://www.midondesign.com

      Comment


        #18
        First of all, I have yet to actually track a USPS package successfully. Glad you got it working. Could you still PM me your tracking number so I can see what exactly is going on, because I don't get errors.

        Comment


          #19
          I'm also getting the same error on "mid" on two packages, one UPS, one USPS.

          Turns out that the script needs an error handling routine for when the tracking numbers are not yet in the system. When Iship.com displays a "We are unable to track..." it causes the script to error out and stop processing.

          I've attached my attempt at dealing with this.

          Also, the creator script is having issues dealing with multiple inbound email. If there are 2 incoming and the housecode is "T", it does the following.

          Create T1 with Tracking number 1
          Create T4 with Tracking number 2
          Create T2 with name from #2
          Create T5 with name from #1
          Create T3 with name from #2
          Create T6 with name from #1

          It basically fills in the wrong names for the virtual devices.

          Thanks
          Attached Files
          Last edited by mkronmal; January 15, 2007, 12:47 AM.

          Comment


            #20
            Still Working

            I this still working with Fedex?
            I have a package that was delivered but never showed that is was in HS devices
            Attached Files
            HS4 Environment
            Proxmox win11 / HS4
            Netiom-Xap board
            Plug-In's
            rnbWeather 4.4.2.0
            mcsMQTT V6.15.1.0
            mcsXap V3.0.0.72
            Zigbee Plus V1.0.0.0
            Zigbee V4.0.11.0

            There is no place Like 127.0.0.1

            Comment


              #21
              I appologize, been really busy lately. Did it ever get updated or did you just delete the devices. I have noticed that there are certain services that are not updated by this site. Most USPS services are not updated as well as some FedEx. Those are the only ones I personnally have seen, there may be more that I have not heard of, but no one has mentioned any yet. I am not sure I will have the time in the near future to get this script updated. If someone wants to take a look at it, feel free.

              Comment


                #22
                Thanks for the reply. Yes I just deleted the devices. But the carrer I was refering to was Fedex I asked if it was working because I modifided your script to use Jon00's email program. I was wondering if I broke it.
                HS4 Environment
                Proxmox win11 / HS4
                Netiom-Xap board
                Plug-In's
                rnbWeather 4.4.2.0
                mcsMQTT V6.15.1.0
                mcsXap V3.0.0.72
                Zigbee Plus V1.0.0.0
                Zigbee V4.0.11.0

                There is no place Like 127.0.0.1

                Comment


                  #23
                  Is this script still working? I am getting an error of:


                  Running script, script run or compile error in file: Package_Tracker.txt5:Invalid procedure call or argument: 'mid' in line 63 More info: Invalid procedure call or argument: 'mid'
                  HS4 Environment
                  Proxmox win11 / HS4
                  Netiom-Xap board
                  Plug-In's
                  rnbWeather 4.4.2.0
                  mcsMQTT V6.15.1.0
                  mcsXap V3.0.0.72
                  Zigbee Plus V1.0.0.0
                  Zigbee V4.0.11.0

                  There is no place Like 127.0.0.1

                  Comment


                    #24
                    Any one still using this script? Just wondering if it is something on my end.
                    I am tring to track a fedex package. I get the error above
                    HS4 Environment
                    Proxmox win11 / HS4
                    Netiom-Xap board
                    Plug-In's
                    rnbWeather 4.4.2.0
                    mcsMQTT V6.15.1.0
                    mcsXap V3.0.0.72
                    Zigbee Plus V1.0.0.0
                    Zigbee V4.0.11.0

                    There is no place Like 127.0.0.1

                    Comment

                    Working...
                    X