t3alliance / protero-cimex

Bug squash
1 stars 0 forks source link

Update T3 image w/ rtl433 #2

Open dayne opened 4 years ago

dayne commented 4 years ago

Create a new t3 baseline image that include rtl433 tools and has updated apt/nodered The parts to merge

dayne commented 4 years ago

Update Node Red

TBD: update node-red nodes somehow?

Node-Red Nodes

cd ~/
curl http://www.airspayce.com/mikem/bcm2835/bcm2835-1.56.tar.gz > bcm2835-1.56.tar.gz
tar zxvf bcm2835-1.56.tar.gz
cd bcm2835-1.56
./configure
make
sudo make check
sudo make install
cd ~/
sudo npm install --unsafe-perm -g node-dht-sensor
sudo npm install --unsafe-perm -g node-red-contrib-dht-sensor
node-red-contrib-oled
npm install node-red-contrib-oled
node-red-contrib-bme280
npm install node-red-contrib-bme280
node-red-contrib-hostip
npm install node-red-contrib-hostip
node-red-contrib-cpu
npm install node-red-contrib-cpu
node-red-contrib-easybotics-led-matrix
- ben writing install script
node-red-node-ping
Possibly these are necessary - try without
sudo setcap cap_net_raw=ep /bin/ping
sudo setcap cap_net_raw=ep /bin/ping6
npm install node-red-node-ping
node-red-contrib-thingspeak42
npm install node-red-contrib-thingspeak42
node-red-node-pisrf - Ultrasonic HC-SR04 sensor node
npm install node-red-node-pisrf

Install library for servo? - maybe the DIO library does this already? Install many other node-red nodes we need! add to this list

Final steps

command: sudo dd bs=4M if=/dev/sda of=/home/pi/IMAGE_BACKUP.img SD card will be mounted as /dev/SDA or similar to find what it mounted as, run 'dmesg' immediately after mounting and look for the message saying 'mounted sd card as ... /dev/SDA if SDB then use this line to copy to another external drive modify drive name: sudo dd bs=4M if=/dev/sdb of=/media/pi/256gbSSD/IMAGE_BACKUP.img Use PiShrink https://github.com/Drewsif/PiShrink wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh chmod +x pishrink.sh sudo mv pishrink.sh /usr/local/bin sudo pishrink.sh -s imagefile.img newimagefile.img Tool to mass flash SD cards - use USB3 SD card readers - they offload processing vs the USB2.0 versions I have tried  https://github.com/aaronnguyen/osid-python3

DO NOT DO THIS ON NORMAL SD CARD IMAGE - ONLY FOR LEGACY KITS WITH 7" SCREEN

For 7" screen you must modify the config.txt with the following:

hdmi_group=2 hdmi_mode=87 hdmi_cvt 1024 600 60 3 0 0 0 hdmi_force_hotplug=1

clowrey commented 4 years ago

https://github.com/easybotics/t3-rpi-config-script

clowrey commented 4 years ago

https://github.com/easybotics/easybotics-air-quality-config-script