# Some Help about my flow

**URL:** <https://discourse.nodered.org/t/some-help-about-my-flow/58150>\
**Category:** General\
**Created:** [11 February 2022 13:44 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150 "2022-02-11T13:44:07Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [19 February 2022 16:38 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/21 "2022-02-19T16:38:28Z")

</div>

Try cron plus

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [19 February 2022 17:23 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/22 "2022-02-19T17:23:31Z")

</div>

I will try it thank you very much my friend.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 February 2022 17:32 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/23 "2022-02-19T17:32:11Z")

</div>

node-red-contrib-timeprop can do that for you.

Assuming you want it to keep repeating that.

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [21 February 2022 12:45 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/24 "2022-02-21T12:45:26Z")

</div>

> [@Colin](#):
>
> Assuming you want it to keep repeating that.

Dear @Colin I loaded timepromp node. And setting up like in photo but always send 0 , where did I mistake ?

 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f877933130db3019f07ef1f256d9067cfeb51710.png)

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [21 February 2022 12:46 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/25 "2022-02-21T12:46:19Z")

</div>

Dear friend my nodered version is old and didnt install cron plus node.I will try to upgrade nodered

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 February 2022 12:48 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/26 "2022-02-21T12:48:23Z")

</div>

> [@wtrk](#):
>
> Dear friend my nodered version is old

What version of node & node-red are you running?

Also, what os?

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [21 February 2022 12:56 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/27 "2022-02-21T12:56:53Z")

</div>

Im using raspian, downloaded from official site in 2019

![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/3/b36ef76f492a79663f4655310e45e1f9aa4b71fe.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [21 February 2022 13:00 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/28 "2022-02-21T13:00:31Z")

</div>

Yes, **very old**. You didnt state what nodejs version but it is likely V6 or V8 (out of support by several years)

I recommend you update your OS first THEN run the official Raspberry Pi node-red install script ([Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi) ) to get the latest version (v2.2.2). Also, you will need to append ` --node14` or ` --node16` to the script command to upgrade nodejs at the same time.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 February 2022 14:32 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/29 "2022-02-21T14:32:18Z")

</div>

> [@wtrk](#):
>
> but always send 0 , where did I mistake ?

What payload have you passed into it?

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [21 February 2022 14:55 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/30 "2022-02-21T14:55:06Z")

</div>

Just this one

```auto
[{"id":"5bc4fcf5.332164","type":"subflow","name":"Subflow 1","info":"","category":"","in":[{"x":60,"y":80,"wires":[{"id":"2c29ca9d.1f3726"}]}],"out":[{"x":920,"y":100,"wires":[{"id":"26fe58d.da0d2a8","port":0}]},{"x":540,"y":120,"wires":[{"id":"c3cccc67.eba87","port":0}]}]},{"id":"2c29ca9d.1f3726","type":"function","z":"5bc4fcf5.332164","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":200,"y":80,"wires":[["c3cccc67.eba87","dc32c467.fb1168"]]},{"id":"dc32c467.fb1168","type":"switch","z":"5bc4fcf5.332164","name":"allow only 1 ","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":390,"y":80,"wires":[["90e7351e.a17e68"],["54e68c10.45d2f4"]]},{"id":"c3cccc67.eba87","type":"trigger","z":"5bc4fcf5.332164","op1":"","op2":"Kapı 30 saniyedir açık!!","op1type":"nul","op2type":"str","duration":"30","extend":false,"units":"s","reset":"1","bytopic":"all","name":"","x":390,"y":120,"wires":[[]]},{"id":"90e7351e.a17e68","type":"change","z":"5bc4fcf5.332164","name":"High","rules":[{"t":"set","p":"bc","pt":"msg","to":"orange","tot":"str"},{"t":"set","p":"status","pt":"msg","to":"Kapalı","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":80,"wires":[["26fe58d.da0d2a8"]]},{"id":"54e68c10.45d2f4","type":"change","z":"5bc4fcf5.332164","name":"Low","rules":[{"t":"set","p":"bc","pt":"msg","to":"purple","tot":"str"},{"t":"set","p":"status","pt":"msg","to":"Açık","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":120,"wires":[["26fe58d.da0d2a8"]]},{"id":"26fe58d.da0d2a8","type":"function","z":"5bc4fcf5.332164","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"x":780,"y":100,"wires":[[]]},{"id":"6baf2c69.df7614","type":"ui_button","z":"2662f642.77ca6a","name":"","group":"f3de209f.b746","order":2,"width":"3","height":"1","passthru":false,"label":"B5 Kapı - 2 {{msg.status}}","color":"","bgcolor":"{{bc}}","icon":"","payload":"1","payloadType":"num","topic":"topic","x":890,"y":200,"wires":[[]]},{"id":"9e0a0911.330898","type":"dsm","z":"2662f642.77ca6a","name":"sensör_durumu","sm_config":"{\n \"triggerInput\": \"payload\",\n \"currentState\": \"running\",\n \"states\": {\n \"stopped\": {\n \"0\": \"running\"\n },\n \"running\": {\n \"1\": \"stopped\"\n }\n },\n \"methods\": {\n \"onBeforeTransition\": \"msg.pyload = msg.payload.toString();\",\n \"1\": \"sta.fill='green';msg.background='red';msg.label='S';\",\n \"0\": \"sta.fill='red';msg.background='green';msg.label='S';\"\n }\n}","x":690,"y":260,"wires":[["ce90a676.9d6348"]]},{"id":"ce90a676.9d6348","type":"template","z":"2662f642.77ca6a","name":"","field":"topic","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"INSERT INTO 'sensor_durumu' ('durum','epoc') VALUES ({{payload}},{{pyload}});","output":"str","x":880,"y":280,"wires":[[]]},{"id":"e450a569.aff438","type":"subflow:5bc4fcf5.332164","z":"2662f642.77ca6a","name":"Pin Status Monitoring","x":680,"y":220,"wires":[["6baf2c69.df7614"],["46b448d9.a208e8"]]},{"id":"46b448d9.a208e8","type":"ui_toast","z":"2662f642.77ca6a","position":"dialog","displayTime":"","highlight":"","outputs":1,"ok":"OK","cancel":"","topic":"Uyarı","name":"","x":890,"y":240,"wires":[[]]},{"id":"9ea12769.439998","type":"timeprop","z":"2662f642.77ca6a","name":"","cycleTime":600,"deadTime":"0","triggerPeriod":"10","invert":false,"x":360,"y":240,"wires":[["e450a569.aff438","9e0a0911.330898","1da1f3b6.4c415c"]]},{"id":"1da1f3b6.4c415c","type":"debug","z":"2662f642.77ca6a","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":610,"y":120,"wires":[]},{"id":"f3de209f.b746","type":"ui_group","z":"","name":"Finish","tab":"6f5ce300.48f7bc","disp":true,"width":"3","collapse":false},{"id":"6f5ce300.48f7bc","type":"ui_tab","z":"","name":"Mercedes-Benz Türk AŞ Kamyon Fabrikası Hol Kapıları","icon":"dashboard","order":1}]

```

---

<div class="post-metadata">

**Author:** ![wtrk](https://avatars.discourse-cdn.com/v4/letter/w/97f17d/32.png) [@wtrk](https://discourse.nodered.org/u/wtrk)\
**Post date:** [21 February 2022 14:57 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/31 "2022-02-21T14:57:01Z")

</div>

Actually I installled new version of raspian and also nodered but, after I install to sqlite and phplite admin then phpliteadmin always gives an error. many options I tried but didnt success it.  
I have preoblem phpliteadmin with new installation.

---

<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:** [22 April 2022 14:57 UTC](https://discourse.nodered.org/t/some-help-about-my-flow/58150/32 "2022-04-22T14:57:19Z")

</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/some-help-about-my-flow/58150.md?page=1)
