Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

reporting external ip


Guest Kuuno

Question

Guest Kuuno

how is it possible to use LUA to send notification to email about external ip

the page to check ip could be this:

Please login or register to see this link.

thanks!

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Thats a good one.

It will be great to send every day your home ip by mail.

I have Dyndns but sometimes…..

This one is also a option..

Please login or register to see this link.

Link to comment
Share on other sites

  • 0

Kuuno, TANE, you can based on my script here

Please login or register to see this link.

to request your ip checker, parse the results, compare and update global variable for exemple and send email if desired.

[ Added: 2013-05-28, 10:51 ]

I prefere use

Please login or register to see this link.

much simpler to parse

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" />

[ Added: 2013-05-28, 10:57 ]

Please login or register to see this image.

/emoticons/default_icon_mad.gif" alt=":-x" /> I forgot, you can not keep a text value with the variables, or we can create 4 variables

Please login or register to see this image.

/emoticons/default_icon_rolleyes.gif" alt=":roll:" />

[ Added: 2013-05-28, 11:14 ]

I have rewrite the script, you can use this code, work great for me:

Please login or register to see this code.

Happy coding, and fun !

Please login or register to see this image.

/emoticons/default_icon_biggrin.gif" alt=":-D" />

Link to comment
Share on other sites

  • 0
Guest Kuuno
  • Inquirer
  • someone send Krikroff some chockolate for fast support

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0

    Thank you..

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    • 0

    TANE, for me the line 6 is

    Please login or register to see this code.

    it cannot be null (nil in LUA)

    Please login or register to see this image.

    /emoticons/default_icon_confused.gif" alt=":-?" />

    Can you try this scipt in scene or in virtual device ? i think log not work in scene, only in virtual device

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" />

    or perhaps a problem with your ctrl+c ctrl+v

    Please login or register to see this image.

    /emoticons/default_icon_idea.gif" alt=":idea:" />

    [ Added: 2013-05-29, 21:35 ]

    you can safety remove the line 6 if you want ....

    Link to comment
    Share on other sites

    • 0

    thanks,

    Runs fine in a virtual device.

    I was trying to run in scene.

    Scene will run every 8 hours..

    Every 8 hours i will receive a e-mail that is automatically archived in gmail..I just need to check if the IP is changed and my dnydns did not update.

    This is just to be sure.

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...