TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. Instructions
    3. Raspberry Pi
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • RussR

      Enable or disable ads with Pi-hole on a Raspberry Pi

      • • Russ
      8
      0
      Votes
      8
      Posts
      1.8k
      Views

      Furkan CevikF

      @Russ Works now, thanks!

    • Alfredo GuzmanA

      hi, when i try to edit /root/.TRIGGERcmdData/commands.json raspberry pi says this -bash: /root/.TRIGGERcmdData/commands.json: Permiso denegado i`m novice and sorry for my bad english please help!

      • • Alfredo Guzman
      2
      0
      Votes
      2
      Posts
      264
      Views

      RussR

      @Alfredo-Guzman, you have to switch yourself to the root user before you can edit that file.

      This command will switch to root:

      sudo su -
    • Jack BaileyJ

      How do I run a .py file on my RaspberryPi through TriggerCMD?

      • • Jack Bailey
      2
      -1
      Votes
      2
      Posts
      463
      Views

      RussR

      @Jack-Bailey, what will steam.py do? Anyway here are some steps you'll need to do. Let me know if you get stuck on any of them.

      Create your steam.py file and test it. Install the TRIGGERcmd agent on your Raspberry Pi and test it using one of the built-in commands. Run this to install the background service so it starts when your Raspberry Pi boots:
      /usr/share/triggercmdagent/app/src/installdaemon.sh Add your python3 steam.py command to your /root/.TRIGGERcmdData/commands.json file. Something like this:
      {"trigger":"steam","command":"python3 \/root\/steam.py","ground":"background","voice":"steam","allowParams": "false"}, Test it using the green Trigger button on the TRIGGERcmd website. Go to ifttt.com and create your Button widget / TRIGGERcmd applet that runs your command. Long-press the IFTTT app icon and select Widgets, and place your button widget on your home screen.
    • RussR

      Raspberry Pi relay wiring photos

      raspberry pi • • Russ
      1
      0
      Votes
      1
      Posts
      562
      Views

      No one has replied

    • P

      Can't add command with raspberry pi 3b+

      • • Phuong Dinh
      9
      0
      Votes
      9
      Posts
      1.2k
      Views

      P

      Okay, the command lines you provided work, and I also changed my command word to just "shut" so Alexa can recognize it better. Overall, thanks a lot for helping me, TriggerCMD is definitely a great tool for the raspberry pi.

    • J

      Adding Parameter to raspberry pi commands

      • • js
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      RussR

      Ok @js, you could change your commands.json to this:

      [ {"trigger":"Monitor","command":"/root/monitor.sh","ground":"background","voice":"Monitor","allowParams": "true"} ]

      And put this in your /root/monitor.sh script:

      #!/bin/bash if [ "$1" = "on" ] ; then echo Turning it on vcgencmd display_power 1 fi if [ "$1" = "off" ] ; then echo Turning it off vcgencmd display_power 0 fi

      And say this to Alexa or Google Assistant:

      ask TRIGGERcmd to run monitor with parameter on

      Or use the TRIGGERcmd Smart Home Alexa skill or the SmartThings integration with Google Assistant, and say this:

      turn on monitor
    • RussR

      TRIGGERcmd projects on hackster.io

      • • Russ
      1
      0
      Votes
      1
      Posts
      1.6k
      Views

      No one has replied

    • RussR

      Run remote commands with an old VCR remote and a Raspberry Pi Zero W

      • • Russ
      1
      1
      Votes
      1
      Posts
      3.0k
      Views

      No one has replied