UNPKG

node-red-contrib-cron

Version:
35 lines (33 loc) 1.19 kB
<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>