This is a shell script that sends notifications to selected targets in Telegram and Discord when the DynDNS service is upgraded. The script runs periodically using the cron job "/root/.hermes/skills/cf-dyndns.sh 2>&1".
Here are the steps one must take before running this command:
* Set up your DynDNS instance. Ensure it's enabled, configured to allow public updates, and set the API key.
* Enable the DynDNS addon in Telegram to receive notifications. Enable the Discord server that should receive updates from your DynDNS changes.
* The script requires a
TOKEN for Telegram (or an equivalent in Discord) to authenticate with the APIs.
To ensure you follow instructions correctly:
1. Set up your DynDNS instance according to [here](
https://tech.kotabeta.com/dyndns-upgrade).2. Create or set up necessary Telegram and Discord teams.
3. Download the "DynDNS Telegram bot" script from [here](
https://github.com/kevirkop/dynndsscript) (or download a pre-made one) and extract it to a file.
4. Copy the
TOKEN for Telegram into the downloaded script or set up an access token through API calls if Discord supports OAuth 2.
5. Prepare your DynDNS credentials, public access URL, and secret code.
To run this script, save the above provided text in a simple text editor (e.g., vim). To schedule it, copy and paste into
your-hermes-admin-command-line-editor to use. Once saved, you might want to add these lines:
``
bash
update-dynndescript.py,
`
This will run your custom DynDNS script (create-cron-scheduled-commands)
. Replace the path if the command output changes.
To disable the script automatically every time it runs:
Replace /root/.hermes/skills/cf-dyndns.sh
, write this line once after adding any of the above lines. The following snippet will handle that:
`
bash
if
[ "$DEBUG" = false ] &&
[ ! -f /etc/your-app-id ]
exit
update-dynndescript.py,
``
For further instructions, refer to the documentation:
* DynDNS GitHub:
https://github.com/DynDNS/DynaDNS-Website/wiki/Getting-started* Heremesh Community Documentation for more information.