04-16-2024, 02:29 PM
I ran into problems with Node-RED on the UCM/Pi being out of date preventing node-red-contrib-home-assistant-websocket from connecting to Home Assistant. This resulted in all my flows being unable to run. I tried the upgrade.sh script but it failed and I had to restore from a backup.
When Raspberry Pi CM4s\' finally became available I took the plunge and ordered one along with a Waveshare CM4 to CM3 adapter board. My reasoning was that if the installation failed, I could put the CM3 back in.This turned out to be wise, as after doing a clean Raspbian install, the alphaWerk Quickstart Script (install.sh) immediately failed with a node.js install error. I went through the script and managed to fix all the errors as they occurred, which took quite some time as I\'m not a Linux scripting expert.I have done a clean install with this version of the script on both a CM3 and a CM4, and it works fine. Node-RED v3.1.6 installed without any errors, and the Cytech nodes work as expected. A few things to watch out for:
When Raspberry Pi CM4s\' finally became available I took the plunge and ordered one along with a Waveshare CM4 to CM3 adapter board. My reasoning was that if the installation failed, I could put the CM3 back in.This turned out to be wise, as after doing a clean Raspbian install, the alphaWerk Quickstart Script (install.sh) immediately failed with a node.js install error. I went through the script and managed to fix all the errors as they occurred, which took quite some time as I\'m not a Linux scripting expert.I have done a clean install with this version of the script on both a CM3 and a CM4, and it works fine. Node-RED v3.1.6 installed without any errors, and the Cytech nodes work as expected. A few things to watch out for:
- Remember to export all your flows from Node-RED before starting, as you will be wiping the Pi.
- When installing Raspbian, follow the instructions on the AlphaWerk github - UCMPi_OS Install but be sure to setup a user named pi, as the script assumes it exists. Raspbian no longer defaults to username pi.
- To flash the Compute Module you will need the drivers and boot tool to mount it as a storage device. Use the Raspberry Pi Imager to install the 32-bit version of Pi OS Lite. I haven\'t tried the 64-bit version.
- Unzip and copy the attached version of the script into /home/pi and run the commands from there. You will need to make it executable with chmod +x install.sh
- Then just run it with ./install.sh
- Do not run it as sudo, or under any other user name.
- The UCM/Pi must be connected to the alarm system bus for the install to succeed.
- After the script completes, it can take several minutes for the login page to be available at [url=http://

