• Raspberry Pi image with TRIGGERcmd pre-loaded

    Pinned raspberry pi
    1
    5
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Raspberry Pi setup

    Pinned Moved raspberry pi
    40
    0 Votes
    40 Posts
    36k Views
    Jorge FuentesJ
    That's brilliant, thank you for the information.
  • Error while installing the triggercmdagent

    6
    0 Votes
    6 Posts
    165 Views
    RussR
    @Hannibal, I see the problem. I told you /usr/lib/triggercmdagent which is the path on Ubuntu, not Raspberry Pi. Sorry about that. I corrected the "next steps" above to match the instructions here. It should look like this when you run the triggercmdagent command as root: pi@fe5978dee0e5:~$ sudo su - root@fe5978dee0e5:~# triggercmdagent Run installdaemon.sh to install the triggercmdagent daemon so it runs during boot Daemon install: false No token exists. Login to request one. prompt: token: Then run this to install the background agent that will startup as root during boot: /usr/share/triggercmdagent/app/src/installdaemon.sh Then edit /root/.TRIGGERcmdData/commands.json and make sure your commands have ground = background.
  • 0 Votes
    8 Posts
    3k Views
    XanderX
    I use CMDNOWND for this. https://dennisbabkin.com/cmdnownd/ You pop it in the cmd line like this: cmdnownd "D:\Libraries\Documents\batchfile.bat" and it suppresses the appearance of the cmd window. Just place the exe in your path. I keep it in the Windows folder itself. [image: 1767628367785-scrsht_cmdnownd.png]
  • How do I create a trigger

    2
    0 Votes
    2 Posts
    632 Views
    RussR
    @mega_big, on a Raspberry Pi, assuming you installed the agent using these instructions, your commands are in this file: /root/.TRIGGERcmdData/commands.json You'll see the default commands in there. You can run these commands to edit it: sudo su - cd /root/.TRIGGERcmdData nano commands.json While the agent is running, it will detect changes in that commands.json file and create/remove triggers for those commands in your TRIGGERcmd account. If you mess up the json at all (an extra comma even), the agent will restore the last backup it took. You'll see that in your debug.log. If you don't want to deal with editing text, you could create a command on your Windows PC using the "GUI Command Editor" then copy/paste the json text of that command from the "Text Command Editor" into your commands.json file.
  • Issues following installation instructions

    9
    0 Votes
    9 Posts
    2k Views
    RussR
    @jcksnftsn, awesome.
  • Commands.json reverting to previous version

    8
    0 Votes
    8 Posts
    2k Views
    RussR
    @Al-S, do the new commands have a voice word? That's required for the skill to create devices.
  • New user on latest Raspberry Pi help please!

    4
    0 Votes
    4 Posts
    985 Views
    RussR
    @Al-S, great. Glad that was it.
  • How to exactly run Commands on Raspi via Voice on Alexa

    3
    0 Votes
    3 Posts
    1k Views
    Furkan CevikF
    @Russ ty!!
  • Turn on 3D printer, print, then turn it off

    1
    1
    0 Votes
    1 Posts
    818 Views
    No one has replied
  • Contents of command.json getting lost

    9
    0 Votes
    9 Posts
    2k Views
    D
    Russ, is there any other information that you need or anything else that I can do or provide to help determine what to do to get my commands.json commands into TRIGGER.cmd on my RasPi Zero W?
  • NODE_TLS_REJECT_UNAUTHORIZED

    6
    0 Votes
    6 Posts
    7k Views
    RussR
    @hogkite, you're welcome. I just updated the Mac agent too.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Cannot execute shell scripts: Wrong json syntax?

    4
    0 Votes
    4 Posts
    1k Views
    RussR
    @riccardo-cereser, please try adding this to your script: SCRIPTDIR=$(dirname "$0") cd $SCRIPTDIR That way you can specify the full path to your script in the commands.json file, and when your script runs, it will cd to the directory where your script is.
  • i can't add trigger on my raspberry pi

    7
    0 Votes
    7 Posts
    2k Views
    Pé de PanoP
    It all worked out! Thank you very much Russ, you helped me a lot.@russ
  • I can't create triggers on the raspberry pi

    Moved
    12
    0 Votes
    12 Posts
    4k Views
    RussR
    @dean-mcnaughton, nice. Good job getting it working.
  • installing triggercmd on a raspberry pi router that has openWRT

    2
    0 Votes
    2 Posts
    858 Views
    RussR
    @zed-master, if you can install nodejs on it, you should be able to run the agent.js with a command like this: node agent.js --console You can find the agent code at https://github.com/rvmey/TRIGGERcmdAgent
  • Command format on Raspi

    Moved
    32
    0 Votes
    32 Posts
    14k Views
    tuicemenT
    @steve-porter yep that will mess things up. I remember reading another post about that so that isn't something that you alone have experienced. I found a couple times the file didn't update for me for different errors in command lines. I've gotten into the habit of double checking if it saves.
  • Raspbery Pi docker / docker-compose

    Moved
    2
    0 Votes
    2 Posts
    1k Views
    RussR
    @Andy-Kutruff, try this one. I just pushed it: docker pull rvmey/triggercmdagent:arm You'll need to create an actual computer record in your account and get the ID for it from your browser's address bar after you click view triggers.
  • Installation error on Raspberry PI 3

    Moved
    7
    0 Votes
    7 Posts
    2k Views
    RussR
    Very cool. Thanks @Sébastien-Pineau. I'll let you know if I get this working.