Windows script to prep SD card for Raspberry Pi with TRIGGERcmd agent
Russ last edited by Russ
This script makes it super easy to setup a Raspberry Pi with the TRIGGERcmd agent installed.
Here's a link to a video showing this process: https://youtu.be/Gj4Kv3kBMgc
It has these features:
- Downloads and copies everything you need to the SD card.
- Works with wifi or wired Internet connections.
- Comes with commands to open two garage doors - just connect the relay board to the GPIO pins.
- Tested on Pi Zero W and Pi 2, but should work on all newer Pi's including the Pi 4.
- Insert your SD card into your Windows PC.
- Download SD Memory Card Formatter and use it to format your SD card.
- Download setup.bat to a folder on your computer and run it.
It will prompt you for these things:
The drive letter of your SD card (for example E)
Your wifi network name (just press enter if you don't want to use wifi)
Your wifi network password (only if you entered a wifi network name)
Your pi user password
Your TRIGGERcmd token
- Eject your SD card.
- Insert your SD card into the Raspberry Pi.
- Optional: Connect your relay to the Raspberry Pi's GPIO pins.
- Power on your Raspberry Pi and wait until it's done setting up.
- Log into www.triggercmd.com and test your triggers.
Then, to modify your commands, you'll need to manually edit the /root/.TRIGGERcmdData/commands.json file with these steps:
- Download and install putty
- Use putty to ssh to raspberrypi
- Log in as pi with the password you set during installation
- Run these commands:
sudo su - nano /root/.TRIGGERcmdData/commands.json
See these photos for how to connect the wires to open two garage doors with your Raspberry Pi.
Here's a link to the circuit board with 8 relays:
Github repo for this: https://github.com/rvmey/raspberry-pi-setup