node-red-contrib-snap4city-user
Version:
Nodes for Snap4city project, targeted to standard user (no developer)
65 lines (62 loc) • 2.48 kB
HTML
<!--/* NODE-RED-CONTRIB-SNAP4CITY-USER
Copyright (C) 2018 DISIT Lab http://www.disit.org - University of Florence
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */-->
<script type="text/javascript">
RED.nodes.registerType("twitter-last-tweet", {
category: 'S4CSocial',
color: '#FDD0A2',
defaults: {
name: {
value: ""
},
TwRtwChannel: {
value: "",
required: false
},
username: {
value: "",
required: false
},
password: {
value: "",
required: false
}
},
outputs: 1,
inputs: 1,
outputLabels: ["response"],
icon: "white-globe.png",
label: function () {
return this.name || "twitter-last-tweet";
}
});
</script>
<script type="text/x-red" data-template-name="twitter-last-tweet">
<div class="form-row">
<label for="node-input-name">Name</label>
<input type="text" autocomplete="off" id="node-input-name" placeholder="">
</div>
<div class="form-row">
<label for="node-input-TwRtwChannel">TwRtwChannel</label>
<input type="text" autocomplete="off" id="node-input-TwRtwChannel" placeholder="TwRtwChannel">
</div>
<div class="form-row">
<label for="node-input-username">Username</label>
<input type="text" autocomplete="off" id="node-input-username" placeholder="Username">
</div>
<div class="form-row">
<label for="node-input-password">Password</label>
<input type="password" id="node-input-password" placeholder="password">
</div>
</script>
<script type="text/x-red"
data-help-name="twitter-last-tweet">Retrieve last tweet and retweet related to a channel</script>