Skip to content

Making the ID DataLogger available from the internet

Tim (robske_110) edited this page Feb 27, 2021 · 3 revisions

To make the ID DataLogger available from the internet you need a publicly routable IPv4 address. (Some fibre plans for example do not include this.)

We need to create a domain for your ID DataLogger, install a DynDNS update client to update the IP Address to which the domain points to and obtain an HTTPS certificate from Let's Encrypt.

  1. Create a domain using one of the many Free DynDNS services. An example is https://www.duckdns.org.

  2. After you have created your domain with the service of your choice you need to set up an update client. You can either instruct your router to do this (duckdns has guides for different models on their website) or install one on the Raspberry PI. Your DynDNS provider should have instructions for this too, for duckdns they can be found here. Alternatively searching for update client for <DynDNS provider> on Raspberry Pi will often yield useful results.

  3. Now you need to forward both ports 443 and 80 to your Raspberry PI on your router. The IP of your Raspberry PI can be found by executing the command hostname -I on it.

    Portforward.com has great guides for many router models. Please note that this site aggressively tries to get you to buy "Portforward Network Utilities" which you do NOT need to successfully port forward. If you can't find anything useful there, search the internet for a guide for your router.

  4. After successful portforwarding you should be able to check access your ID DataLogger using http://your.domain.tld/vwid. If this is the case we can now enable SSL in the next very important step.

  5. To enable SSL simply execute ./docs/certbot.sh. The script will ask you for the domain you created (enter the full domain without http(s)://!) and an E-Mail Address. After entering this information your website should now be accessible using https://your.domain.tld/vwid. Make sure to update the baseURL in the iOS widget if you are using it!

Clone this wiki locally