Created
June 23, 2024 08:02
-
-
Save hj91/30d2de785497f516e742ed086a26b650 to your computer and use it in GitHub Desktop.
Install node-red-contrib-influxdb latest node
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Update package list and install npm if it's not already installed - package is installed by default on Bufferstack.IO IIoT Gateway | |
if ! command -v npm &> /dev/null | |
then | |
echo "npm could not be found. Installing npm..." | |
sudo apt-get update | |
sudo apt-get install -y npm | |
else | |
echo "npm is already installed." | |
fi | |
# Install node-red-contrib-influxdb globally | |
echo "Installing node-red-contrib-influxdb globally..." | |
sudo npm install -g node-red-contrib-influxdb@latest | |
echo "Installation complete. Run Node-RED and check the influxdb node" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment