diff --git a/social/twitter/27-twitter.html b/social/twitter/27-twitter.html index 4ac7729f..8b958d76 100644 --- a/social/twitter/27-twitter.html +++ b/social/twitter/27-twitter.html @@ -124,7 +124,8 @@
Use space for and and comma , for or when searching for multiple terms. If you want to pass in the term(s) via the msg.payload
, leave the field blank.
Use space for and and comma , for or when searching for multiple terms.
+ If you want to pass in the search term(s) via the msg.payload
, leave the for field blank.
Sets the msg.topic
to tweets/ and then appends the senders screen name.
Sets msg.location
to the tweeters location if known.
Sets Something went wrong with the authentication process. The following error was returned: __statusCode__: __errorData__ One known cause of this type of failure is if the clock is wrong on system running Node-RED Authorised - you can close this window and return to Node-REDmsg.tweet
to the full tweet object as documented by Twitter.
@@ -145,8 +146,8 @@
name: {value:""},
topic: {value:"tweets"}
},
- inputs:0,
- outputs:1,
+ inputs: 1,
+ outputs: 1,
icon: "twitter.png",
label: function() {
if (this.name) {
@@ -158,7 +159,10 @@
} else if (this.user == "user") {
return this.tags+" "+this._("twitter.label.tweetslabel");
}
- return this.tags;
+ else if (this.user == "true") {
+ return this._("twitter.label.followers");
+ }
+ return "twitter";
},
labelStyle: function() {
return this.name?"node_label_italic":"";
@@ -181,19 +185,18 @@
$("#node-input-tags-label").html(forlabel);
$("#node-input-tags").attr("placeholder",forph);
}
-
});
$("#node-input-user").change();
- },
- oneditsave: function() {
- if ($('#node-input-tags').val() === '' && $("#node-input-user option:selected").val() != 'dm' && $("#node-input-user option:selected").val() != 'user') {
- this.inputs=1;
- }
- else {
- //set back the default state of 0 inputs
- this.inputs=0;
- }
- }
+ }//,
+ // oneditsave: function() {
+ // if ($('#node-input-tags').val() === '' && $("#node-input-user option:selected").val() != 'dm' && $("#node-input-user option:selected").val() != 'user') {
+ // this.inputs=1;
+ // }
+ // else {
+ // //set back the default state of 0 inputs
+ // this.inputs=0;
+ // }
+ // }
});
diff --git a/social/twitter/27-twitter.js b/social/twitter/27-twitter.js
index cbaa2978..a91a187f 100644
--- a/social/twitter/27-twitter.js
+++ b/social/twitter/27-twitter.js
@@ -88,59 +88,64 @@ module.exports = function(RED) {
if (this.user === "user") {
node.poll_ids = [];
node.since_ids = {};
+ node.status({});
var users = node.tags.split(",");
- //if (users == '') node.warn("User option selected but no users specified");
- if (users.length === 0) { node.warn(RED._("twitter.warn.nousers")); }
- for (var i=0; i
The Twitter API WILL NOT deliver 100% of all tweets.
Tweets of who you follow will include their retweets and favourites.",
+ "tip": "Tip: Use commas without spaces between multiple search terms. Comma = OR, Space = AND.
The Twitter API WILL NOT deliver 100% of all tweets.
Tweets of who you follow will include their retweets and favourites.
Leave for blank to set using msg.payload.",
"status": {
"using-geo": "Using geo location: __location__",
"tweeting": "tweeting",
@@ -27,7 +28,7 @@
},
"warn": {
"nousers":"User option selected but no users specified",
- "waiting":"Waiting for search term"
+ "waiting":"Waiting to search"
},
"errors": {
"ratelimit":"tweet rate limit hit",
@@ -38,7 +39,6 @@
"truncated":"truncated tweet greater than 140 characters",
"sendfail":"send tweet failed: __error__",
"nopayload":"no payload to tweet",
-
"oauthbroke":"something in twitter oauth broke.",
"oautherror": "