# Inject node with cronti

**URL:** https://discourse.nodered.org/t/inject-node-with-cronti/63438
**Category:** Feature Requests
**Created:** [4 June 2022 06:41 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438 "2022-06-04T06:41:02Z")
**Posts on this page:** 10
**Page:** 3

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [8 June 2022 21:39 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/41 "2022-06-08T21:39:05Z")

</div>

> [@buglss](#):
>
> I would be very grateful if you try my node and give your positive or negative feedback.

Tried your latest, but still not working as expected.  
The schedule is set to start at 22:35hrs, yet the node is producing outputs as soon as deployed (22:28hrs).

 ![cronti](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/e/cedd9a389d0f7983dcb5fe012751c1be365db4c4.jpeg)

---

<div class="post-metadata">

### Author: ![buglss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/buglss/32/59277_2.png) [@buglss](https://discourse.nodered.org/u/buglss)
#### Post date: [9 June 2022 04:28 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/42 "2022-06-09T04:28:11Z")

</div>

Thanks for your feedback and your contribution of the package I developed.

A new version has been released for the start early cronjob from [node-red-clone-inject-with-cronti](https://github.com/buglss/node-red-clone-inject-with-cronti) - pushed to [node-red:dev](https://github.com/node-red/node-red/tree/dev) from [buglss:inject-node-with-cronti](https://github.com/buglss/node-red/tree/inject-node-with-cronti) branch for pull request.

Release Note For Demo Package: [Release v1.0.13 · buglss/node-red-clone-inject-with-cronti · GitHub](https://github.com/buglss/node-red-clone-inject-with-cronti/releases/tag/v1.0.13)

Summary:

- Bug fixed to start date for intervals two dates option. ([81648d6](https://github.com/buglss/node-red-clone-inject-with-cronti/commit/81648d685954a53173e80c2f14e3ce466b6d5714))

![inject-node-with-cronti-fix-2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c02ba8f894d2242b52310eedd53a81a28e2f32ff.png)

---

<div class="post-metadata">

### Author: ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)
#### Post date: [9 June 2022 18:43 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/43 "2022-06-09T18:43:03Z")

</div>

Is the Crontime feature working OK?

![cronti2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8db120b9db46e138ff4b561fddaeedadb820bb7c.jpeg)

Using the `Intervals two dates` feature example above, the node status shows the resultant Cron expression and start & finish times.  
That's a lot of information for node status, and the date/time is not displayed in Local time, so currently in the UK there is a 1 hour difference between what is input into the node settings, and what is displayed below it (new users may be confused by that).

![cronti](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/5/55e44e06d1dc1173885986a43e94a2f6c5ac8008.jpeg)

However, note the Cron expression - `*/1 9 9-9 6-6 *`  
If that expression is added to Cronti, the result is...

 ![cronti3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/8/d85e550ab8a641cb6431aa86b2f12104d81b4431.jpeg)

Whilst entering the same expression in the `node-red-contrib-cron-plus` node, it is interpreted correctly

![cronplus](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68a50c8260f0123883bb66fd74297b9b56629d2d.png)

> [@buglss](#):
>
> who don't want to install complex packages like cron+ for simple additions

To be honest, I currently use `cron+` and find it easier to use than the Cronti additions.  
I've looked at the other Cronti features, but I found difficulty in understanding all of their logic, despite reading your [post above](https://discourse.nodered.org/t/inject-node-with-cronti/63438/8) and the node/git read-me links.

_For those reasons (and the bugs) I'm not doing any more testing with Cronti, but thanks for putting the ideas forward for consideration. I'm sure that the node-RED team will consider your PR, and update you when a decision is made_

---

<div class="post-metadata">

### Author: ![buglss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/buglss/32/59277_2.png) [@buglss](https://discourse.nodered.org/u/buglss)
#### Post date: [10 June 2022 09:08 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/44 "2022-06-10T09:08:18Z")

</div>

Thank you everyone. @Paul-Reed I appreciate you testing my npm package and providing feedback. @TotallyInformation thank you for your constructive criticism and information about the certificate. @Steve-Mcl thank you for your constructive criticism. @dceejay thank you for the information about the certificate.

I was expecting it to have bugs as it is a new package. I will fix these bugs with more work.

My mistake was to compare the new package with another package that was already using. I apologize if I acted offensively because of this. With the excitement of releasing the first package, I could not look realistically.

In my opinion, the Cron+ package is a successful package and it does not have a relatively complex structure. This inject version that I extended with cronti has its own simply and well. But that doesn't make it any better than the cron+ package.

This core development I have done aims to solve the problem with core nodes without the need to install a new package in a zero project. Yes, proven packages like cron+ can be used for more advanced cron jobs. But before going for this additional install, he should not install a new package if these simple features in the core node are sufficient for that person. My aim is to add additional features to the simply and well core inject node without breaking this simply and well concept.

If you've come this far with patience, I have 2 bonus information 🙂 I haven't tested its feasibility yet (POC), it's just an idea. I plan to implement these two ideas in the future.

Bonus 1: Focus Node From URL (e.g. https://localhost:1880red/#flow/\<flowId\>?node=\<nodeId\>)  
Bonus 2: Display Detail of Request for http-request Node (e.g. display flow popup or tooltip whe mouse on hover or click event of http-request node)

Thank you everyone for your feedback and support.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 June 2022 13:46 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/45 "2022-06-10T13:46:48Z")

</div>

It's great to have people come and challenge assumptions / the status quo with new ideas, and to provoke a good debate to air multiple viewpoints - especially with examples.

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 June 2022 13:53 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/46 "2022-06-10T13:53:50Z")

</div>

> [@buglss](#):
>
> If you've come this far with patience, I have 2 bonus information 🙂 I haven't tested its feasibility yet (POC), it's just an idea. I plan to implement these two ideas in the future.
> 
> Bonus 1: Focus Node From URL (e.g. https://localhost:1880red/#flow/?node=)  
> Bonus 2: Display Detail of Request for http-request Node (e.g. display flow popup or tooltip whe mouse on hover or click event of http-request node)

Just remember, that PR's that add new features without any prior discussion are likely to be closed. Our contribution guidelines explain how we prefer contributions to be made. Making a comment in a thread like this does not satisfy the 'has been discussed on the forum' criteria.

---

<div class="post-metadata">

### Author: ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)
#### Post date: [10 June 2022 15:35 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/47 "2022-06-10T15:35:22Z")

</div>

We all have great ideas for new features to the core nodes but from experience over the years, these only happen slowly.

Which is ok 🙂

I have been wanting major changes to the switch mode but have learnt to be patient.

You've had the skills and knowledge to make your own contrib node so you are lucky 🙂

IMO the inject node needs to be simple to use as possible as it's the very first node that beginners will use

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [10 June 2022 17:54 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/48 "2022-06-10T17:54:04Z")

</div>

> [@buglss](#):
>
> Bonus 2: Display Detail of Request for http-request Node (e.g. display flow popup or tooltip whe mouse on hover or click event of http-request node)

Getting offtopic, but FYI I only use http-requests nodes without any url, always via `msg.url` and even route multiple nodes to a single http-request node with link nodes, to keep flows clean. another 2 cents.

---

<div class="post-metadata">

### Author: ![buglss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/buglss/32/59277_2.png) [@buglss](https://discourse.nodered.org/u/buglss)
#### Post date: [17 June 2022 04:25 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/49 "2022-06-17T04:25:54Z")

</div>

Hi everyone, I have published the package I developed the node-red core inject node as contrib.

Node-Red: [node-red-crontinject (node) - Node-RED](https://flows.nodered.org/node/@buglss/node-red-crontinject)  
npm: [@buglss/node-red-crontinject - npm](https://www.npmjs.com/package/@buglss/node-red-crontinject)  
cronti: [cronti - npm](https://www.npmjs.com/package/cronti)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [16 August 2022 04:26 UTC](https://discourse.nodered.org/t/inject-node-with-cronti/63438/50 "2022-08-16T04:26:01Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/inject-node-with-cronti/63438.md?page=2)
