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

Update of DDNS Using Scene


Question

Guest sameri
Posted (edited)

Hi Guys,

 

First post on here. I've just moved from a Vera to the HC2 to give it a go and find things quite difficult.

 

I had a scene set up on my Vera than ran periodically to update my Dynamic DNS server using a wget function in Luup.

 

I've been mucking around tonight for quite a while using Lua scenes trying to achieve the same outcome with no luck!

 

I'm sure it's easy but can anyone help out?

 

Thanks! Sam.

Edited by sameri
Wrong category.

8 answers to this question

Recommended Posts

  • 0
Guest sameri
  • Inquirer
  • Posted (edited)

    AWESOME! It works.

     

    I tried something VERY similar while mucking around the other night but didn't try it with just 'freedns.afraid.org' and no port number.

     

    Thank you for the help!

     

    For reference this is my final logic for those that are interested (Just had to fix up one code comment missing a '-'):

    Please login or register to see this code.

    Edited by sameri
    • 0
    Posted

    Which wget command did you use on your Vera?

    • 0
    Guest sameri
  • Inquirer
  • Posted

    Hi there. I used the following:

     

    luup.inet.wget("<type your URL here in the form

    Please login or register to see this link.

    >", 5)

    • 0
    Guest sameri
  • Inquirer
  • Posted

    Just wondering if anyone was able to help with this?

    • 0
    Posted (edited)

    What is the URL you are calling? If the WGET is is doing a simple HTTP GET action then you can do this quite easily in lua. Also what does the '5' signify in your previous example?

     

    Heres a cut and shut of some code from the Hue virtual device I have:

     

    Please login or register to see this code.

    Edited by Cameleon
    • 0
    Guest sameri
  • Inquirer
  • Posted

    Cheers for that.

     

    Cannot remember what the 5 was as I butchered someone else's code at the time. Probably a timeout or retry count?

     

    The URL is just the direct URL to my DDNS service. I will try your logic tonight and let you know how it goes. Thanks for the help.

    • 0
    Guest sameri
  • Inquirer
  • Posted (edited)

    I've been playing with it tonight but it's very difficult when I'm not sure what the functions are.

     

    What do I put as IP and Port?

     

    I'm trying to access a web address of the form '

    Please login or register to see this link.

     

    I've tried to use the IP address of the freedns.afraid.org website and port 80 but it doesn't work as it doesn't appear that the IP Address redirects to the website.

    Edited by sameri
    • 0
    Posted

    Try this, I don't know for sure if it will work, but I think it should. You can use DNS names as well as IP, and you don't require port if it runs on the default port 80. Obviously put back in your proper ID that you've 'xxxx' out

    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" />

    Please login or register to see this code.

    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...