Announcement

Collapse
No announcement yet.

IP Update Script Package

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

    IP Update Script Package

    Hi Jon,
    I installed your IP update scripts and had a few issues.
    The script never created the new directories so I manually created them and moved the files as specified in your instructions.
    I am not able to grab the IP address and send it to my phone.
    Basically, I would like to grab the IP from the device status.

    I used
    IP = hs.DeviceString("z3")

    But when I send the email
    Email_text = "Your current IP address is: " & IP
    I get this "Your current IP address is: <img src='\images\ipupdate\ip.gif'> WAN IP Address: 24.59.205.57"
    How can I strip the <img src='\images\ipupdate\ip.gif'> from the email I send?

    Thanks for the help!
    Dan-O
    HomeSeer contributor since summer 1999, yes 1999!

    #2
    Ok here is my ini file, and it works perfectly. Have a look and try and spot the difference between mine and yours.
    [Settings]
    Mailfrom="Your address"
    Housecode="t1"
    UseURLPath=0
    URLPath=http://Localhost:XXXX
    URLPathloc="/abhs"
    UseURLPath1=1
    URLPath1="http://www.cocoontech.com"
    URLPathloc1="/services/ip.php"
    UseURLPath2=1
    URLPath2="http://www.show-my-ip.com/"
    URLPathloc2=""
    UseURLPath3=1
    URLPath3="http://checkip.dyndns.org/"
    URLPathloc3=""
    Debug=0
    [FTP1]
    LocalFile="HSAccess.html"
    RemoteFileDir="/public"
    Host=ftp.Your IP Server
    Username="Login Name"
    Password="Your Password"
    [Local1]
    LocalFile="YardCamWMP.asp"
    RemoteFileDir="C:\Program Files\HomeSeer\html\cameras\"
    [Local2]
    LocalFile="welcome.asp"
    RemoteFileDir="C:\Program Files\HomeSeer\html\"
    [Local3]
    LocalFile="Jon00Control4.ini"
    RemoteFileDir="C:\Program Files\HomeSeer\config\"
    [Local4]
    LocalFile="Jon00Control9.ini"
    RemoteFileDir="C:\Program Files\HomeSeer\config\"
    [Email1]
    LocalFile="IPEmail.txt"
    SendAttachment=0
    Mailto="Where you wish to send it"
    Subject="You have a new IP address"
    Host="mail.Your mail connection"
    Username="Your Log In"
    Password="Your Password"
    sigpic
    A founder member of "The HA Pioneer Group" otherwise known as the "Old farts club!"

    Comment


      #3
      Hi Dan-O, it's been a long time since we have seen you around here!

      Regarding your problem, the best thing would be to read it from the ini file i.e.

      IP=hs.GetINISetting "Data","IPAddress","","Jon00IPUpdate.ini"

      That said, from what I can see, you are not really using the script as designed. It will automatically send you an email each time your IP changes. Please let me know what you are trying to achieve.

      I'm also unsure why it did not install correctly. Did you have to create the data folder manually?
      Jon

      Comment


        #4
        Originally posted by jon00 View Post
        That said, from what I can see, you are not really using the script as designed. It will automatically send you an email each time your IP changes. Please let me know what you are trying to achieve.

        I'm also unsure why it did not install correctly. Did you have to create the data folder manually?
        I still want your script to update me when my IP changes, I just created a separate event/script that will send the IP to my phone. I save the IP on my phone so I can access the HS server.
        Once is a while I delete my messages off my phone and I like to send an updated message to it once in a while.
        My IP rarely changes.

        I did have to create the Data folder manually
        Dan-O
        HomeSeer contributor since summer 1999, yes 1999!

        Comment

        Working...
        X