Skip to content

Commit

Permalink
Merge pull request #447 from dlt-green/release/v.4.5.1
Browse files Browse the repository at this point in the history
Release v.4.5.1
  • Loading branch information
dlt-green authored May 31, 2024
2 parents 8c7f387 + 78ac13e commit 6e36bbf
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 31 deletions.
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,21 +79,27 @@ Each flag represents a different configuration option:

Utilize these options according to your needs to automate node management tasks efficiently.

### Node-Installer Automatic Maintenance and Automatic Node Update Mode

There is an option to automate automatic system relevant updates, during which the nodes are terminated in the meantime. In addition, the nodes themselves can also be updated automatically. The installer's Github pipeline is used chronologically for the updates. In exceptional cases, manual intervention must be carried out, but you will be notified via a notification service if activated. If necessary, the server will be automatically restarted and the nodes are then also automatically restarted.

### Node-Installer Notification Mode

There is the option to receive status reports from your nodes. You do not have to register or reveal any of your personal data. These notifications are delivered directly to your mobile or desktop device using our in-house push notification service. To receive notifications on your phone, install the app, either via Google Play, F-Droid or Apple. Once installed, open it and add the shown MessageId in the installer (Notify-Me) to a topic. In the settings of each topic you can define also your own description.
There is an option to receive status reports from automated processes of your nodes. You do not have to register or reveal any of your personal data. These notifications are delivered directly to your mobile or desktop device using our in-house push notification service. To receive notifications on your phone, install the app, either via Google Play, F-Droid or Apple. Once installed, open it and add the shown Message Channel ID in the installer (Notify-Me) to a topic. In the settings of each topic you can define also your own description.

The notification level can be set in the installation menu [ info | warn | err! ]. In addition, depending on the notification level, messages are sent with different priorities. This means that information is sent and a log is available, but it is not disruptive due to the frequency. Warnings and errors then immediately raise an alarm with pushes. If necessary, the sleep mode on the cell phone can also be interrupted in the event of errors.
The notification level can be set in the installation menu [ info | warn | err! ]. In addition, depending on the notification level, messages are sent with different priorities. This means that information is sent and a log is available, but it is not disruptive due to the frequency. Warnings and errors then immediately raise an alarm with pushes. If necessary, the sleep mode on the cell phone can also be interrupted in the event of errors.

#### Mobile App:

![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/00703d7e-f3f6-4c79-a94b-8eb805c708a6) ![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/42730846-59f5-4cad-ac9a-7a08f53b512c)
![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/e53615ae-85a8-4487-8d42-dc005fcff171) ![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/0045238a-6447-401b-8936-ceb150c7a53e)

Hint: In the Android app there are at the moment a lot more additional features such as renaming channels and various notification settings.

