Closed goczen closed 6 years ago
Seems like a good idea, I'll see what I can do.
Any thoughts on how you'd like the dates presented and formatted?
Had a quick stab, output message looks like this:
{
"topic": "info",
"payload": {
"on": "2017-11-29 07:21",
"off": "2017-11-29 16:00"
}
}
Could we stick to w3 formats, e.g. 1997-07-16T19:20:30+01:00 or similar ..
On 28 November 2017 at 23:26, biddster notifications@github.com wrote:
Had a quick stab, output message looks like this:
{ "topic": "info", "payload": { "on": "2017-11-29 07:21", "off": "2017-11-29 16:00" }, " }}
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/biddster/node-red-contrib-schedex/issues/26#issuecomment-347698845, or mute the thread https://github.com/notifications/unsubscribe-auth/AASMJjdaNoeoRoTXRsRR6ignbHlIpULIks5s7JaNgaJpZM4QthLg .
Hi I tested it, great job. Could you insert the act. status in the payload obj, too. "status": "ON" or "OFF" Br. Norbert
I'll look into a state property on the info object. I'll also emit the on/off times in iso 8601 format.
Not sure if you saw my quick convo with Knolleary ... he's not thought about standardising date usage, but suggested Wed, 14 Jun 2017 07:00:00 GMT as per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString
Nick
On 29 November 2017 at 22:57, biddster notifications@github.com wrote:
I'll look into a state property on the info object. I'll also emit the on/off times in iso 8601 format.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/biddster/node-red-contrib-schedex/issues/26#issuecomment-348025003, or mute the thread https://github.com/notifications/unsubscribe-auth/AASMJi0THpobehcxHiIoQw14r_eQXkpYks5s7eFagaJpZM4QthLg .
toUTCString()
is just fine by me.
Released in 1.1.0.
It is a very useful, Lot of thanks.
Hi Can I read the actually on and off time from this node? If not, could you develop it? example I send the "info" in msg.payload and I get the on time and off time. Br. Norbert