@tyntec/node-red-contrib-tyntec
v1.1.0
Published
[![](https://raw.githubusercontent.com/tyntec/node-red-contrib-tyntec/main/docs/logo.png)](https://tyntec.com)
Downloads
7
Readme
@tyntec/node-red-contrib-tyntec
We're excited to introduce a new connector for tyntec SMS services that allows you to easily incorporate SMS messaging into your Node-RED workflows. With this connector, you can send SMS messages using tyntec's reliable and scalable REST API. You can use this integration to trigger SMS notifications, alerts, and reminders from within your Node-RED flows, and automate your SMS-based communication.
Our tyntec SMS services connector for Node-RED is designed to be user-friendly and flexible, so you can easily configure and customize your SMS messaging workflows. Whether you're building a chatbot, sending reminders, or triggering SMS notifications, our connector can help you seamlessly integrate SMS messaging into your Node-RED applications.
Table of Contents
Features
- Send SMS
Prerequisities
Please note that in order to use tyntec connector for node-RED, you’ll need to have a paid account with tyntec.
Installation
Open your Node-RED editor in a web browser and navigate to the menu on the top right corner of the screen.
Click on the "Manage palette" option. This will open the Node-RED Palette Manager, which allows you to search for, install, and manage Node-RED nodes and modules.
Click on the "Install" tab in the Palette Manager.
In the "Search" box, type tyntec-SMS.
Find the palette in the search results and click on the "Install" button to the right of it.
Wait for the installation process to complete. Node-RED will download and install the palette and any necessary dependencies.
Once the installation is complete, you should see the newly installed palette listed in the "Installed" tab in the Palette Manager.
Alternatively, you can install pallet via npm command in your project:
npm install @tyntec/node-red-contrib-tyntec
Usage
Step 1: Create a new Node-RED flow
To demonstrate the functionality of sending SMS via tyntec, we will create a fake temperature sensor. The sensor will use tyntec SMS to send its measurement data.
- Create a new flow to add your new nodes into it.
- Add an "inject" node.
- Open the edit window of the "inject" node and set these values:
name
toFake temperature sensor
msg.payload.room
to valueLivingroom
msg.payload.temperature
to value21
- Click to "Done" to save your changes.
Step 2: Add and edit the "send-sms" node
- Add a node called "send-sms" to your flow (you can find the node in a "function" section).
- Connect your "Fake temperature sensor" node output to "send-sms" node input.
- Set your "send-sms" node.
name
toTemperature SMS
- add a new
Tyntec Configuration
with your tyntec API key - (optional)
From
to your own name, which will appear as the sender's name - add a new
To
configuration with your own name and phone number (Phone number has to be in E.164 e.g.+420123456789
) Message
to
Hello from Node-RED.
Your temperature in {{msg.payload.room}} is {{msg.payload.temperature}}ºC.
Your lovely tyntec integration.
(not recommended) uncheck the
Delivery check
(whether you need to confirm successful or unsuccessful SMS delivery)
Step 3: Deploy and test your new flow
- To deploy a flow, click the red "Deploy" button in the upper right corner.
- Click on the square on the left side "Fake temperature sensor" to trigger the flow.
You should now see a blue dot labeled "accepted" when the SMS delivery has been triggered via the API.
If the SMS has been delivered, the blue dot will change to green.
If the SMS has not been delivered, the blue dot will change to red.
And that's it! You have just integrated the tyntec SMS connector for Node-Red and used it successfully.
Contributing
Feel free to contribute to our @tyntec/node-red-contrib-tyntec. Please follow the Contribution Guide.
License
The @tyntec/node-red-contrib-tyntec open source project is licensed under the MIT.