Difference between revisions of "Raspberry Pi Compute"
Jump to navigation
Jump to search
(→Setup) |
(→Setup) |
||
Line 27: | Line 27: | ||
echo "Installing M-Bus Libraries..." | echo "Installing M-Bus Libraries..." | ||
sudo apt-get -y install git libtool libltdl-dev autoconf automake | sudo apt-get -y install git libtool libltdl-dev autoconf automake | ||
sudo git clone https://github.com/rscada/libmbus.git | sudo git clone <nowiki>https://github.com/rscada/libmbus.git</nowiki> | ||
cd libmbus | cd libmbus | ||
sudo sh clean.sh | sudo sh clean.sh | ||
Line 42: | Line 42: | ||
cd ~ | cd ~ | ||
git clone https://github.com/SequentMicrosystems/ti-rpi.git | git clone <nowiki>https://github.com/SequentMicrosystems/ti-rpi.git</nowiki> | ||
cd ti-rpi/ | cd ti-rpi/ | ||
sudo make install | sudo make install | ||
cd ~ | cd ~ | ||
git clone https://github.com/SequentMicrosystems/megabas-rpi.git | git clone <nowiki>https://github.com/SequentMicrosystems/megabas-rpi.git</nowiki> | ||
cd /home/pi/megabas-rpi | cd /home/pi/megabas-rpi | ||
sudo make install | sudo make install |
Revision as of 19:27, 31 July 2022
https://www.waveshare.com/wiki/Write_Image_for_Compute_Module_Boards_eMMC_version
https://www.waveshare.com/wiki/CM4-DUAL-ETH-4G/5G-BASE
https://github.com/SequentMicrosystems/ti-rpi/blob/main/README.md
Setup
Install image to Compute using imager software.
https://www.raspberrypi.com/software/
The following commands can be executed manually, or can be saved into an 'sh' file (e.g. setup.sh) and then run using bash setup.sh
sudo apt-get update sudo apt-get upgrade bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) sudo systemctl enable nodered.service
sudo apt-get -y install mosquitto sudo apt-get -y install pwgen sudo apt-get -y install wget sudo apt-get -y install zip
sudo apt-get -y install build-essential cmake echo "Installing M-Bus Libraries..." sudo apt-get -y install git libtool libltdl-dev autoconf automake sudo git clone https://github.com/rscada/libmbus.git cd libmbus sudo sh clean.sh sudo sh build.sh make sudo make install sudo ln -s /usr/local/lib/libmbus.so.0 /usr/lib/libmbus.so.0
mkdir /home/pi/node-hiu mkdir /home/pi/node-hiu/logs mkdir /home/pi/node-hiu/iHIU mkdir /home/pi/node-hiu/flows sudo chmod -R 775 /home/pi/node-hiu
cd ~ git clone https://github.com/SequentMicrosystems/ti-rpi.git cd ti-rpi/ sudo make install
cd ~ git clone https://github.com/SequentMicrosystems/megabas-rpi.git cd /home/pi/megabas-rpi sudo make install
The following nodes should be installed via the Node-RED Palette Manager. Items in bold may need manually installing.
- node-red
- node-red-contrib-arp
- node-red-contrib-crypt
- node-red-contrib-drawsvg
- node-red-contrib-heatweb
- node-red-contrib-m-bus
- node-red-contrib-play-audio
- node-red-contrib-ui-level
- node-red-contrib-ui-svg
- node-red-dashboard
- node-red-node-daemon
- node-red-node-email
- node-red-node-pi-gpio
- node-red-node-ping
- node-red-node-random
- node-red-node-serialport
- node-red-node-smooth
- node-red-node-ui-table