--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have encountered a behavior in Node-RED that seems to make a set of flows in a flows*.json file unusable unless one hand edits the flow file or deletes the file and then restarts Node-RED. The following is a set of steps that I have used to reproduce this:1) Create a simple working flow and deploy it. ie.:[{"type":"tab","id":"5dbbe7df.a24418","label":"Sheet 1"},{"id":"6c67e5ba.93981c","type":"inject","name":"Hola","topic":"","payload":"\"Hola\"","payloadType":"string","repeat":"","crontab":"","once":false,"x":257,"y":259,"z":"5dbbe7df.a24418","wires":[["f48ca69d.0b7358"]]},{"id":"d80b5c16.27f4a","type":"debug","name":"","active":true,"console":"false","complete":"false","x":774,"y":272,"z":"5dbbe7df.a24418","wires":[]},{"id":"f48ca69d.0b7358","type":"function","name":"Hello","func":"msg.payload = msg.payload + \" Hello\";\nreturn msg;","outputs":1,"valid":true,"x":517,"y":268,"z":"5dbbe7df.a24418","wires":[["d80b5c16.27f4a"]]}]2) Add a flow with a missing type. ie. "Bean temp":
[{"id":"ffdc6b93.002398","type":"bean","name":"Yeezus","uuid":"","connectiontype":"timeout","connectiontimeout":"10"},{"id":"6d624520.929dbc","type":"bean temp","name":"Bean temp","bean":"ffdc6b93.002398","x":419,"y":157,"z":"40301a3c.bfcfe4","wires":[["1f2344c7.e0dcbb"]]},{"id":"d2aa7661.2d5588","type":"inject","name":"1 min interval","topic":"","payload":"","payloadType":"date","repeat":"1320","crontab":"","once":false,"x":265,"y":157,"z":"40301a3c.bfcfe4","wires":[["6d624520.929dbc"]]},{"id":"1f2344c7.e0dcbb","type":"function","name":"temp threshold","func":"context.previousTemp = context.previousTemp || 0;\nvar temp = msg.payload;\n\nvar upperThreshold = 26;\nvar lowerThreshold = 20;\n\n// Check if the new temp is different from the previous\nif (context.previousTemp != temp){\n\tif ( temp >= upperThreshold){\n\t\tmsg.payload = \"It's too hot! Current temperature is \" + String(temp) + \"°C\";\n\t\treturn msg;\n\t}\n\telse if ( temp <= lowerThreshold){\n\t\tmsg.payload = \"It's too cold! Current temperature is \" + String(temp) + \"°C\";\n\t\treturn msg;\n\t}\n}","outputs":1,"x":583,"y":157,"z":"40301a3c.bfcfe4","wires":[["1e8256cb.e17da9"]]},{"id":"1e8256cb.e17da9","type":"email","server":"smtp.gmail.com","port":"465","name":"simone@giertz.com","dname":"Email","x":729.8889465332031,"y":156.88888549804688,"z":"40301a3c.bfcfe4","wires":[]}]
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/58d28173-e08b-4da6-9d04-228254c6c4d7%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
- ui_base
- ui_form
- ui_text
getting ui_base] Error: Cannot find module 'encodeurl' on loading nodes.
Any guess?
/Umer
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
Node.js version: v6.10.0
Node-RED version: v0.16.2