[![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/db8a1d0f-c7e8-4048-992f-14a24de674c3)](https://play.google.com/store/apps/details?id=io.heckel.ntfy) [![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/c9670c2e-ef99-46e1-9dac-fbf6d53a48c9)](https://f-droid.org/en/packages/io.heckel.ntfy/) [![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/78ce7ad3-3502-4130-b951-3c4ac103d471)](https://apps.apple.com/us/app/ntfy/id1625396347)

#### Desktop:

![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/cf34ccb6-2780-40a7-9211-48a1c0b5df16)
![image](https://github.com/dlt-green/node-installer-docker/assets/89119285/cbbe1dfe-b647-45f4-9c77-a629031136ea)

### Operation Tutorial

Expand Down
54 changes: 27 additions & 27 deletions node-installer.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

VRSN="v.4.5.0"
BUILD="20240530_174641"
VRSN="v.4.5.1"
BUILD="20240531_121413"

VAR_DOMAIN=''
VAR_HOST=''
Expand Down Expand Up @@ -147,19 +147,19 @@ DEBIAN_FRONTEND=noninteractive sudo apt-get install curl -y -qq >/dev/null 2>&1

InstallerHash=$(curl -L https://github.com/dlt-green/node-installer-docker/releases/download/$VRSN/checksum.txt) >/dev/null 2>&1

IotaHornetHash='fbe6304f84ff818206629df688341cbad6661189db3913aefc29ae7a49f23369'
IotaHornetHash='d6eaa60cf1a53c4c323aaca6c50a2380ec69f793f37cb0eaa1c8c53e0772e0d8'
IotaHornetPackage="https://github.com/dlt-green/node-installer-docker/releases/download/$VRSN/iota-hornet.tar.gz"

IotaWaspHash='b94929faa48c8bb9a11302892c40665881264c316ae9a4e91b66ec6c84a3b2a0'
IotaWaspHash='9e62a2daf5f29d044effe82fd397b951e245b378448331403f3c251af92b653e'
IotaWaspPackage="https://github.com/dlt-green/node-installer-docker/releases/download/$VRSN/iota-wasp.tar.gz"

ShimmerHornetHash='ca1ed5c5cfe0e25da7598000561d6aef96af6578e384efd81ef198eea112fe38'
ShimmerHornetHash='97a0106252e3bd123c20fe3034964ecb95933e2f62ea3c48add3fc4a8b314581'
ShimmerHornetPackage="https://github.com/dlt-green/node-installer-docker/releases/download/$VRSN/shimmer-hornet.tar.gz"

ShimmerWaspHash='2006a83b404f941616f3d53e44bdad4a84c23ee2ef927db44b47c48b77563641'
ShimmerWaspHash='9dc4545a4dc14c7f82eefc68291a518eb2229eca05db29d98d8dd6b96fe76a60'
ShimmerWaspPackage="https://github.com/dlt-green/node-installer-docker/releases/download/$VRSN/shimmer-wasp.tar.gz"

ShimmerChronicleHash='d7cdeba799848a085bee8eb94a2ffec0572403931bfbb8a9a899229d9e854e18'
ShimmerChronicleHash='72ff6cf0a3d0f68e978f90a9665c5622eafe6732ca5935e6c8622396ddd00cf3'
ShimmerChroniclePackage="https://github.com/dlt-green/node-installer-docker/releases/download/$VRSN/shimmer-chronicle.tar.gz"

if [ "$VRSN" = 'dev-latest' ]; then VRSN=$BUILD; fi
Expand Down Expand Up @@ -1549,9 +1549,9 @@ SubMenuNotifyMe() {
echo "║ DLT.GREEN AUTOMATIC NODE-INSTALLER WITH DOCKER $VAR_VRN"
echo """$ca""$VAR_DOMAIN""$xx"""
echo "║ ║"
echo "║ 1. Show existing Message Channel "
echo "║ 2. Activate new Message Channel "
echo "║ 3. Generate new Message Channel "
echo "║ 1. Show existing Message Channel ID"
echo "║ 2. Activate new Message Channel ID"
echo "║ 3. Generate new Message Channel ID"
echo "║ 4. Switch Notify-Level: [""$nmi""info""$xx""|""$nmw""warn""$xx""|""$nme""err!""$xx""] ║"
echo "║ 5. Revoke Notify-Me ║"
echo "║ X. Management Dashboard ║"
Expand All @@ -1564,39 +1564,39 @@ SubMenuNotifyMe() {
case $n in
1) clear
echo "$ca"
echo "Show existing Message Channel..."
echo "Show existing Message Channel ID..."
echo "$xx"

VAR_NOTIFY_URL='https://notify.dlt.green'
VAR_NOTIFY_ENDPOINT=$(cat ~/.bash_aliases | grep "msg" | cut -d '=' -f 2 | cut -d ' ' -f 2)
VAR_NOTIFY_ID=$(cat ~/.bash_aliases | grep "msg" | cut -d '=' -f 2| cut -d ' ' -f 2 | cut -d '/' -f 4)

if [ "$VAR_NOTIFY_ID" ]; then
echo "ChannelId: " "$VAR_NOTIFY_ID"
echo "ChannelPage: " "$VAR_NOTIFY_URL/$VAR_NOTIFY_ID"
echo "Channel ID: " "$VAR_NOTIFY_ID"
echo "Channel Page: " "$VAR_NOTIFY_URL/$VAR_NOTIFY_ID"
echo ""
qrencode -m 2 -o - -t ANSIUTF8 "$VAR_NOTIFY_ID"
echo ""
else
echo "$rd""No Message Channel generated!""$xx"
echo "$rd""No Message Channel ID generated!""$xx"
fi

echo "$fl"; PromptMessage "$opt_time" "Press [Enter] / wait ["$opt_time"s] to continue... Press [P] to pause / [C] to cancel"; echo "$xx"
SubMenuNotifyMe ;;
2) clear
echo "$ca"
echo "Activate new Message Channel..."
echo "Activate new Message Channel ID..."
echo "$xx"

VAR_NOTIFY_URL='https\:\/\/notify.dlt.green'

VAR_NOTIFY_ID=$(cat ~/.bash_aliases | grep "msg" | cut -d '=' -f 2| cut -d ' ' -f 2 | cut -d '/' -f 4)
VAR_DEFAULT=$(cat /dev/urandom | tr -dc '[:alpha:]' | fold -w "${1:-20}" | head -n 1)
if [ -z "$VAR_NOTIFY_ID" ]; then
echo "Set Message Channel (random: $ca""$VAR_DEFAULT""$xx):"; echo "Press [Enter] to use random value:"; else echo "Set Message Channel (config: $ca""$VAR_NOTIFY_ID""$xx)"; echo "Press [Enter] to use existing config:"; fi
echo "Set Message Channel ID (random: $ca""$VAR_DEFAULT""$xx):"; echo "Press [Enter] to use random value:"; else echo "Set Message Channel ID (config: $ca""$VAR_NOTIFY_ID""$xx)"; echo "Press [Enter] to use existing config:"; fi
read -r -p '> ' VAR_TMP
if [ -n "$VAR_TMP" ]; then VAR_NOTIFY_ID=$VAR_TMP; elif [ -z "$VAR_NOTIFY_ID" ]; then VAR_NOTIFY_ID=$VAR_DEFAULT; fi
echo "$gn""Set Message Channel: $VAR_NOTIFY_ID""$xx"
echo "$gn""Set Message Channel ID: $VAR_NOTIFY_ID""$xx"

VAR_NOTIFY_ENDPOINT_URL='curl https://notify.dlt.green/'"$VAR_NOTIFY_ID"' -d'

Expand All @@ -1611,31 +1611,31 @@ SubMenuNotifyMe() {
if [ ! -z "$headerLine" ]; then
insertLine=$(($headerLine))
sed -i "$insertLine a alias dlt.green-msg=\"""$VAR_NOTIFY_ENDPOINT_URL"""\" ~/.bash_aliases
echo "$gn""New Message Channel: activated...""$xx"
echo "$gn""New Message Channel ID: activated...""$xx"
else
echo "$rd""Error activating new Message Channel!""$xx"
echo "$rd""Error activating new Message Channel ID!""$xx"
fi
else
sed -i 's/alias dlt.green-msg=.*/alias dlt.green-msg="curl '"$VAR_NOTIFY_URL""\/""$VAR_NOTIFY_ID"' -d"/g' ~/.bash_aliases
echo "$gn""New Message Channel: activated...""$xx"
echo "$gn""New Message Channel ID: activated...""$xx"
fi
fi

else echo "$rd""Error activating new Message Channel!""$xx"; fi
else echo "$rd""Error activating new Message Channel ID!""$xx"; fi


echo "$fl"; PromptMessage "$opt_time" "Press [Enter] / wait ["$opt_time"s] to continue... Press [P] to pause / [C] to cancel"; echo "$xx"
SubMenuNotifyMe ;;
3) clear
echo "$ca"
echo "Generate new Message Channel..."
echo "Generate new Message Channel ID..."
echo "$xx"

VAR_NOTIFY_URL='https\:\/\/notify.dlt.green'
VAR_NOTIFY=$(cat /dev/urandom | tr -dc '[:alpha:]' | fold -w "${1:-20}" | head -n 1)

echo "ChannelId: " "$VAR_NOTIFY"
echo "ChannelPage: " "https://notify.dlt.green/""$VAR_NOTIFY"
echo "Channel ID: " "$VAR_NOTIFY"
echo "Channel Page: " "https://notify.dlt.green/""$VAR_NOTIFY"

VAR_NOTIFY_ENDPOINT_URL='curl https://notify.dlt.green/'"$VAR_NOTIFY_ID"' -d'
VAR_NOTIFY_ID="$VAR_NOTIFY"
Expand All @@ -1651,13 +1651,13 @@ SubMenuNotifyMe() {
if [ ! -z "$headerLine" ]; then
insertLine=$(($headerLine))
sed -i "$insertLine a alias dlt.green-msg=\"""$VAR_NOTIFY_ENDPOINT_URL"""\" ~/.bash_aliases
echo "$gn""New Message Channel generated...""$xx"
echo "$gn""New Message Channel ID generated...""$xx"
else
echo "$rd""Error generating new Message Channel!""$xx"
echo "$rd""Error generating new Message Channel ID!""$xx"
fi
else
sed -i 's/alias dlt.green-msg=.*/alias dlt.green-msg="curl '"$VAR_NOTIFY_URL""\/""$VAR_NOTIFY_ID"' -d"/g' ~/.bash_aliases
echo "$gn""New Message Channel generated...""$xx"
echo "$gn""New Message Channel ID generated...""$xx"
fi
fi

Expand Down

0 comments on commit 6e36bbf

Please sign in to comment.