Inject Node does not Trigger

Hi,

I am using an "Inject" Node to trigger a time-based event.

image

But nothing happens at 10:30.

If I read the actual time in a function node: var now = new Date().getTime();
it shows the right MESZ 10:30

but the inject does not trigger ...

BR
Gawan

What time and timezone is set on the computer where node-red runs (not the browser, the node-red backend)?

PS, what node-red and node-js version are you runnung? and is this a direct/os install or docker or other?

I do not know - this is a Synology Docker installation and I have no access to it.

Is there a way to use the same Time-Information like Date().getTime() for my trigger ?

In a function node...

const now = new Date();
const now_ts = now.valueOf();
const now_local = now.toLocaleString();
const now_iso = now.toISOString();
const now_utc = now.toUTCString();
const offset = now.getTimezoneOffset();
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
node.warn({tz, offset, now, now_ts, now_local, now_iso, now_utc})

What do you see in debug sidebar when the function is triggered?

What does it say in the node-red hamburger menu (top right menu button)

image

here it says v 1.1.2

ok, so that is a very old version of node-red & uses a now unsupported version of cron for scheduling events.

I recommend you install latest version (2.2.2)

PS, see how you get a notification when I reply to you?

If you dont use the reply button next to my message, I have no idea you have replied to me.

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