@semilimes/node-red-semilimes
Advanced tools
Comparing version 0.9.6 to 0.9.7
@@ -14,6 +14,6 @@ [ | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 2: Configure 'Connector' property of the 'send to semilimes' node to setup connection to semilimes", | ||
"name": "Step 2: Configure 'Connector' property of the 'Intent' and 'send to semilimes' nodes to setup connection to semilimes", | ||
"info": "", | ||
"x": 430, | ||
"y": 260, | ||
"x": 470, | ||
"y": 200, | ||
"wires": [] | ||
@@ -53,3 +53,3 @@ }, | ||
"x": 130, | ||
"y": 460, | ||
"y": 440, | ||
"wires": [ | ||
@@ -69,3 +69,3 @@ [ | ||
"x": 290, | ||
"y": 460, | ||
"y": 440, | ||
"wires": [ | ||
@@ -79,5 +79,9 @@ [ | ||
"id": "205a9aa0495ba053", | ||
"type": "sme-main-actionSelector", | ||
"type": "sme-main-intent", | ||
"z": "60aa84f35b43b2ca", | ||
"actionName": "p2p_message_send", | ||
"name": "", | ||
"autoName": "", | ||
"connector": "", | ||
"actionName": "channel_message_send", | ||
"actionText": "Channel - Send Message", | ||
"recipientId": "", | ||
@@ -95,4 +99,6 @@ "recipientIdType": "str", | ||
"channelIdType": "str", | ||
"x": 480, | ||
"y": 460, | ||
"title": "", | ||
"titleType": "str", | ||
"x": 640, | ||
"y": 440, | ||
"wires": [ | ||
@@ -110,4 +116,4 @@ [ | ||
"async": "0", | ||
"x": 710, | ||
"y": 460, | ||
"x": 990, | ||
"y": 440, | ||
"wires": [ | ||
@@ -118,3 +124,33 @@ [] | ||
{ | ||
"id": "49407c3140de9137", | ||
"id": "ef89bf5a8213f87a", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 1: Get an API key on semilimes.com", | ||
"info": "", | ||
"x": 240, | ||
"y": 160, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "3098c1296a8f2791", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 3: Select a channel title in the 'intent' node and trigger this flow to create a new channel to start sending messages from this client", | ||
"info": "", | ||
"x": 530, | ||
"y": 260, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "056b11cb8540c85c", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 4: Configure the intent node and search for the new created channel in the list. Trigger it to send a message", | ||
"info": "", | ||
"x": 460, | ||
"y": 400, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "bc415d83127f39d3", | ||
"type": "inject", | ||
@@ -140,6 +176,6 @@ "z": "60aa84f35b43b2ca", | ||
"x": 130, | ||
"y": 340, | ||
"y": 320, | ||
"wires": [ | ||
[ | ||
"d527d75c18f77482" | ||
"e2ac93d75c372525" | ||
] | ||
@@ -149,7 +185,11 @@ ] | ||
{ | ||
"id": "d527d75c18f77482", | ||
"type": "sme-main-actionSelector", | ||
"id": "e2ac93d75c372525", | ||
"type": "sme-main-intent", | ||
"z": "60aa84f35b43b2ca", | ||
"actionName": "account_contacts", | ||
"recipientId": "c", | ||
"name": "", | ||
"autoName": "", | ||
"connector": "", | ||
"actionName": "channel_create", | ||
"actionText": "Channel - Create", | ||
"recipientId": "", | ||
"recipientIdType": "str", | ||
@@ -160,3 +200,3 @@ "messageId": "", | ||
"limitType": "num", | ||
"recipientIds": "", | ||
"recipientIds": "f9e9d4f3-380c-49dd-b2fe-8ac2ef5c9d61", | ||
"recipientIdsType": "str", | ||
@@ -167,7 +207,9 @@ "groupChatId": "", | ||
"channelIdType": "str", | ||
"x": 340, | ||
"y": 340, | ||
"title": "myNewChannel", | ||
"titleType": "str", | ||
"x": 350, | ||
"y": 320, | ||
"wires": [ | ||
[ | ||
"1e4fbf07024edfa9" | ||
"c59b28f83f5b6b80" | ||
] | ||
@@ -177,3 +219,3 @@ ] | ||
{ | ||
"id": "1e4fbf07024edfa9", | ||
"id": "c59b28f83f5b6b80", | ||
"type": "sme-main-sender", | ||
@@ -183,7 +225,7 @@ "z": "60aa84f35b43b2ca", | ||
"async": "0", | ||
"x": 550, | ||
"y": 340, | ||
"x": 630, | ||
"y": 320, | ||
"wires": [ | ||
[ | ||
"0bb3ee7d9cc13ba1" | ||
"43527716046f05d4" | ||
] | ||
@@ -193,6 +235,6 @@ ] | ||
{ | ||
"id": "0bb3ee7d9cc13ba1", | ||
"id": "43527716046f05d4", | ||
"type": "debug", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Filter contacts", | ||
"name": "Get Created Channel", | ||
"active": true, | ||
@@ -206,46 +248,16 @@ "tosidebar": true, | ||
"statusType": "auto", | ||
"x": 740, | ||
"y": 340, | ||
"x": 880, | ||
"y": 320, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "ef89bf5a8213f87a", | ||
"id": "cde509588ef91d55", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 1: Get an API key on semilimes.com", | ||
"name": "Step 5: In your semilimes app, login with your subaccount and check the new message in the channel", | ||
"info": "", | ||
"x": 240, | ||
"y": 220, | ||
"x": 420, | ||
"y": 520, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "3098c1296a8f2791", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 3: Trigger this flow and look at your contacts' AccountId in the final debug node", | ||
"info": "", | ||
"x": 370, | ||
"y": 300, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "08a7ac41f90de811", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 4: Assign a previously got AccountId to the RecipientId of the ActionSelector node", | ||
"info": "", | ||
"x": 380, | ||
"y": 380, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "056b11cb8540c85c", | ||
"type": "comment", | ||
"z": "60aa84f35b43b2ca", | ||
"name": "Step 5: Trigger this flow to send a message to the chosen contact", | ||
"info": "", | ||
"x": 310, | ||
"y": 420, | ||
"wires": [] | ||
} | ||
] | ||
] |
@@ -24,3 +24,3 @@ [ | ||
"x": 74, | ||
"y": 799, | ||
"y": 659, | ||
"w": 652, | ||
@@ -30,87 +30,2 @@ "h": 82 | ||
{ | ||
"id": "fa6f0ce1f5bb3e30", | ||
"type": "inject", | ||
"z": "03f230443c464b5e", | ||
"name": "", | ||
"props": [ | ||
{ | ||
"p": "payload" | ||
}, | ||
{ | ||
"p": "topic", | ||
"vt": "str" | ||
} | ||
], | ||
"repeat": "", | ||
"crontab": "", | ||
"once": false, | ||
"onceDelay": 0.1, | ||
"topic": "", | ||
"payload": "", | ||
"payloadType": "date", | ||
"x": 160, | ||
"y": 160, | ||
"wires": [ | ||
[ | ||
"98acef5587698b7b" | ||
] | ||
] | ||
}, | ||
{ | ||
"id": "98acef5587698b7b", | ||
"type": "sme-main-actionSelector", | ||
"z": "03f230443c464b5e", | ||
"actionName": "channel_my", | ||
"recipientId": "", | ||
"recipientIdType": "str", | ||
"messageId": "", | ||
"messageIdType": "str", | ||
"limit": 0, | ||
"limitType": "num", | ||
"recipientIds": "", | ||
"recipientIdsType": "str", | ||
"groupChatId": "", | ||
"groupChatIdType": "str", | ||
"channelId": "", | ||
"channelIdType": "str", | ||
"x": 370, | ||
"y": 160, | ||
"wires": [ | ||
[ | ||
"945ead66a1316647" | ||
] | ||
] | ||
}, | ||
{ | ||
"id": "c38e10f2c644a37f", | ||
"type": "debug", | ||
"z": "03f230443c464b5e", | ||
"name": "debug 49", | ||
"active": true, | ||
"tosidebar": true, | ||
"console": false, | ||
"tostatus": false, | ||
"complete": "_sme.responseMsgs[0].data", | ||
"targetType": "msg", | ||
"statusVal": "", | ||
"statusType": "auto", | ||
"x": 760, | ||
"y": 160, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "945ead66a1316647", | ||
"type": "sme-main-sender", | ||
"z": "03f230443c464b5e", | ||
"connector": "fa4257e98eaed462", | ||
"async": "0", | ||
"x": 570, | ||
"y": 160, | ||
"wires": [ | ||
[ | ||
"c38e10f2c644a37f" | ||
] | ||
] | ||
}, | ||
{ | ||
"id": "956f9a128667a6f0", | ||
@@ -126,12 +41,2 @@ "type": "comment", | ||
{ | ||
"id": "018d064dad3b73bb", | ||
"type": "comment", | ||
"z": "03f230443c464b5e", | ||
"name": "Step 1: Retrieve and select one of the existing channels for this account", | ||
"info": "", | ||
"x": 330, | ||
"y": 100, | ||
"wires": [] | ||
}, | ||
{ | ||
"id": "95fea712dc60ba78", | ||
@@ -158,3 +63,3 @@ "type": "inject", | ||
"x": 210, | ||
"y": 380, | ||
"y": 240, | ||
"wires": [ | ||
@@ -175,3 +80,3 @@ [ | ||
"x": 700, | ||
"y": 380, | ||
"y": 240, | ||
"wires": [ | ||
@@ -195,3 +100,3 @@ [ | ||
"x": 670, | ||
"y": 420, | ||
"y": 280, | ||
"wires": [ | ||
@@ -222,3 +127,3 @@ [ | ||
"x": 680, | ||
"y": 460, | ||
"y": 320, | ||
"wires": [ | ||
@@ -245,3 +150,3 @@ [ | ||
"x": 490, | ||
"y": 380, | ||
"y": 240, | ||
"wires": [ | ||
@@ -255,3 +160,3 @@ [ | ||
"id": "6cc5dfcca8f2f468", | ||
"type": "sme-main-actionSelector", | ||
"type": "sme-main-intent", | ||
"z": "03f230443c464b5e", | ||
@@ -272,3 +177,3 @@ "actionName": "channel_message_send", | ||
"x": 1090, | ||
"y": 460, | ||
"y": 320, | ||
"wires": [ | ||
@@ -294,3 +199,3 @@ [ | ||
"x": 1240, | ||
"y": 540, | ||
"y": 400, | ||
"wires": [] | ||
@@ -302,6 +207,6 @@ }, | ||
"z": "03f230443c464b5e", | ||
"connector": "fa4257e98eaed462", | ||
"connector": "", | ||
"async": "0", | ||
"x": 1170, | ||
"y": 500, | ||
"y": 360, | ||
"wires": [ | ||
@@ -340,3 +245,3 @@ [ | ||
"x": 200, | ||
"y": 440, | ||
"y": 300, | ||
"wires": [ | ||
@@ -352,6 +257,6 @@ [ | ||
"z": "03f230443c464b5e", | ||
"name": "Step 2: Send a control form to the channel and save its form and the message Id for further updates", | ||
"name": "Step 1: Send a control form to a channel and save its form and the message Id for further updates", | ||
"info": "", | ||
"x": 420, | ||
"y": 260, | ||
"x": 410, | ||
"y": 140, | ||
"wires": [] | ||
@@ -366,3 +271,3 @@ }, | ||
"x": 630, | ||
"y": 300, | ||
"y": 180, | ||
"wires": [] | ||
@@ -374,5 +279,5 @@ }, | ||
"z": "03f230443c464b5e", | ||
"connector": "fa4257e98eaed462", | ||
"connector": "", | ||
"x": 170, | ||
"y": 660, | ||
"y": 520, | ||
"wires": [ | ||
@@ -398,3 +303,3 @@ [ | ||
"x": 200, | ||
"y": 840, | ||
"y": 700, | ||
"wires": [ | ||
@@ -418,3 +323,3 @@ [ | ||
"x": 270, | ||
"y": 480, | ||
"y": 340, | ||
"wires": [ | ||
@@ -433,3 +338,3 @@ [ | ||
"x": 490, | ||
"y": 560, | ||
"y": 420, | ||
"wires": [] | ||
@@ -446,3 +351,3 @@ }, | ||
"x": 450, | ||
"y": 660, | ||
"y": 520, | ||
"wires": [ | ||
@@ -461,3 +366,3 @@ [ | ||
"x": 870, | ||
"y": 460, | ||
"y": 320, | ||
"wires": [ | ||
@@ -476,3 +381,3 @@ [ | ||
"x": 1050, | ||
"y": 700, | ||
"y": 560, | ||
"wires": [ | ||
@@ -503,3 +408,3 @@ [ | ||
"x": 430, | ||
"y": 840, | ||
"y": 700, | ||
"wires": [ | ||
@@ -518,3 +423,3 @@ [ | ||
"x": 310, | ||
"y": 600, | ||
"y": 460, | ||
"wires": [] | ||
@@ -536,3 +441,3 @@ }, | ||
"x": 630, | ||
"y": 840, | ||
"y": 700, | ||
"wires": [ | ||
@@ -556,3 +461,3 @@ [ | ||
"x": 820, | ||
"y": 660, | ||
"y": 520, | ||
"wires": [ | ||
@@ -576,3 +481,3 @@ [ | ||
"x": 840, | ||
"y": 720, | ||
"y": 580, | ||
"wires": [ | ||
@@ -586,3 +491,3 @@ [ | ||
"id": "98ad87a92732964b", | ||
"type": "sme-main-actionSelector", | ||
"type": "sme-main-intent", | ||
"z": "03f230443c464b5e", | ||
@@ -603,3 +508,3 @@ "actionName": "channel_message_update", | ||
"x": 1180, | ||
"y": 760, | ||
"y": 620, | ||
"wires": [ | ||
@@ -615,6 +520,6 @@ [ | ||
"z": "03f230443c464b5e", | ||
"connector": "fa4257e98eaed462", | ||
"connector": "", | ||
"async": "0", | ||
"x": 1270, | ||
"y": 820, | ||
"y": 680, | ||
"wires": [ | ||
@@ -640,3 +545,3 @@ [ | ||
"x": 1360, | ||
"y": 880, | ||
"y": 740, | ||
"wires": [] | ||
@@ -651,5 +556,5 @@ }, | ||
"x": 420, | ||
"y": 700, | ||
"y": 560, | ||
"wires": [] | ||
} | ||
] |
@@ -14,3 +14,3 @@ [ | ||
"z": "4c42249f853d2aef", | ||
"connector": "fa4257e98eaed462", | ||
"connector": "", | ||
"filePath": "", | ||
@@ -117,3 +117,3 @@ "filePathType": "str", | ||
"id": "8903cd528fdcdf82", | ||
"type": "sme-main-actionSelector", | ||
"type": "sme-main-intent", | ||
"z": "4c42249f853d2aef", | ||
@@ -145,3 +145,3 @@ "actionName": "channel_message_send", | ||
"z": "4c42249f853d2aef", | ||
"connector": "fa4257e98eaed462", | ||
"connector": "", | ||
"async": "0", | ||
@@ -148,0 +148,0 @@ "x": 770, |
{ | ||
"name": "@semilimes/node-red-semilimes", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "The new semilimes connector which integrates with the public API", | ||
@@ -15,3 +15,3 @@ "scripts": { | ||
"sme-main-connector": "src/sme-main-connector.js", | ||
"sme-main-actionselector": "src/sme-main-actionSelector.js", | ||
"sme-main-intent": "src/sme-main-intent.js", | ||
"sme-main-sender": "src/sme-main-sender.js", | ||
@@ -18,0 +18,0 @@ "sme-main-listener": "src/sme-main-listener.js", |
@@ -48,17 +48,16 @@ # Node-RED semilimes connector | ||
2. Add an `Action Selector` node and select the `Account - Get Contacts` to get a list of contacts to send a message to. | ||
2. Add an `Intent` node and config its `Connector` property to create a `connector` configuration. Configure the node by selecting the `Channel - Create` intent and entering a title for the new channel. | ||
![Config connector node](resources/images/connector_node_properties.jpg) | ||
3. Add a `sender` node then config its `Connector` property to create a `connector` configuration. | ||
![Property editor of listener node](resources/images/sender_node_properties.jpg) | ||
1. Add a `sender` node then config its `Connector` property by selecting the previously created connector. | ||
2. ![Property editor of sender node](resources/images/sender_node_properties.jpg) | ||
1. Configure the `connector` node with your API key and connect it to semilimes. | ||
![Config connector node](resources/images/connector_node_properties.jpg) | ||
1. Run the flow and get your contacts list. Save the preferred AccountId | ||
3. Run the flow to create the new channel. | ||
2. In another flow, add a `Text` node with a message | ||
4. In another flow, add a `Text` node with a message | ||
3. Add an `Action Selector` node and select `P2P - Send Message` and set the AccountId you saved in the RecipientId field | ||
5. Add an `Intentr` node and select `Channel - Send Message` and configure the channel | ||
4. Add a `sender` node and run. | ||
6. Add a `sender` node and run. | ||
@@ -65,0 +64,0 @@ The flow should look like this [example](https://github.com/semilimes/nodered-publicapi-connector/blob/main/examples/Connect%20To%20semilimes%20flow.json) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
648363
92
3887
84