and then remembered you couldn't just do that as it needs sorting out to run on the older ARM chip in the PiZero
So I ran the standard Pi bash update script thinking this would sort it out but got this
This can take 20-30 minutes on the slower Pi versions - please wait.
Stop Node-RED ✔
Remove old version of Node-RED ✔
Remove old version of Node.js -
Update Node.js LTS ✘ Failed to install Node.js - Exit
Clean npm cache
Install Node-RED core
Move global nodes to local
Install extra Pi nodes
Npm rebuild existing nodes
Add menu shortcut
Update systemd script
Any errors will be logged to /var/log/nodered-install.log
any suggestions? (short of setting up the PiZero from scratch )
Simon
Yippee
Stop Node-RED
Remove old version of Node-RED
Remove old version of Node.js
Install Node.js for Armv6 Node v8.11.4 Npm 5.6.0
Clean npm cache
Install Node-RED core 0.19.2
Move global nodes to local -
Install extra Pi nodes -
Npm rebuild existing nodes
Add menu shortcut
Update systemd script
id=Node-RED.desktop
Thanks for this - I was able to get a project working on an Rpi3 to work on the Pi zero-w. But the mail node seems to be missing. Is this something I need to re-install from node-red?
That worked. I re-installed it from the pallet menu. I do notice much longer load times on the Pi Zero - up to 10m from power up to node-red being active. It is long on a Pi3 too, but usually only a few minutes.
Yes. Sandisk Ultra 64Gbyte up to 100MB/s - I see 70 or so when doing disk copies. Writing slower, like 20ish. The slow time starting is only on first power up. If a kill node-red, then restart it, it goes much faster.
I did have a problem that I thought was a reliability issue, but turns out I had some code in GPIO that was waiting for a signal that occasionally didn't show up - wasn't an issue with Rpi3, but there have been some timing issues with the Zero needed adjusting. A timed delay fixed it.Seems to be very reliable now - running for a while to see how it does. Cross platform testing like this is a good way to expose program vulnerabilities!
you may need to be slightly careful - as Pi0 is Arm6 based and Pi3 Arm7 - at one stage the binaries were different enough that a card installed on a Pi3 could not be moved to a Pi0 - whereas you could go from 0 to 3...
So far it seems the C code cross compiled using Eclipse and a rather old version of the compiler has worked fine, and SD cards moved from the Pi3 to the Pi0 will boot up and run code. So far the biggest issues were node-red not working - Illegal Instruction - (but the above changes fixed that), and some timing issues due to the arm6 running slower than the arm7. So far relatively easy to fix.
I've recently designed and built a monitoring 16s BMS with 16 additional sensor channels, fan and relay controls that's drive by the Rpi, and it needs to be VERY reliable. We've had many Rpi3s in the field for 8 years now monitoring other BMS (not our design), running flawlessly, so I know they are reliable. I use almost all the GPIO pins.