Stuck in deploy

hi guys i have problem i do deploy and now i cant connect to my node red... what i need to do i know what i am last do if is posible open i can easy remove thise node. ty and sorry for my eng

edit: now i am looking on google find node-red --safe function but when i run this i can see dasboard but ther is no my flow all is empty

Show us what you see in the terminal window when you run with --safe

this flow run my terrari control temperature humiditi heating foging and now dont work my lihard is not happy and i am mad bc i am make this :disappointed_relieved:

Why are you running it as root (sudo) & how did you install node-RED? It appears that you didn't use the installation script.

i think i need with sudo run... idc how i am install node red. i install them before 1year

ok now i am run without sudo

edit: but now i cant open NR in browser

I am not sure that the --safe option was present in node-red 0.18.7. It certainly does not seem to have started in safe mode.
In your situation I would probably upgrade using the pi install/upgrade script. Paul posted a link to that earlier.

ty soo much i install script and run --safe and change this problematic function. i post photo of function.
i try make function which will light my heater! depending on the time of day eg at night (20h-7h) to keep my temperature no higher than 20 C and per day (7h-20h) no more than 27 C
and try with if else but my problem is if I put 28 C when it drops to 27.9 the heater starts for 2 seconds and turns off. i would make it oscillate 2 C

f nodered|690x388

thank you all for helping me solve my first problem

1 Like

The second problem should be easy to solve.
But instead of a screenshot, please post your function node code as text, so we can edit it.

[{"id":"d44e2a26.880158","type":"function","z":"d8e8a97b.a83608","name":"control temperature","func":"//if (msg.payload < 26) {\n// msg.payload=0;\n//} else if (msg.payload < 28) {\n// msg.payload = "do nothing";\n//} else {\n//msg.payload=1;\n//}\n//return msg;","outputs":1,"noerr":0,"x":790,"y":1260,"wires":[["daf3059c.139e88","c608f6b.70ee208"]]}]

this is function node

Not the whole flow!! just the function node code.

In any event, you need to introduce hysteresis to prevent that from happening, take a look at node-red-contrib-ramp-thermostat which can manage that for you.
It's a better solution than using a function node.

1 Like

ok man i will see thise ramp thermostat

1 Like

i try make with ramp thermostat but probubli dont read my input and i doont have output

[{"id":"77c1a06.0ec066","type":"ramp-thermostat","z":"d8e8a97b.a83608","name":"","profile":"6ec0545d.80524c","hysteresisplus":"1","hysteresisminus":"1","x":780,"y":1220,"wires":[["c608f6b.70ee208","daf3059c.139e88"],["8346b25e.f1215"],["352f2789.4a51c8"]],"inputLabels":["msg.payload"]},{"id":"6ec0545d.80524c","type":"profile","z":"d8e8a97b.a83608","d":true,"name":"controll temperature","time1":"00:00","temp1":"20","time2":"04:00","temp2":"21","time3":"07:00","temp3":"21","time4":"10:00","temp4":"23","time5":"12:00","temp5":"25","time6":"15:00","temp6":"27","time7":"18:00","temp7":"25","time8":"20:00","temp8":"23","time9":"22:00","temp9":"21","time10":"23:59","temp10":"20"}]

Probably because the node was set as disabled.

Your hysteresis is also maybe a little high, try 0.5 + & 0.5 - which will give you a range of 1 degree.
Also remember that when the time is between 2 time points, the corresponding temperature setting will also be between the two temperature points...

For example, with a config of;

Time Temp
14:00 20
16:00 22

At 14:00, the target temp is 20 deg
At 15:00, the target temp is 21 deg (and not 20 deg!!)
At 16:00, the target temp is 22 deg

To try and understand how the node hysteresis works, try this simple example, and experiment injecting the different values. Start injecting the lowest temp, and continue increasing it to the maximum, then do the opposite and gradually lower the temp back down.

[{"id":"8828403c.b6bc9","type":"inject","z":"b3b413d1.05b1b","name":"","topic":"","payload":"19.4","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":130,"wires":[["7a3e2d05.2d0804"]]},{"id":"94b00f42.c9b99","type":"debug","z":"b3b413d1.05b1b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":735,"y":185,"wires":[]},{"id":"3e47ae98.32f842","type":"inject","z":"b3b413d1.05b1b","name":"","topic":"","payload":"19.8","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":385,"y":165,"wires":[["7a3e2d05.2d0804"]]},{"id":"b8d36f20.76c1f","type":"inject","z":"b3b413d1.05b1b","name":"","topic":"","payload":"20.4","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":200,"wires":[["7a3e2d05.2d0804"]]},{"id":"7a3e2d05.2d0804","type":"ramp-thermostat","z":"b3b413d1.05b1b","name":"","profile":"aca00e2.03051f","hysteresisplus":"0.5","hysteresisminus":"0.5","x":540,"y":180,"wires":[["94b00f42.c9b99"],[],[]]},{"id":"78af87ad.d49fa8","type":"inject","z":"b3b413d1.05b1b","name":"","topic":"","payload":"20.6","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":380,"y":235,"wires":[["7a3e2d05.2d0804"]]},{"id":"aca00e2.03051f","type":"profile","z":"","name":"Control temp","time1":"00:00","temp1":"20","time2":"23:59","temp2":"20","time3":"","temp3":"","time4":"","temp4":"","time5":"","temp5":"","time6":"","temp6":"","time7":"","temp7":"","time8":"","temp8":"","time9":"","temp9":"","time10":"","temp10":""}]
1 Like

i rhink i have problem bc i read from mqtt temp

[{"id":"53fe1dfa.050d84","type":"mqtt in","z":"d8e8a97b.a83608","name":"/espDHT11terari/DHT11/Temp","topic":"/espDHT11terari/DHT11/Temp","qos":"2","broker":"19efa301.6c402d","x":480,"y":1280,"wires":[["a4e1b4cf.38fcd8","da0c378c.df0d68","4910fc94.8b85d4","77c1a06.0ec066","e284c32d.7fa8f"]]},{"id":"77c1a06.0ec066","type":"ramp-thermostat","z":"d8e8a97b.a83608","name":"","profile":"6ec0545d.80524c","hysteresisplus":"0.5","hysteresisminus":"0.5","x":840,"y":1220,"wires":[["daf3059c.139e88"],["8346b25e.f1215"],["352f2789.4a51c8"]]},{"id":"19efa301.6c402d","type":"mqtt-broker","z":"","name":"","broker":"192.168.178.35","port":"1883","tls":"","clientid":"","usetls":false,"compatmode":true,"keepalive":"15","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"6ec0545d.80524c","type":"profile","z":"","name":"controll temperature","time1":"00:00","temp1":"20","time2":"04:00","temp2":"21","time3":"07:00","temp3":"21","time4":"10:00","temp4":"23","time5":"12:00","temp5":"25","time6":"15:00","temp6":"27","time7":"18:00","temp7":"25","time8":"20:00","temp8":"23","time9":"22:00","temp9":"21","time10":"23:59","temp10":"20"}]

What exactly is the problem?
If it's a different problem, then it needs to be a new forum thread. This thread is about 'Stuck in deploy'.

ofc this is other problem i know what i need to do but idc how i have comunication with mtqq and then ramp-thermostat dont recognizez payload idc how to change mtqq to payload

Then start a new forum thread with that problem, and I'm sure you will get help.
You need to post in that thread what you are feeding into the ramp-thermostat (attach a debug node and copy the message).

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