Skip to content

Instantly share code, notes, and snippets.

View colinl's full-sized avatar

Colin Law colinl

  • Retired
  • Ffarmers, Carmarthenshire, Wales, UK
View GitHub Profile
@colinl
colinl / README.md
Last active May 9, 2023 20:42
Flow to Update Cloudflare DNS records

For those who use Cloudflare for managing their DNS records, this flow attempts to update their DNS A records for a given set of domain names.
It uses http://ipinfo.io/ip to determine the current external IP address. Before running the flow you might like to run
curl ipinfo.io/ip
to check that the correct IP address is returned.

The flow expects an array of domain names in msg.payload. Fill in the subflow properties with your Cloudflare Zone ID, Cloudflare logon email and Global API key and whether the DNS records should be marked as proxied or not. Currently it does not allow different settings for Proxied for different domains. If you needed this you could use two instances of the subflow, one for proxied domains and one for non-proxied.

The subflow gets the current external IP address, then fetches the Cloudflare records for the complete Zone. For each of the domains given it compares the current value in the Cloudflare record with that optained from ipinfo.io, and updates only those that

@colinl
colinl / README.md
Last active April 11, 2024 20:20
Guaranteed delivery of data (upload, email, MQTT etc) across a network
2020-01-11 10:14:32,650 - octoprint.startup - INFO - ******************************************************************************
2020-01-11 10:14:32,651 - octoprint.startup - INFO - Starting OctoPrint 1.3.12
2020-01-11 10:14:32,651 - octoprint.startup - INFO - ******************************************************************************
2020-01-11 10:14:32,787 - octoprint.util.connectivity_checker - INFO - Connectivity changed from offline to online
2020-01-11 10:14:32,789 - octoprint.startup - INFO - Blacklist processing done, adding 1 blacklisted plugin versions: roomtemp (any)
2020-01-11 10:14:32,809 - octoprint.plugin.core - INFO - Loading plugins from /home/me/apps/Octoprint/venv/lib/python2.7/site-packages/octoprint/plugins, /home/me/.octoprint/plugins and installed plugin packages...
2020-01-11 10:14:33,067 - octoprint.plugin.core - INFO - Plugin Pi Support Plugin did not pass check, not loading.
2020-01-11 10:14:33,125 - octoprint.plugins.octoprint.plugins.discovery - INFO - pybonjour is not insta