Is this a bug in CronPlus?


I am using the (excellent !) Cron Plus node.

I have it configured to fire every 5 minutes starting at 1 minute past the hour - it is acting as a trigger to fire off a web request for price updates from my electricity provider.

This works fine - however i now want to add an additional payload in with a Timestamp so i have added the Moment node in.

However it does not appear to reflect the property when it is called each time, but rather the time when i first added it to the flow.

Debug screenshots first


And here is the flow - you will not be able to run the HTTP request as it needs an API key

[{"id":"9b7cdaf6.c8cd98","type":"debug","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Current Price","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":400,"wires":[]},{"id":"16a959bc.9524c6","type":"http request","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Get Current Price ","method":"GET","ret":"obj","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"bearer","x":710,"y":400,"wires":[["9b7cdaf6.c8cd98","70001808.632f98","99bac1ce.5341c","fcf3917.0b7ce7"]]},{"id":"70001808.632f98","type":"debug","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Per KWH Price","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload[1].perKwh","targetType":"msg","statusVal":"","statusType":"auto","x":1000,"y":440,"wires":[]},{"id":"1182117f.dba1ef","type":"cronplus","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"Trigger every 5 minutes - 1 minute past the hour","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[{"name":"schedule1","topic":"schedule1","payloadType":"date","payload":"","expressionType":"cron","expression":"0 1/5 * * * ? *","location":"","offset":"0","solarType":"all","solarEvents":"sunrise,sunset"}],"x":320,"y":400,"wires":[["571f9b80.4a68c4"]]},{"id":"571f9b80.4a68c4","type":"moment","z":"88029ce.abbab6","g":"7ca2c26f.db1b2c","name":"ReadingTime","topic":"","input":"payload","inputType":"msg","inTz":"Australia/Sydney","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:MM","locale":"en-AU","output":"TimePeriod","outputType":"msg","outTz":"Australia/Sydney","x":550,"y":440,"wires":[["16a959bc.9524c6"]]}]

As you can see in the Debug window i am trying to add a new msg property Timestamp - this appears to have made its way through the flow - but as you can see in the debug window it is showing 18:07 whereas the debug itself happened at 18:43

Can anyone see what i am doing wrong ? I assume that Cronplus would just push through a normal timestamp ?

P.S. the times for the run are different (i.e. 6:43PM) because i ran it manually.

The same thing occurs if i let it fire off at the designated time


Hi .. the problem is with the Output format in your Moment node ..


it should have been .. HH:mm .. change to small mm for minutes otherwise its gonna use the month (MM)


Thanks Mate - that was really stupid of me (Facepalm!!)


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.