Serialport not connected

Hi, I can't connect a Victron BMV700 to Node Red. Node Red is installed on a Raspberry Pi 2B with the last Raspbian OS and with the command:

bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

I've installed Victron-contrib palette and serialport but if I put a serial-in node and I try to connect to the CH340 adapter which is connected to the ve.direct port of the battery monitor the node has the ladel "not connected". I stopped and started node red in terminal and I have this error message for the serialort:

[error] [serialconfig:84dbe6178653b2f5] serial port /dev/ttyUSB0/ error: Error: Error: No such file or directory, cannot open /dev/ttyUSB0/

Any help? Thanks!

But the file "ttyUSB0" is present in /dev/ttyUSB0....

Also the CH341 driver seams to be installed and connected....

If I connect the same adapter with the same raspberry but with Victron Venus OS large (with Node Red) everithing works fine but with Node Red installed on Raspbian 32bit it's not working....

Serial ports / usb ports are really anoying in linux (at least for me...!)

Try this (and show us what it says :smiley: )

You don't need all the nodes! but a free idea is always welcome isn't it

[{"id":"76e57367fab33534","type":"group","z":"dafb11eb81330480","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["4f697853821f06d8","7e4ca8cb146cc93e","c8bca92f33a6bb32","b2ad87b4889e2477","1a94efe282c1410f","58ad26861fa42da0","6b6762982a9601a8","a8c533eff79a93ac","8fa317766a91026a","fdd4f328b675087a","efda09c0a6a9f2b2","848418bb530348e0","c656333f10d26e22","cb429a19b29f3b5a","3a5f40929c45ab7e","817b36fe8ea3fe1e","d460503c943696e0","690be7d79892d973","49ded01211e89088","2c20168e392e6570","b8c4f209d5a70e88","c62c9590cbce295c","b09b8821970c7eb8","266be3c70751934e","59c2309f91fc629d","95499de015fd95b2","397f523402555d69","3d2eda3b87529213","ec58128a9a902943","2d88118afe3bda69","e52016f0520d1aa9","d9d9b13e284f15be","4327fd457726ac36","c2702a6e7bbf823b","c776a683f2cd967c","17de34f2e65fb5c1","db72aa18080eccd6","a010bfe7fbadb57e","854123adcaea15d6","b03b94e5f6fe273a","cc4d9e028ea2ee35","b9836ca3a8f0e33a","51776499823c65fa","aea8c822c3c61e64","ac91fbbea61eb313","d81723a382d6e823","a8d9394b9d65ca9e","07b748f5bdfa3ad1","c69ee86fce0e35bc","795cb1ae641cf3c0","4bb0d185922fe89c","17c7fd026d82b4fa","9dcba814b31838f5","19518e8911fef9cd","62c5d9cab85b999e","bf56b351af3fbf22","747a49515a2d2218","cbeda7dcd0d1a5fa","5b9ef1bb97f57e26","7f8e47f07ead50b6","3d23937dad62eff6","65b5efed37626076","552828b09b1af7f9","4dc50a6ae97b0ac0","fb715245cf08427a","44f344875ff4a134","252d546cc31171cb","9abba5a31f02d0a4","1cdd930.4fd706d","6a21319c.6baf5","cb159742.277e98","932a3a64.aa6de8","6a4f2fa.2e6ead","4093c223.33f72c","1d410602.bbeb6a","4abe2a2f.8ec394","3c5664d8.166fbc","c3febccd.b9ada","71acf140.18fce","50d0ff3d.31298","4028d4b2.46170c","2bc105a1.f8938a","5589ac79.802b44","53455f08f1049b60","a7279239c6aa853e","bd023f814b1292ba","eff57313becb139e","d3633d884b4a3584","3864c59a45c91191","e6c7202dc53f7a66","4cd0b64390c4ba56","7578d830f0277f6b"],"x":54,"y":39,"w":2412,"h":942},{"id":"4f697853821f06d8","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"eject usb stick","x":380,"y":440,"wires":[[],[],[]]},{"id":"7e4ca8cb146cc93e","type":"switch","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":550,"y":540,"wires":[["c8bca92f33a6bb32"],["b2ad87b4889e2477"]]},{"id":"c8bca92f33a6bb32","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"ok","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":520,"wires":[["58ad26861fa42da0"]]},{"id":"b2ad87b4889e2477","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Already ejected or not mounted","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":560,"wires":[["1a94efe282c1410f"]]},{"id":"1a94efe282c1410f","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"top right","displayTime":"3","highlight":"","outputs":0,"ok":"OK","cancel":"","topic":"","name":"show error","x":930,"y":560,"wires":[]},{"id":"58ad26861fa42da0","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"className":"","topic":"","name":"show confirmation","x":950,"y":520,"wires":[]},{"id":"6b6762982a9601a8","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":23,"width":5,"height":1,"name":"show usb drive status","label":"","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":980,"y":680,"wires":[]},{"id":"a8c533eff79a93ac","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"10","crontab":"","once":false,"onceDelay":"1","topic":"","payload":"","payloadType":"date","x":170,"y":720,"wires":[["8fa317766a91026a","c656333f10d26e22"]]},{"id":"8fa317766a91026a","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"mount|grep usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"check for usb stick","x":390,"y":680,"wires":[[],[],["fdd4f328b675087a"]]},{"id":"fdd4f328b675087a","type":"switch","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":680,"wires":[["efda09c0a6a9f2b2"],["848418bb530348e0"]]},{"id":"efda09c0a6a9f2b2","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"inserted","rules":[{"t":"set","p":"payload","pt":"msg","to":"Inserted","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":660,"wires":[["6b6762982a9601a8","d460503c943696e0"]]},{"id":"848418bb530348e0","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"not inserted","rules":[{"t":"set","p":"payload","pt":"msg","to":"Not inserted","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":700,"wires":[["6b6762982a9601a8","b8c4f209d5a70e88"]]},{"id":"c656333f10d26e22","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"df --output=size,used,avail /","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"disk usage sdcard","x":390,"y":760,"wires":[["cb429a19b29f3b5a"],[],[]]},{"id":"cb429a19b29f3b5a","type":"string","z":"dafb11eb81330480","g":"76e57367fab33534","name":"clean up string","methods":[{"name":"delLeftMost","params":[{"type":"str","value":"\\n"}]},{"name":"collapseWhitespace","params":[]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":580,"y":760,"wires":[["3a5f40929c45ab7e"]]},{"id":"3a5f40929c45ab7e","type":"string-split","z":"dafb11eb81330480","g":"76e57367fab33534","name":"split up string","source_object":"msg","source_property":"","target_object":"msg","target_property":"","split_on":"","x":750,"y":760,"wires":[["817b36fe8ea3fe1e"]]},{"id":"817b36fe8ea3fe1e","type":"function","z":"dafb11eb81330480","g":"76e57367fab33534","name":"prepare data for pie chart","func":"var m = {};\nvar used = Math.round((msg.payload[1]/1048576)*100)/100;\nvar free = Math.round((msg.payload[2]/1048576)*100)/100;\nm.labels = ['used (GB)', 'free (GB)'];\nm.data = [[used, free]];\nm.series = ['Diskspace SDcard'];\nreturn {payload:[m],topic:msg.topic};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":990,"y":760,"wires":[["a7279239c6aa853e"]]},{"id":"d460503c943696e0","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"df --output=size,used,avail /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"disk usage usb stick","x":980,"y":620,"wires":[["690be7d79892d973"],[],[]]},{"id":"690be7d79892d973","type":"string","z":"dafb11eb81330480","g":"76e57367fab33534","name":"clean up string","methods":[{"name":"delLeftMost","params":[{"type":"str","value":"\\n"}]},{"name":"collapseWhitespace","params":[]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":1180,"y":600,"wires":[["49ded01211e89088"]]},{"id":"49ded01211e89088","type":"string-split","z":"dafb11eb81330480","g":"76e57367fab33534","name":"split up string","source_object":"msg","source_property":"","target_object":"msg","target_property":"","split_on":"","x":1350,"y":600,"wires":[["2c20168e392e6570"]]},{"id":"2c20168e392e6570","type":"function","z":"dafb11eb81330480","g":"76e57367fab33534","name":"prepare data for pie chart","func":"var m = {};\nvar used = Math.round((msg.payload[1]/1048576)*100)/100;\nvar free = Math.round((msg.payload[2]/1048576)*100)/100;\nm.labels = ['used (GB)', 'free (GB)'];\nm.data = [[used, free]];\nm.series = ['Diskspace USB stick'];\nreturn {payload:[m],topic:msg.topic};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1570,"y":600,"wires":[["552828b09b1af7f9","4dc50a6ae97b0ac0"]]},{"id":"b8c4f209d5a70e88","type":"function","z":"dafb11eb81330480","g":"76e57367fab33534","name":"prepare data for pie chart","func":"var m = {};\n\nm.labels = ['used (GB)', 'free (GB)'];\nm.data = [[0, 0]];\nm.series = ['USB stick'];\nreturn {payload:[m],topic:msg.topic};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":990,"y":720,"wires":[[]]},{"id":"c62c9590cbce295c","type":"comment","z":"dafb11eb81330480","g":"76e57367fab33534","name":"diskspace usage","info":"","x":160,"y":660,"wires":[]},{"id":"b09b8821970c7eb8","type":"ui_button","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","group":"f6d0085dcc91498b","order":19,"width":5,"height":1,"passthru":false,"label":"FORMAT USB","tooltip":"","color":"","bgcolor":"","className":"text_size_30","icon":"","payload":"Are you sure? This will permanently delete all data on your USB stick!","payloadType":"str","topic":"","topicType":"str","x":160,"y":900,"wires":[["266be3c70751934e"]]},{"id":"266be3c70751934e","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"Yes. Delete everything!","cancel":"No. Get me out of here!","raw":false,"topic":"","name":"format sure?","x":350,"y":900,"wires":[["59c2309f91fc629d"]]},{"id":"59c2309f91fc629d","type":"switch","z":"dafb11eb81330480","g":"76e57367fab33534","name":"check response","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Yes","vt":"str"},{"t":"cont","v":"No","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":540,"y":900,"wires":[["3d2eda3b87529213"],["397f523402555d69"]]},{"id":"95499de015fd95b2","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"top right","displayTime":"3","highlight":"red","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":940,"y":940,"wires":[]},{"id":"397f523402555d69","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"warning msg","rules":[{"t":"set","p":"payload","pt":"msg","to":"Pfff, that was a close one!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":940,"wires":[["95499de015fd95b2"]]},{"id":"3d2eda3b87529213","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount -f -l /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"eject usb stick","x":740,"y":880,"wires":[[],[],["ec58128a9a902943"]]},{"id":"ec58128a9a902943","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkfs.msdos /dev/sda1 -n usb","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"format stick","x":930,"y":880,"wires":[[],[],["c2702a6e7bbf823b"]]},{"id":"2d88118afe3bda69","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkdir /media/usb1/backup","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"create backup directory","x":1690,"y":880,"wires":[["07b748f5bdfa3ad1"],["c69ee86fce0e35bc"],["7f8e47f07ead50b6"]]},{"id":"e52016f0520d1aa9","type":"comment","z":"dafb11eb81330480","g":"76e57367fab33534","name":"format usb stick","info":"","x":160,"y":860,"wires":[]},{"id":"d9d9b13e284f15be","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"OK","cancel":"","raw":false,"className":"","topic":"","name":"Re-inserted?","x":1330,"y":880,"wires":[["4327fd457726ac36"]]},{"id":"4327fd457726ac36","type":"delay","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1480,"y":880,"wires":[["2d88118afe3bda69"]]},{"id":"c2702a6e7bbf823b","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Please remove, then re-insert the USB stick and press OK","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1140,"y":880,"wires":[["d9d9b13e284f15be"]]},{"id":"c776a683f2cd967c","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"ls -l /dev/disk/by-uuid/","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"1: USB ID","x":360,"y":140,"wires":[[],[],[]]},{"id":"17de34f2e65fb5c1","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkdir /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"2: mount point usb1","x":390,"y":200,"wires":[[],[],[]]},{"id":"db72aa18080eccd6","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo chown -R pi:pi /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"3: give pi permission to the folder usb1","x":450,"y":260,"wires":[[],[],[]]},{"id":"a010bfe7fbadb57e","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sda1 /media/usb1 -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"4: mount usb","x":370,"y":320,"wires":[[],[],[]]},{"id":"854123adcaea15d6","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Eject USB","x":1050,"y":140,"wires":[[],[],[]]},{"id":"b03b94e5f6fe273a","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":140,"wires":[["c776a683f2cd967c"]]},{"id":"cc4d9e028ea2ee35","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":190,"y":320,"wires":[["a010bfe7fbadb57e","747a49515a2d2218"]]},{"id":"b9836ca3a8f0e33a","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":140,"wires":[["854123adcaea15d6"]]},{"id":"51776499823c65fa","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":440,"wires":[["4f697853821f06d8"]]},{"id":"aea8c822c3c61e64","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":200,"wires":[["17de34f2e65fb5c1"]]},{"id":"ac91fbbea61eb313","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":260,"wires":[["db72aa18080eccd6"]]},{"id":"d81723a382d6e823","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":22,"width":7,"height":1,"name":"show usb drive status in","label":"USB","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":1210,"y":680,"wires":[]},{"id":"a8d9394b9d65ca9e","type":"ui_button","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","group":"f6d0085dcc91498b","order":25,"width":5,"height":1,"passthru":false,"label":"Eject USB","tooltip":"","color":"","bgcolor":"","className":"text_size_30","icon":"","payload":"Are you sure? This will permanently delete all data on your USB stick!","payloadType":"str","topic":"","topicType":"str","x":170,"y":520,"wires":[["795cb1ae641cf3c0"]]},{"id":"07b748f5bdfa3ad1","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1910,"y":840,"wires":[]},{"id":"c69ee86fce0e35bc","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1910,"y":880,"wires":[]},{"id":"795cb1ae641cf3c0","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount -f -l /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"eject usb stick","x":380,"y":540,"wires":[[],[],["7e4ca8cb146cc93e"]]},{"id":"4bb0d185922fe89c","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo chown -R pi:pi /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"3: give pi permission to the folder","x":1120,"y":200,"wires":[["53455f08f1049b60"],["53455f08f1049b60"],[]]},{"id":"17c7fd026d82b4fa","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":200,"wires":[["4bb0d185922fe89c"]]},{"id":"9dcba814b31838f5","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sda1 /media/usb1 -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"4: mount usb","x":1050,"y":260,"wires":[["62c5d9cab85b999e"],["62c5d9cab85b999e"],[]]},{"id":"19518e8911fef9cd","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":260,"wires":[["9dcba814b31838f5"]]},{"id":"62c5d9cab85b999e","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1270,"y":260,"wires":[]},{"id":"bf56b351af3fbf22","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":560,"wires":[["795cb1ae641cf3c0"]]},{"id":"747a49515a2d2218","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sdb1 /media/usb1 -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"4: mount usb","x":370,"y":380,"wires":[[],[],[]]},{"id":"cbeda7dcd0d1a5fa","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":200,"y":380,"wires":[["747a49515a2d2218"]]},{"id":"5b9ef1bb97f57e26","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1480,"y":920,"wires":[["2d88118afe3bda69"]]},{"id":"7f8e47f07ead50b6","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1910,"y":920,"wires":[]},{"id":"3d23937dad62eff6","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][0]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":740,"wires":[[]]},{"id":"65b5efed37626076","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][1]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":780,"wires":[[]]},{"id":"552828b09b1af7f9","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][0]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":580,"wires":[["fb715245cf08427a"]]},{"id":"4dc50a6ae97b0ac0","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][1]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":620,"wires":[["44f344875ff4a134"]]},{"id":"fb715245cf08427a","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":31,"width":5,"height":1,"name":"USB memory used","label":"","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2110,"y":580,"wires":[]},{"id":"44f344875ff4a134","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":28,"width":5,"height":1,"name":"USB memory free","label":"","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2110,"y":620,"wires":[]},{"id":"252d546cc31171cb","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":27,"width":7,"height":1,"name":"USB memory free in","label":"USB memory available","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2340,"y":620,"wires":[]},{"id":"9abba5a31f02d0a4","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":30,"width":7,"height":1,"name":"USB memory used in","label":"USB memory used","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2340,"y":580,"wires":[]},{"id":"1cdd930.4fd706d","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"ls -l /dev/disk/by-uuid/","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"1: USB ID","x":1720,"y":140,"wires":[[],[],["1d410602.bbeb6a"]]},{"id":"6a21319c.6baf5","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkdir /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"2: mount point","x":1740,"y":200,"wires":[[],[],["4abe2a2f.8ec394"]]},{"id":"cb159742.277e98","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo chown -R pi:pi /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"3:give pi folder permission","x":1770,"y":260,"wires":[[],[],["3c5664d8.166fbc"]]},{"id":"932a3a64.aa6de8","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sda1 /media/pi/usb -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"4: mount usb","x":1730,"y":320,"wires":[[],[],["4028d4b2.46170c"]]},{"id":"6a4f2fa.2e6ead","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"usb verwijderen","x":1740,"y":380,"wires":[[],[],["50d0ff3d.31298"]]},{"id":"4093c223.33f72c","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":140,"wires":[["1cdd930.4fd706d"]]},{"id":"1d410602.bbeb6a","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1890,"y":140,"wires":[]},{"id":"4abe2a2f.8ec394","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1930,"y":200,"wires":[]},{"id":"3c5664d8.166fbc","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":2130,"y":260,"wires":[]},{"id":"c3febccd.b9ada","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":320,"wires":[["932a3a64.aa6de8"]]},{"id":"71acf140.18fce","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":380,"wires":[["6a4f2fa.2e6ead"]]},{"id":"50d0ff3d.31298","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1930,"y":380,"wires":[]},{"id":"4028d4b2.46170c","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1910,"y":340,"wires":[]},{"id":"2bc105a1.f8938a","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":200,"wires":[["6a21319c.6baf5"]]},{"id":"5589ac79.802b44","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":260,"wires":[["cb159742.277e98"]]},{"id":"53455f08f1049b60","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1350,"y":180,"wires":[]},{"id":"a7279239c6aa853e","type":"junction","z":"dafb11eb81330480","g":"76e57367fab33534","x":1680,"y":760,"wires":[["3d23937dad62eff6","65b5efed37626076"]]},{"id":"bd023f814b1292ba","type":"comment","z":"dafb11eb81330480","g":"76e57367fab33534","name":"eject usb stick with logged data","info":"","x":230,"y":80,"wires":[]},{"id":"eff57313becb139e","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":120,"wires":[]},{"id":"d3633d884b4a3584","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":200,"wires":[]},{"id":"3864c59a45c91191","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":260,"wires":[]},{"id":"e6c7202dc53f7a66","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":320,"wires":[]},{"id":"4cd0b64390c4ba56","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":550,"y":380,"wires":[]},{"id":"7578d830f0277f6b","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":420,"wires":[]},{"id":"f6d0085dcc91498b","type":"ui_group","name":"System specs","tab":"8b657473.5de3e8","order":1,"disp":false,"width":20,"collapse":false,"className":""},{"id":"8b657473.5de3e8","type":"ui_tab","name":"iStill System","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

Could you also give us your software versions etc etc?

[{"id":"76e57367fab33534","type":"group","z":"dafb11eb81330480","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["4f697853821f06d8","7e4ca8cb146cc93e","c8bca92f33a6bb32","b2ad87b4889e2477","1a94efe282c1410f","58ad26861fa42da0","6b6762982a9601a8","a8c533eff79a93ac","8fa317766a91026a","fdd4f328b675087a","efda09c0a6a9f2b2","848418bb530348e0","c656333f10d26e22","cb429a19b29f3b5a","3a5f40929c45ab7e","817b36fe8ea3fe1e","d460503c943696e0","690be7d79892d973","49ded01211e89088","2c20168e392e6570","b8c4f209d5a70e88","c62c9590cbce295c","b09b8821970c7eb8","266be3c70751934e","59c2309f91fc629d","95499de015fd95b2","397f523402555d69","3d2eda3b87529213","ec58128a9a902943","2d88118afe3bda69","e52016f0520d1aa9","d9d9b13e284f15be","4327fd457726ac36","c2702a6e7bbf823b","c776a683f2cd967c","17de34f2e65fb5c1","db72aa18080eccd6","a010bfe7fbadb57e","854123adcaea15d6","b03b94e5f6fe273a","cc4d9e028ea2ee35","b9836ca3a8f0e33a","51776499823c65fa","aea8c822c3c61e64","ac91fbbea61eb313","d81723a382d6e823","a8d9394b9d65ca9e","07b748f5bdfa3ad1","c69ee86fce0e35bc","795cb1ae641cf3c0","4bb0d185922fe89c","17c7fd026d82b4fa","9dcba814b31838f5","19518e8911fef9cd","62c5d9cab85b999e","bf56b351af3fbf22","747a49515a2d2218","cbeda7dcd0d1a5fa","5b9ef1bb97f57e26","7f8e47f07ead50b6","3d23937dad62eff6","65b5efed37626076","552828b09b1af7f9","4dc50a6ae97b0ac0","fb715245cf08427a","44f344875ff4a134","252d546cc31171cb","9abba5a31f02d0a4","1cdd930.4fd706d","6a21319c.6baf5","cb159742.277e98","932a3a64.aa6de8","6a4f2fa.2e6ead","4093c223.33f72c","1d410602.bbeb6a","4abe2a2f.8ec394","3c5664d8.166fbc","c3febccd.b9ada","71acf140.18fce","50d0ff3d.31298","4028d4b2.46170c","2bc105a1.f8938a","5589ac79.802b44","53455f08f1049b60","a7279239c6aa853e","bd023f814b1292ba","eff57313becb139e","d3633d884b4a3584","3864c59a45c91191","e6c7202dc53f7a66","4cd0b64390c4ba56","7578d830f0277f6b"],"x":54,"y":39,"w":2412,"h":942},{"id":"4f697853821f06d8","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"eject usb stick","x":380,"y":440,"wires":[[],[],[]]},{"id":"7e4ca8cb146cc93e","type":"switch","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":550,"y":540,"wires":[["c8bca92f33a6bb32"],["b2ad87b4889e2477"]]},{"id":"c8bca92f33a6bb32","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"ok","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":520,"wires":[["58ad26861fa42da0"]]},{"id":"b2ad87b4889e2477","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Already ejected or not mounted","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":560,"wires":[["1a94efe282c1410f"]]},{"id":"1a94efe282c1410f","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"top right","displayTime":"3","highlight":"","outputs":0,"ok":"OK","cancel":"","topic":"","name":"show error","x":930,"y":560,"wires":[]},{"id":"58ad26861fa42da0","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"top right","displayTime":"3","highlight":"","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"className":"","topic":"","name":"show confirmation","x":950,"y":520,"wires":[]},{"id":"6b6762982a9601a8","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":23,"width":5,"height":1,"name":"show usb drive status","label":"","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":980,"y":680,"wires":[]},{"id":"a8c533eff79a93ac","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"10","crontab":"","once":false,"onceDelay":"1","topic":"","payload":"","payloadType":"date","x":170,"y":720,"wires":[["8fa317766a91026a","c656333f10d26e22"]]},{"id":"8fa317766a91026a","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"mount|grep usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"check for usb stick","x":390,"y":680,"wires":[[],[],["fdd4f328b675087a"]]},{"id":"fdd4f328b675087a","type":"switch","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","property":"payload.code","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":590,"y":680,"wires":[["efda09c0a6a9f2b2"],["848418bb530348e0"]]},{"id":"efda09c0a6a9f2b2","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"inserted","rules":[{"t":"set","p":"payload","pt":"msg","to":"Inserted","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":660,"wires":[["6b6762982a9601a8","d460503c943696e0"]]},{"id":"848418bb530348e0","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"not inserted","rules":[{"t":"set","p":"payload","pt":"msg","to":"Not inserted","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":700,"wires":[["6b6762982a9601a8","b8c4f209d5a70e88"]]},{"id":"c656333f10d26e22","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"df --output=size,used,avail /","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"disk usage sdcard","x":390,"y":760,"wires":[["cb429a19b29f3b5a"],[],[]]},{"id":"cb429a19b29f3b5a","type":"string","z":"dafb11eb81330480","g":"76e57367fab33534","name":"clean up string","methods":[{"name":"delLeftMost","params":[{"type":"str","value":"\\n"}]},{"name":"collapseWhitespace","params":[]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":580,"y":760,"wires":[["3a5f40929c45ab7e"]]},{"id":"3a5f40929c45ab7e","type":"string-split","z":"dafb11eb81330480","g":"76e57367fab33534","name":"split up string","source_object":"msg","source_property":"","target_object":"msg","target_property":"","split_on":"","x":750,"y":760,"wires":[["817b36fe8ea3fe1e"]]},{"id":"817b36fe8ea3fe1e","type":"function","z":"dafb11eb81330480","g":"76e57367fab33534","name":"prepare data for pie chart","func":"var m = {};\nvar used = Math.round((msg.payload[1]/1048576)*100)/100;\nvar free = Math.round((msg.payload[2]/1048576)*100)/100;\nm.labels = ['used (GB)', 'free (GB)'];\nm.data = [[used, free]];\nm.series = ['Diskspace SDcard'];\nreturn {payload:[m],topic:msg.topic};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":990,"y":760,"wires":[["a7279239c6aa853e"]]},{"id":"d460503c943696e0","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"df --output=size,used,avail /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"disk usage usb stick","x":980,"y":620,"wires":[["690be7d79892d973"],[],[]]},{"id":"690be7d79892d973","type":"string","z":"dafb11eb81330480","g":"76e57367fab33534","name":"clean up string","methods":[{"name":"delLeftMost","params":[{"type":"str","value":"\\n"}]},{"name":"collapseWhitespace","params":[]}],"prop":"payload","propout":"payload","object":"msg","objectout":"msg","x":1180,"y":600,"wires":[["49ded01211e89088"]]},{"id":"49ded01211e89088","type":"string-split","z":"dafb11eb81330480","g":"76e57367fab33534","name":"split up string","source_object":"msg","source_property":"","target_object":"msg","target_property":"","split_on":"","x":1350,"y":600,"wires":[["2c20168e392e6570"]]},{"id":"2c20168e392e6570","type":"function","z":"dafb11eb81330480","g":"76e57367fab33534","name":"prepare data for pie chart","func":"var m = {};\nvar used = Math.round((msg.payload[1]/1048576)*100)/100;\nvar free = Math.round((msg.payload[2]/1048576)*100)/100;\nm.labels = ['used (GB)', 'free (GB)'];\nm.data = [[used, free]];\nm.series = ['Diskspace USB stick'];\nreturn {payload:[m],topic:msg.topic};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1570,"y":600,"wires":[["552828b09b1af7f9","4dc50a6ae97b0ac0"]]},{"id":"b8c4f209d5a70e88","type":"function","z":"dafb11eb81330480","g":"76e57367fab33534","name":"prepare data for pie chart","func":"var m = {};\n\nm.labels = ['used (GB)', 'free (GB)'];\nm.data = [[0, 0]];\nm.series = ['USB stick'];\nreturn {payload:[m],topic:msg.topic};","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":990,"y":720,"wires":[[]]},{"id":"c62c9590cbce295c","type":"comment","z":"dafb11eb81330480","g":"76e57367fab33534","name":"diskspace usage","info":"","x":160,"y":660,"wires":[]},{"id":"b09b8821970c7eb8","type":"ui_button","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","group":"f6d0085dcc91498b","order":19,"width":5,"height":1,"passthru":false,"label":"FORMAT USB","tooltip":"","color":"","bgcolor":"","className":"text_size_30","icon":"","payload":"Are you sure? This will permanently delete all data on your USB stick!","payloadType":"str","topic":"","topicType":"str","x":160,"y":900,"wires":[["266be3c70751934e"]]},{"id":"266be3c70751934e","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"Yes. Delete everything!","cancel":"No. Get me out of here!","raw":false,"topic":"","name":"format sure?","x":350,"y":900,"wires":[["59c2309f91fc629d"]]},{"id":"59c2309f91fc629d","type":"switch","z":"dafb11eb81330480","g":"76e57367fab33534","name":"check response","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Yes","vt":"str"},{"t":"cont","v":"No","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":540,"y":900,"wires":[["3d2eda3b87529213"],["397f523402555d69"]]},{"id":"95499de015fd95b2","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"top right","displayTime":"3","highlight":"red","sendall":true,"outputs":0,"ok":"OK","cancel":"","raw":false,"topic":"","name":"","x":940,"y":940,"wires":[]},{"id":"397f523402555d69","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"warning msg","rules":[{"t":"set","p":"payload","pt":"msg","to":"Pfff, that was a close one!","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":940,"wires":[["95499de015fd95b2"]]},{"id":"3d2eda3b87529213","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount -f -l /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"eject usb stick","x":740,"y":880,"wires":[[],[],["ec58128a9a902943"]]},{"id":"ec58128a9a902943","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkfs.msdos /dev/sda1 -n usb","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"format stick","x":930,"y":880,"wires":[[],[],["c2702a6e7bbf823b"]]},{"id":"2d88118afe3bda69","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkdir /media/usb1/backup","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"create backup directory","x":1690,"y":880,"wires":[["07b748f5bdfa3ad1"],["c69ee86fce0e35bc"],["7f8e47f07ead50b6"]]},{"id":"e52016f0520d1aa9","type":"comment","z":"dafb11eb81330480","g":"76e57367fab33534","name":"format usb stick","info":"","x":160,"y":860,"wires":[]},{"id":"d9d9b13e284f15be","type":"ui_toast","z":"dafb11eb81330480","g":"76e57367fab33534","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"OK","cancel":"","raw":false,"className":"","topic":"","name":"Re-inserted?","x":1330,"y":880,"wires":[["4327fd457726ac36"]]},{"id":"4327fd457726ac36","type":"delay","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":1480,"y":880,"wires":[["2d88118afe3bda69"]]},{"id":"c2702a6e7bbf823b","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"Please remove, then re-insert the USB stick and press OK","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1140,"y":880,"wires":[["d9d9b13e284f15be"]]},{"id":"c776a683f2cd967c","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"ls -l /dev/disk/by-uuid/","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"1: USB ID","x":360,"y":140,"wires":[[],[],[]]},{"id":"17de34f2e65fb5c1","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkdir /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"2: mount point usb1","x":390,"y":200,"wires":[[],[],[]]},{"id":"db72aa18080eccd6","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo chown -R pi:pi /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"3: give pi permission to the folder usb1","x":450,"y":260,"wires":[[],[],[]]},{"id":"a010bfe7fbadb57e","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sda1 /media/usb1 -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"4: mount usb","x":370,"y":320,"wires":[[],[],[]]},{"id":"854123adcaea15d6","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"Eject USB","x":1050,"y":140,"wires":[[],[],[]]},{"id":"b03b94e5f6fe273a","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":140,"wires":[["c776a683f2cd967c"]]},{"id":"cc4d9e028ea2ee35","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":190,"y":320,"wires":[["a010bfe7fbadb57e","747a49515a2d2218"]]},{"id":"b9836ca3a8f0e33a","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":140,"wires":[["854123adcaea15d6"]]},{"id":"51776499823c65fa","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":440,"wires":[["4f697853821f06d8"]]},{"id":"aea8c822c3c61e64","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":200,"wires":[["17de34f2e65fb5c1"]]},{"id":"ac91fbbea61eb313","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":260,"wires":[["db72aa18080eccd6"]]},{"id":"d81723a382d6e823","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":22,"width":7,"height":1,"name":"show usb drive status in","label":"USB","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":1210,"y":680,"wires":[]},{"id":"a8d9394b9d65ca9e","type":"ui_button","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","group":"f6d0085dcc91498b","order":25,"width":5,"height":1,"passthru":false,"label":"Eject USB","tooltip":"","color":"","bgcolor":"","className":"text_size_30","icon":"","payload":"Are you sure? This will permanently delete all data on your USB stick!","payloadType":"str","topic":"","topicType":"str","x":170,"y":520,"wires":[["795cb1ae641cf3c0"]]},{"id":"07b748f5bdfa3ad1","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1910,"y":840,"wires":[]},{"id":"c69ee86fce0e35bc","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1910,"y":880,"wires":[]},{"id":"795cb1ae641cf3c0","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount -f -l /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"eject usb stick","x":380,"y":540,"wires":[[],[],["7e4ca8cb146cc93e"]]},{"id":"4bb0d185922fe89c","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo chown -R pi:pi /media/usb1","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"3: give pi permission to the folder","x":1120,"y":200,"wires":[["53455f08f1049b60"],["53455f08f1049b60"],[]]},{"id":"17c7fd026d82b4fa","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":200,"wires":[["4bb0d185922fe89c"]]},{"id":"9dcba814b31838f5","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sda1 /media/usb1 -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"4: mount usb","x":1050,"y":260,"wires":[["62c5d9cab85b999e"],["62c5d9cab85b999e"],[]]},{"id":"19518e8911fef9cd","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":880,"y":260,"wires":[["9dcba814b31838f5"]]},{"id":"62c5d9cab85b999e","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1270,"y":260,"wires":[]},{"id":"bf56b351af3fbf22","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":180,"y":560,"wires":[["795cb1ae641cf3c0"]]},{"id":"747a49515a2d2218","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sdb1 /media/usb1 -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"4: mount usb","x":370,"y":380,"wires":[[],[],[]]},{"id":"cbeda7dcd0d1a5fa","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":"5","topic":"","payload":"","payloadType":"date","x":200,"y":380,"wires":[["747a49515a2d2218"]]},{"id":"5b9ef1bb97f57e26","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1480,"y":920,"wires":[["2d88118afe3bda69"]]},{"id":"7f8e47f07ead50b6","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1910,"y":920,"wires":[]},{"id":"3d23937dad62eff6","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][0]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":740,"wires":[[]]},{"id":"65b5efed37626076","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][1]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":780,"wires":[[]]},{"id":"552828b09b1af7f9","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][0]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":580,"wires":[["fb715245cf08427a"]]},{"id":"4dc50a6ae97b0ac0","type":"change","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","rules":[{"t":"move","p":"payload[0].data[0][1]","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1850,"y":620,"wires":[["44f344875ff4a134"]]},{"id":"fb715245cf08427a","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":31,"width":5,"height":1,"name":"USB memory used","label":"","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2110,"y":580,"wires":[]},{"id":"44f344875ff4a134","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":28,"width":5,"height":1,"name":"USB memory free","label":"","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2110,"y":620,"wires":[]},{"id":"252d546cc31171cb","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":27,"width":7,"height":1,"name":"USB memory free in","label":"USB memory available","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2340,"y":620,"wires":[]},{"id":"9abba5a31f02d0a4","type":"ui_text","z":"dafb11eb81330480","g":"76e57367fab33534","group":"f6d0085dcc91498b","order":30,"width":7,"height":1,"name":"USB memory used in","label":"USB memory used","format":"{{msg.payload}}","layout":"row-left","className":"text_size_30","x":2340,"y":580,"wires":[]},{"id":"1cdd930.4fd706d","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"ls -l /dev/disk/by-uuid/","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"1: USB ID","x":1720,"y":140,"wires":[[],[],["1d410602.bbeb6a"]]},{"id":"6a21319c.6baf5","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mkdir /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"2: mount point","x":1740,"y":200,"wires":[[],[],["4abe2a2f.8ec394"]]},{"id":"cb159742.277e98","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo chown -R pi:pi /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"3:give pi folder permission","x":1770,"y":260,"wires":[[],[],["3c5664d8.166fbc"]]},{"id":"932a3a64.aa6de8","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo mount /dev/sda1 /media/pi/usb -o uid=pi,gid=pi","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"4: mount usb","x":1730,"y":320,"wires":[[],[],["4028d4b2.46170c"]]},{"id":"6a4f2fa.2e6ead","type":"exec","z":"dafb11eb81330480","g":"76e57367fab33534","command":"sudo umount /media/pi/usb","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"usb verwijderen","x":1740,"y":380,"wires":[[],[],["50d0ff3d.31298"]]},{"id":"4093c223.33f72c","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":140,"wires":[["1cdd930.4fd706d"]]},{"id":"1d410602.bbeb6a","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1890,"y":140,"wires":[]},{"id":"4abe2a2f.8ec394","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1930,"y":200,"wires":[]},{"id":"3c5664d8.166fbc","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":2130,"y":260,"wires":[]},{"id":"c3febccd.b9ada","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":320,"wires":[["932a3a64.aa6de8"]]},{"id":"71acf140.18fce","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":380,"wires":[["6a4f2fa.2e6ead"]]},{"id":"50d0ff3d.31298","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1930,"y":380,"wires":[]},{"id":"4028d4b2.46170c","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1910,"y":340,"wires":[]},{"id":"2bc105a1.f8938a","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":200,"wires":[["6a21319c.6baf5"]]},{"id":"5589ac79.802b44","type":"inject","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1540,"y":260,"wires":[["cb159742.277e98"]]},{"id":"53455f08f1049b60","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1350,"y":180,"wires":[]},{"id":"a7279239c6aa853e","type":"junction","z":"dafb11eb81330480","g":"76e57367fab33534","x":1680,"y":760,"wires":[["3d23937dad62eff6","65b5efed37626076"]]},{"id":"bd023f814b1292ba","type":"comment","z":"dafb11eb81330480","g":"76e57367fab33534","name":"eject usb stick with logged data","info":"","x":230,"y":80,"wires":[]},{"id":"eff57313becb139e","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":120,"wires":[]},{"id":"d3633d884b4a3584","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":200,"wires":[]},{"id":"3864c59a45c91191","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":690,"y":260,"wires":[]},{"id":"e6c7202dc53f7a66","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":530,"y":320,"wires":[]},{"id":"4cd0b64390c4ba56","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":550,"y":380,"wires":[]},{"id":"7578d830f0277f6b","type":"debug","z":"dafb11eb81330480","g":"76e57367fab33534","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":570,"y":420,"wires":[]},{"id":"f6d0085dcc91498b","type":"ui_group","name":"System specs","tab":"8b657473.5de3e8","order":1,"disp":false,"width":20,"collapse":false,"className":""},{"id":"8b657473.5de3e8","type":"ui_tab","name":"iStill System","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

You can just run this flow and screenshot it (maybe blur out IP or just don't connect that node)

why do you have an extra / on the end of the name in Node-RED ? the device is called /dev/ttyUSB0

I tried to remove the / at the end of /dev/ttyUSB0 but mothing....if I import the flow that you gave me Node Red stop working, no messages at all...

These the info about Node Red version e Raspian kernel...

What does the little magnifying glass butto to the right of the serial port config window show you ?


It should show the available serial ports to allow you to select it correctly.
Also you must not be running any other app that is trying to use the serial port at the same time.

Yes, if I click the little magnifying glass I have available serial port /dev/ttyUSB0 port but if I select it nothing...and I don't know how to check if there is another process that uses serialport, right now I have only Node Red installed in Raspian, no influxdb or other programs. Thanks for your help

I tried with a Raspberry Pi4 and serial-in works but victron battery Monitor node doesn't connect to serialport...with Victron Venus OS large with Node Red serial-in node and Victron battery monitor node work perfectly. It's really confusing...

Just to be sure, you did enable the serial interface in raspi-config…right? (Just covering the bases)

Yes, that was the first thing that I did. For me Node Red is too complicate. Anyway thanks for the help!