# Later Note String Input

**URL:** https://discourse.nodered.org/t/later-note-string-input/3140
**Category:** Dashboard
**Created:** [14 September 2018 08:05 UTC](https://discourse.nodered.org/t/later-note-string-input/3140 "2018-09-14T08:05:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![GChapo](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GChapo](https://discourse.nodered.org/u/GChapo)
#### Post date: [14 September 2018 08:05 UTC](https://discourse.nodered.org/t/later-note-string-input/3140/1 "2018-09-14T08:05:47Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/c/c0df6e450b14b07e8b9db92b6ef5c02ca3e9413e.png)

Hello,

I have a template node which outputs the required scheduled time from the Dashboard, say "07:30", then I have a simple function node that feeds into a later node with a string which reads "at 07:30". However, the light comes on immediately and the later node seems to ignore the future action request.

Can anybody please advise where I have gone wrong please?

Glenn

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [14 September 2018 09:00 UTC](https://discourse.nodered.org/t/later-note-string-input/3140/2 "2018-09-14T09:00:46Z")

</div>

is something showing in the debug node right away?  
Do you need to add 'AM' or 'PM' to the string?

---

<div class="post-metadata">

### Author: ![GChapo](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GChapo](https://discourse.nodered.org/u/GChapo)
#### Post date: [14 September 2018 09:03 UTC](https://discourse.nodered.org/t/later-note-string-input/3140/3 "2018-09-14T09:03:28Z")

</div>

Hello,

No need for AM or PM. If I copy the output debug message (without speech marks) and paste in the schedule field in the later node and start with an inject node it works perfectly.

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [14 September 2018 09:07 UTC](https://discourse.nodered.org/t/later-note-string-input/3140/4 "2018-09-14T09:07:03Z")

</div>

can you provide your flow (put three backtic'sd before and after it)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [14 September 2018 09:09 UTC](https://discourse.nodered.org/t/later-note-string-input/3140/5 "2018-09-14T09:09:56Z")

</div>

My guess is that the string you create in the function node is invalid which is why the msg gets passed on right away

> If no schedule is supplied the **msg** is sent straight out. In the case where the schedule is invalid, **node.warn()** will be called with the offending schedule and the processing continues as if there was no schedule.

---

<div class="post-metadata">

### Author: ![GChapo](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@GChapo](https://discourse.nodered.org/u/GChapo)
#### Post date: [14 September 2018 09:17 UTC](https://discourse.nodered.org/t/later-note-string-input/3140/6 "2018-09-14T09:17:14Z")

</div>

`[{"id":"eff33769.aa8b18","type":"change","z":"d46a3013.43b55","name":"Set on 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":80,"wires":[["ce2dbc01.a23e6"]]},{"id":"ce2dbc01.a23e6","type":"mqtt out","z":"d46a3013.43b55","name":"","topic":"tasmota/SonoffDual/cmnd/Power1","qos":"2","retain":"true","broker":"2134f509.e7ef2a","x":780,"y":80,"wires":[]},{"id":"d6915f57.5179e","type":"ui_template","z":"d46a3013.43b55","group":"13fe3331.06cf5d","name":"","order":0,"width":"6","height":"2","format":"<div>\n <input type=\"time\" ng-model=\"usr_time\">\n <button ng-click=\"settime()\">Confirm</button>\n <p id=\"new_time\">{{usr_time | date:'HH:mm'}}</p>\n </div>\n\n<script>\n(function($scope) {\n var now = new Date();\n $scope.usr_time = new Date(1970, 0, 1, now.getHours(), now.getMinutes(), 0);\n\n $scope.settime = function() {\n var time = document.getElementById(\"new_time\");\n $scope.send({payload: time.innerText});\n };\n})(scope);\n</script>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":100,"y":140,"wires":[["6fd5dc85.6164c4","3d642840.a42c08"]]},{"id":"4d4c882e.b45618","type":"debug","z":"d46a3013.43b55","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":570,"y":40,"wires":[]},{"id":"9603f351.e3c78","type":"inject","z":"d46a3013.43b55","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":80,"wires":[["aa9ec361.b381c"]]},{"id":"aa9ec361.b381c","type":"later","z":"d46a3013.43b55","name":"","schedule":"","x":410,"y":80,"wires":[["eff33769.aa8b18","4d4c882e.b45618"]]},{"id":"6fd5dc85.6164c4","type":"debug","z":"d46a3013.43b55","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":510,"y":200,"wires":[]},{"id":"3d642840.a42c08","type":"function","z":"d46a3013.43b55","name":"","func":"msg.payload ='at ' + msg.payload\nreturn msg;","outputs":1,"noerr":0,"x":240,"y":120,"wires":[["aa9ec361.b381c"]]},{"id":"2134f509.e7ef2a","type":"mqtt-broker","z":"","name":"192.168.0.62","broker":"192.168.0.62","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"13fe3331.06cf5d","type":"ui_group","z":"","name":"Schedule","tab":"1919913d.9cde4f","disp":true,"width":"6","collapse":false},{"id":"1919913d.9cde4f","type":"ui_tab","z":"","name":"Schedule","icon":"dashboard"}]`
