update social nodes info style

This commit is contained in:
Dave Conway-Jones
2016-03-02 13:26:53 +00:00
parent 0880ad3987
commit b6116abce3
25 changed files with 104 additions and 98 deletions

View File

@@ -86,7 +86,7 @@
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips">The <b>To</b> field is optional. If not set uses the <b>msg.topic</b> property of the message.</div>
<div class="form-tips">The <b>To</b> field is optional. If not set uses the <code>msg.topic</code> property of the message.</div>
</script>
<script type="text/x-red" data-help-name="xmpp out">

View File

@@ -6,7 +6,7 @@ A <a href="http://nodered.org" target="_new">Node-RED</a> node to talk to an XMP
Install
-------
Run the following command in the root directory of your Node-RED install
Run the following command in your Node-RED user directory - typically `~/.node-red`
npm install node-red-node-xmpp
@@ -16,29 +16,30 @@ Usage
Provides two nodes - one to send messages, and one to receive.
###Receive
### Receive
Connects to an XMPP server to receive messages.</p>
The <b>Buddy</b> field is the id of the buddy or room you want to receive messages from.
The **Buddy** field is the id of the buddy or room you want to receive messages from.
Incoming messages will appear as <b>msg.payload</b> on the first output, while <b>msg.topic</b> will contain who it is from.
Incoming messages will appear as `msg.payload` on the first output, while `msg.topic` will contain who it is from.
The second output will show the presence and status of a user in <b>msg.payload</b>. Again <b>msg.topic</b> will hold the user.
The second output will show the presence and status of a user in `msg.payload`.
Again `msg.topic` will hold the user.
###Send
### Send
Connects to an XMPP server to send messages.
The <b>To</b> field is optional. If not set the <b>msg.topic</b> property of the message is used to set that value.
The **To** field is optional. If not set the `msg.topic` property of the message is used to set that value.
If you are joining a chat room then the <b>To</b> field must be filled in with the room name.
If you are joining a chat room then the **To** field must be filled in with the room name.
You may also send a msg with <b>msg.presence</b> to set your presence to one of
You may also send a msg with `msg.presence` to set your presence to one of
1. chat
2. away
3. dnd
4. xa
If you do so then the <b>msg.payload</b> is used to set your status message.</p>
If you do this then the `msg.payload` is used to set your status message.

View File

@@ -1,6 +1,6 @@
{
"name" : "node-red-node-xmpp",
"version" : "0.1.4",
"version" : "0.1.5",
"description" : "A Node-RED node to talk to an XMPP server",
"dependencies" : {
"simple-xmpp" : "1.3.*"