-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcron-node.html
35 lines (33 loc) · 1.16 KB
/
cron-node.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script type="text/javascript">
RED.nodes.registerType('cron',{
category: "input",
icon: "timer.png",
color: "#a6bbcf",
outputs: 1,
defaults: {
name: { value: "" },
crontab: { value: "* * * * * *", required: true }
},
label: function() {
return this.name || "CRON"
}
});
</script>
<script type="text/x-red" data-template-name="cron">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-topic"><i class="icon-tasks"></i> Topic</label>
<input type="text" id="node-input-topic" placeholder="Topic">
</div>
<div class="form-row">
<label for="node-input-crontab"><i class="fa fa-clock-o"></i> CRON Expression</label>
<input type="text" id="node-input-crontab" placeholder="CRON">
</div>
</script>
<script type="text/x-red" data-help-name="cron">
<p>Start flow by CRON expression</p>
<b>msg.payload</b>. msg.payload is timestamp from execution.</p>
</script>