If anyone wants a copy of this code its here, Import that in as show in the video: [{"id":"7d6c080f76040e06","type":"tab","label":"Charge Light","disabled":false,"info":"","env":[]},{"id":"12e777104e3cf1bc","type":"signalk-subscribe","z":"7d6c080f76040e06","name":"","mode":"sendAll","flatten":true,"context":"vessels.self","path":"battery.charge.type","source":"","period":"5000","x":100,"y":220,"wires":[["20e356354145aa64","7be4283fa662830d"]]},{"id":"7be4283fa662830d","type":"switch","z":"7d6c080f76040e06","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"bulk","vt":"str"},{"t":"cont","v":"absorption","vt":"str"},{"t":"cont","v":"float","vt":"str"},{"t":"cont","v":"storage","vt":"str"},{"t":"else"}],"checkall":"true","repair":true,"outputs":5,"x":330,"y":220,"wires":[["1b6ce666f76d845e","065bd512eecf4803"],["120c37464c7a74f5","8af2e34733abb8d4"],["9a5d627b23f6f82c","8af2e34733abb8d4","065bd512eecf4803"],["9a5d627b23f6f82c","8af2e34733abb8d4","065bd512eecf4803"],["ccc0df1a690114e4"]]},{"id":"efbb753a3cf84f95","type":"rpi-gpio out","z":"7d6c080f76040e06","name":"LED","pin":"17","set":true,"level":"0","freq":"","out":"out","bcm":true,"x":1350,"y":260,"wires":[]},{"id":"ccc0df1a690114e4","type":"function","z":"7d6c080f76040e06","name":"False","func":"msg.payload = false; return msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":480,"wires":[["8af2e34733abb8d4","efbb753a3cf84f95","065bd512eecf4803"]]},{"id":"9a5d627b23f6f82c","type":"function","z":"7d6c080f76040e06","name":"True","func":"msg.payload = true ; return msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":320,"wires":[["efbb753a3cf84f95"]]},{"id":"1b6ce666f76d845e","type":"trigger","z":"7d6c080f76040e06","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-500","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":800,"y":40,"wires":[["346dc3ee8bf4d459"]]},{"id":"8af2e34733abb8d4","type":"change","z":"7d6c080f76040e06","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":100,"wires":[["1b6ce666f76d845e"]]},{"id":"120c37464c7a74f5","type":"trigger","z":"7d6c080f76040e06","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":780,"y":160,"wires":[["346dc3ee8bf4d459"]]},{"id":"065bd512eecf4803","type":"change","z":"7d6c080f76040e06","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":220,"wires":[["120c37464c7a74f5"]]},{"id":"20e356354145aa64","type":"trigger","z":"7d6c080f76040e06","name":"","op1":"","op2":"0","op1type":"str","op2type":"str","duration":"10","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":190,"y":480,"wires":[["ccc0df1a690114e4"]]},{"id":"346dc3ee8bf4d459","type":"toggleUltimate","z":"7d6c080f76040e06","name":"Toggle","valueToToggle":"true","payloadPropName":"payload","x":1090,"y":100,"wires":[["efbb753a3cf84f95"]]}]
Hi Matt, I used this, effectively straight from the menu: [{"id":"160f73a077a5a9c3","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"9a9234ba39953da6","type":"signalk-subscribe","z":"160f73a077a5a9c3","name":"Depth Below Transducer","mode":"sendAll","flatten":false,"context":"vessels.self","path":"environment.depth.belowTransducer","source":"","period":1000,"x":110,"y":160,"wires":[["29ea86a0260e57cd"]]},{"id":"154fecdcd2092b3d","type":"debug","z":"160f73a077a5a9c3","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":700,"y":100,"wires":[]},{"id":"29ea86a0260e57cd","type":"change","z":"160f73a077a5a9c3","name":"add 1.0","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload+ 1.0","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":160,"wires":[["154fecdcd2092b3d","4ac1acfcd348305a"]]},{"id":"4ac1acfcd348305a","type":"signalk-send-pathvalue","z":"160f73a077a5a9c3","name":"","source":"node-red","meta":"null","x":670,"y":160,"wires":[]}] Thanks
Could you let me know what monitor you are using on your boat with the RaspberryPi system? (purchase link?)Thanks and sorry if you've answered this someplace else
Hi, this is the screen, www.ebay.co.uk/itm/253289838646?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=sA4xWqdKSHW&sssrc=4429486&ssuid=1XqhIgr5QPm&var=&widget_ver=artemis&media=COPY
If anyone wants a copy of this code its here, Import that in as show in the video:
[{"id":"7d6c080f76040e06","type":"tab","label":"Charge Light","disabled":false,"info":"","env":[]},{"id":"12e777104e3cf1bc","type":"signalk-subscribe","z":"7d6c080f76040e06","name":"","mode":"sendAll","flatten":true,"context":"vessels.self","path":"battery.charge.type","source":"","period":"5000","x":100,"y":220,"wires":[["20e356354145aa64","7be4283fa662830d"]]},{"id":"7be4283fa662830d","type":"switch","z":"7d6c080f76040e06","name":"","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"bulk","vt":"str"},{"t":"cont","v":"absorption","vt":"str"},{"t":"cont","v":"float","vt":"str"},{"t":"cont","v":"storage","vt":"str"},{"t":"else"}],"checkall":"true","repair":true,"outputs":5,"x":330,"y":220,"wires":[["1b6ce666f76d845e","065bd512eecf4803"],["120c37464c7a74f5","8af2e34733abb8d4"],["9a5d627b23f6f82c","8af2e34733abb8d4","065bd512eecf4803"],["9a5d627b23f6f82c","8af2e34733abb8d4","065bd512eecf4803"],["ccc0df1a690114e4"]]},{"id":"efbb753a3cf84f95","type":"rpi-gpio out","z":"7d6c080f76040e06","name":"LED","pin":"17","set":true,"level":"0","freq":"","out":"out","bcm":true,"x":1350,"y":260,"wires":[]},{"id":"ccc0df1a690114e4","type":"function","z":"7d6c080f76040e06","name":"False","func":"msg.payload = false;
return msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":410,"y":480,"wires":[["8af2e34733abb8d4","efbb753a3cf84f95","065bd512eecf4803"]]},{"id":"9a5d627b23f6f82c","type":"function","z":"7d6c080f76040e06","name":"True","func":"msg.payload = true ;
return msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":710,"y":320,"wires":[["efbb753a3cf84f95"]]},{"id":"1b6ce666f76d845e","type":"trigger","z":"7d6c080f76040e06","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-500","extend":false,"overrideDelay":false,"units":"ms","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":800,"y":40,"wires":[["346dc3ee8bf4d459"]]},{"id":"8af2e34733abb8d4","type":"change","z":"7d6c080f76040e06","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":100,"wires":[["1b6ce666f76d845e"]]},{"id":"120c37464c7a74f5","type":"trigger","z":"7d6c080f76040e06","name":"","op1":"1","op2":"0","op1type":"str","op2type":"str","duration":"-1","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":780,"y":160,"wires":[["346dc3ee8bf4d459"]]},{"id":"065bd512eecf4803","type":"change","z":"7d6c080f76040e06","name":"","rules":[{"t":"set","p":"reset","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":220,"wires":[["120c37464c7a74f5"]]},{"id":"20e356354145aa64","type":"trigger","z":"7d6c080f76040e06","name":"","op1":"","op2":"0","op1type":"str","op2type":"str","duration":"10","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":190,"y":480,"wires":[["ccc0df1a690114e4"]]},{"id":"346dc3ee8bf4d459","type":"toggleUltimate","z":"7d6c080f76040e06","name":"Toggle","valueToToggle":"true","payloadPropName":"payload","x":1090,"y":100,"wires":[["efbb753a3cf84f95"]]}]
Hey thanks so much for this! I am just getting my head around OpenPlotter and PI for the boat.
Many thanks for your comments - Yeah, its a good platform!
Thanks Matt, great video. Doesn't the "pathvalue" increment the value, hence the output increments by1 each time. Well it does on my system
Hi, Can you send me an example so that i can import it?
Hi Matt, I used this, effectively straight from the menu:
[{"id":"160f73a077a5a9c3","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"9a9234ba39953da6","type":"signalk-subscribe","z":"160f73a077a5a9c3","name":"Depth Below Transducer","mode":"sendAll","flatten":false,"context":"vessels.self","path":"environment.depth.belowTransducer","source":"","period":1000,"x":110,"y":160,"wires":[["29ea86a0260e57cd"]]},{"id":"154fecdcd2092b3d","type":"debug","z":"160f73a077a5a9c3","name":"debug 1","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":700,"y":100,"wires":[]},{"id":"29ea86a0260e57cd","type":"change","z":"160f73a077a5a9c3","name":"add 1.0","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload+ 1.0","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":160,"wires":[["154fecdcd2092b3d","4ac1acfcd348305a"]]},{"id":"4ac1acfcd348305a","type":"signalk-send-pathvalue","z":"160f73a077a5a9c3","name":"","source":"node-red","meta":"null","x":670,"y":160,"wires":[]}]
Thanks
Could you let me know what monitor you are using on your boat with the RaspberryPi system? (purchase link?)Thanks and sorry if you've answered this someplace else
Hi, this is the screen, www.ebay.co.uk/itm/253289838646?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=sA4xWqdKSHW&sssrc=4429486&ssuid=1XqhIgr5QPm&var=&widget_ver=artemis&media=COPY