franciscogouveia / node-fritzbox

Use the command line to configure your Fritz!Box
MIT License
20 stars 6 forks source link

Region issue #7

Open MAkerboom opened 8 years ago

MAkerboom commented 8 years ago

node-fritzbox online ip

only works if language is set to German

I manually fixed it by editing the following line: https://github.com/franciscogouveia/node-fritzbox/blob/master/modules/online.js#L87

OT: Thanks for your script.. it powers my Domoticz homeautomation by updating device status information. That way I know if any family members are at home.

franciscogouveia commented 8 years ago

Good catch. I'm in Germany, so the language on my Fritzbox is in German. When I find some time, I will try to find a way to do it language independent. For now, your quick fix should be enough.

Great to know someone found it useful! :) I'm using it on my server as well to update my DNS when my IP changes.

FlorianWendelborn commented 8 years ago

@franciscogouveia you can actually tell your FritzBox to send a HTTP GET request to your server, when your IP changes, that'd be most likely easier than what you're currently doing.

franciscogouveia commented 8 years ago

@dodekeract I'm updating the IP, because the server is behind the FritzBox and I want to access the server from outside (it's a home server).

What I could do is to configure FritzBox to update the DNS with the new IP every time it changes (e.g. with DynDNS). But, my domain provider does not support it.

The solution I found was delegating the DNS administration to AWS Route53. Like this, I created a script that checks if the IP changed, and if yes, send an update of the A record to Route 53 API.

FlorianWendelborn commented 8 years ago

@franciscogouveia ah, I didn't assume your server is behind the FritzBox, that makes sense then. I thought you're using a similar setup to mine, where I both have a home-server (rpi3) and a dedicated server in a datacenter.