TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Windows script to prep SD card for Raspberry Pi with TRIGGERcmd agent

    Instructions
    raspberry pi
    2
    4
    1.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR
      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:

      1. Downloads and copies everything you need to the SD card.
      2. Works with wifi or wired Internet connections.
      3. Comes with commands to open two garage doors - just connect the relay board to the GPIO pins.
      4. Tested on Pi Zero W and Pi 2, but should work on all newer Pi's including the Pi 4.

      Instructions:

      1. Insert your SD card into your Windows PC.
      2. Download SD Memory Card Formatter and use it to format your SD card.
      3. Download setup.bat to a folder on your computer.
      4. Open a cmd Window 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'll use ethernet)
        Your wifi network password (only if you entered a wifi network name)
        Your pi user password
        Your TRIGGERcmd token
      5. Eject your SD card.
      6. Insert your SD card into the Raspberry Pi.
      7. Optional: Connect your relay to the Raspberry Pi's GPIO pins.
      8. Power on your Raspberry Pi and wait until it's done setting up.
      9. 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:

      1. Download and install putty
      2. Use putty to ssh to raspberrypi
      3. Log in as pi with the password you set during installation
      4. 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:
      https://www.amazon.com/JBtek-Channel-Module-Arduino-Raspberry/dp/B00KTELP3I

      Github repo for this: https://github.com/rvmey/raspberry-pi-setup

      Russell VanderMey

      Dean McNaughtonD 1 Reply Last reply Reply Quote 0
      • RussR Russ referenced this topic on
      • Dean McNaughtonD
        Dean McNaughton @Russ
        last edited by

        @russ
        Not sure if this is expected to work anymore. My setup gets stuck at the boot screen.

        IMG_0072(1).jpg

        RussR 1 Reply Last reply Reply Quote 0
        • Dean McNaughtonD Dean McNaughton referenced this topic on
        • RussR
          Russ @Dean McNaughton
          last edited by

          @dean-mcnaughton, I'll test it. Just to confirm, you formatted your SD card, then ran setup.bat? Did you confirm setup.bat wrote data to your SD card before you put it in your Raspberry Pi?

          Russell VanderMey

          Dean McNaughtonD 1 Reply Last reply Reply Quote 0
          • Dean McNaughtonD
            Dean McNaughton @Russ
            last edited by

            @Russ
            I think the batch file wrote info to the card, but can't remember for sure. I'm hesitant to repeat the experiment right now because the SSD card is configured and running Raspberry Pi OS.

            As far as I'm concerned, this is not an active issue for me anymore because I installed it a different way; I should have followed up to let you know. Thank you for looking into it and responding though!

            1 Reply Last reply Reply Quote 0
            • RussR Russ referenced this topic on
            • RussR Russ referenced this topic on
            • First post
              Last post