I know there were several DynDNS update scripts out there, and they do work, but they don't work as needed to really stay within the TOS at DynDNS. [Like causing a nochg update after a reboot, since they don't keep IP states across reboots, or querying the IP more often than allowed.]
They use a "old" version of the update process - while it still works, it's not current. This has been updated.
They also didn't actually check the return status codes from an update and if they got a bad status code, wouldn't handle the error properly. I think those issues should be resolved in this code.
Also, writes to flash could be greater than needed. [Though the sizes were so small, it's unlikely to be a problem.] We only write to flash when the IP is updated successfully at DynDNS.
The code style isn't totally uniform (sorry), and there are TONS of comments in the script itself, so there's no "documentation" outside the script itself.
I'm glad for feedback, if you have it.
It only handles DynDNS updates for a single interface, and would require some re-working to handle more than one.
[This shouldn't be a common request, but if someone wants it, I'm glad to do it for a fee. I'm giving this out "free" simply because I needed the functionality and wasn't happy with the alternatives out there. However, if I'm going to code something I don't actually need, then it's going to be when I get around to it - which will be a snowballs chance in, well you know where...or I'm going to have to charge for it.]
Glad to take comments, bug-fixes etc.
Please take a minute if you use the code to let me know if worked and what hardware/ROS version you used.
---
-Greg
---
I've updated the code - I believe I just removed some comments that don't apply any more. [They got left by accident.]
I don't believe there's any code change.
---
Updated 2012/03/26
New version 1.0.5
Change to script - will check if "lastip" file exists and create if not. This saves the user from having to manually create the file by hand.
[I don't recall any other changes...]
---
Updated 2012/04/01
New version 1.0.6.
Fix to the problem where we'd create the "lastip.txt" file and then promptly read garbage data. Also, changes to the notes/comments for file naming got-cha's.
If you have an older version, you don't *need* this one, but for new installs the newer one is probably better - less chance of the user borking themselves.