• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. Russ
  • Profile
  • Following 1
  • Followers 42
  • Topics 221
  • Posts 2,629
  • Best 167
  • Controversial 6
  • Groups 1

Russ

@Russ

administrators

I'm a tech enthusiast with about 30 years experience in IT. Recently I'm also a TRIGGERcmd developer.

166
Reputation
3.8k
Profile views
2.6k
Posts
42
Followers
1
Following
Joined Mar 25, 2017, 2:42 AM Last Online about 5 hours ago
Website triggercmd.com Location Haslett, MI

Russ Unfollow Follow
administrators

Best posts made by Russ

  • RE: Laptop Battery Management - Automated On/Off Cycle

    @philip-nguyen, there's a similar question here.

    These are the high level steps:

    1. Create 2 commands that just run echo (doesn't matter what), and name them PlugOn and PlugOff.
    2. Setup two Alexa routines - one that turns on your smart plug when the PlugOn command runs, and other that turns it off when the PlugOff command runs.
    3. Create a script. At the beginning of the script, do the following:
    4. Set variable called PLUG_IS_ON with a default value of true.
    5. To make sure the plug is on at first, run the tcmd utility like this: tcmd -t plugon -c (your TRIGGERcmd computer name)
    6. Create a loop that repeats every minute. Inside the loop, do the following:
    7. Check your battery level with BatteryInfoView.exe
    8. When the level is below 30 percent and PLUG_IS_ON = false, run tcmd utility like this: tcmd -t plugon -c (your TRIGGERcmd computer name)
    9. When the level is above 99 percent and PLUG_IS_ON = true, run tcmd utility like this: tcmd -t plugoff -c (your TRIGGERcmd computer name)
    10. Also set PLUG_IS_ON to true when you run plugon, and set it to false when you run plugoff

    I think that should work. Do you know how to do that? Let me know if you get stuck, and where you get stuck. I can look at your script if you paste it here.

    posted in Example Commands
    R
    Russ
    Jan 22, 2022, 12:27 AM
  • List of ways to trigger your commands

    You can use this web page of course, but don't stop there. Check out this list of ways to run your commands on your computers.

    The Smart Home version of the Alexa skill and Google Assistant action does the best job of matching your spoken words to your commands.

    Smart Home voice assistant skills (Example: "Alexa, turn on calculator") <--Recommended

    • "TRIGGERcmd Smart Home" Alexa skill
    • "TRIGGERcmd Smart Home" Google Assistant action

    Original "conversational" voice assistant skills (Example: "Alexa, ask TRIGGERcmd to run calculator"):

    • Original Alexa skill
    • Original Google Assistant action (deprecated)

    Progressive Web App (PWA)

    • https://app.triggercmd.com

    Mobile apps:

    • Apple App Store: TRIGGERcmd
    • Google Play Store: TRIGGERcmd (supports widgets)
    • Amazon App Store: TRIGGERcmd

    Run your commands when things happen in other Internet services:

    • Zapier - create a "Zap" that runs your command when something happens on one of their 1500+ supported apps.
    • Make - create "scenarios" that run commands on your computers.
    • IFTTT - If This Then run a command, or if a TRIGGERcmd command runs, run an IFTTT applet.
    • Microsoft Power Automate (aka Flow) - run commands when things happen in Office 365 and other services.
    • Pipedream - build workflows that run your commands.

    IoT Smart Home hubs:

    • Home Assistant - Flip virtual HA switches to run your TRIGGERcmd commands.
    • Samsung SmartThings - Create virtual switches for each command, then flip the switches to run them. (Not working as of 6/21/2025)
    • Homey - Use the ‘run command’ flow action.
    • Hubitat - Trigger a command like you'd flip a switch.
    • Node-RED - Run commands using an "http request".
    • HomeKit - Use the homebridge-http-switch plugin with a bookmark URL.

    Other cool stuff:

    • Run an Alexa routine - when one of your TRIGGERcmd commands runs.
    • Google Assistant routine (aka automation) - use one of your TRIGGERcmd commands as a "starter" to run your routine when the command runs, or run one of your commands as a routine's "action." Either way, you must use the google automations script editor, not the Home app.
    • MCP - Run commands from AI LLM chats. You can tell the LLM what the command does and how to use the parameters ahead of time
    • Bookmarks - Create and share URL's that run your commands without authentication. You can set an optional timeout to make bookmark URL's expire. People can also scan your bookmark's QR code to run the command.
    • iOS shortcut - Use the iOS Shortcuts app to run your commands with Siri.
    • REST API - Use curl or other client to call the TRIGGERcmd API.
    • tcmd - Command line tool written in Go.
    • Tasker - Tasker is an Android app for automating things with your phone.
    • Slack app - Run your commands with Slack "slash" commands.
    • Powershell - Run a command on a computer across the Internet from your powershell script.
    • Roku channel - Run a command from your Roku.
    • Unity - Run a command from a Unity game or utility you made.
    • Streamdeck - Configure a Streamdeck button to run a command on a remote computer.
    • Python - Run a command on a remote computer from a python script.
    • Paywall URL's - Similar to bookmark URL's, you can also charge people via Paypal to run your commands.
    posted in Instructions trigger methods
    R
    Russ
    May 21, 2017, 1:40 PM
  • Autohotkey script for Play, Pause, Volume Up/Down, Next/Previous

    You'll need to install this on your Windows box to make it work: https://autohotkey.com

    This is my media.ahk autohotkey script:

    Gosub, %1%
    return

    next:
    Send {Media_Next}
    return

    previous:
    Send {Media_Prev}
    return

    pause:
    Send {Media_Play_Pause}
    return

    play:
    Send {Media_Play_Pause}
    return

    stop:
    Send {Media_Stop}
    return

    volup:
    Send {Volume_Up}
    return

    voldown:
    Send {Volume_Down}
    return

    mute:
    Send {Volume_Mute}
    return

    These are the corresponding commands.json entries:

    {"trigger":"Mute","command":"start C:\\autohotkeyscripts\\media.ahk mute","ground":"foreground","voice":"mute"},
    {"trigger":"Volume Up","command":"start C:\\autohotkeyscripts\\media.ahk volup","ground":"foreground","voice":"volume up"},
    {"trigger":"Volume Down","command":"start C:\\autohotkeyscripts\\media.ahk voldown","ground":"foreground","voice":"volume down"},
    {"trigger":"Media Next","command":"start C:\\autohotkeyscripts\\media.ahk next","ground":"foreground","voice":"next"},
    {"trigger":"Media Stop","command":"start C:\\autohotkeyscripts\\media.ahk stop","ground":"foreground","voice":"stop"},
    {"trigger":"Media Previous","command":"start C:\\autohotkeyscripts\\media.ahk previous","ground":"foreground","voice":"previous"},
    {"trigger":"Media Play Pause","command":"start C:\\autohotkeyscripts\\media.ahk pause","ground":"foreground","voice":"pause"},

    NOTE: You don't need a Play and a Pause because they do the same thing - they just toggle between play and pause.

    This is optional, but I'm also using my Raspberry Pi based IR receiver to trigger the above commands with a VCR remote.

    I have these entries in my /etc/lirc/lircrc file on the Pi:

      begin
           prog = irexec
           button = KEY_1
           config = export HOME=/root ; /root/triggertest.sh play downstairs
      end
      begin
           prog = irexec
           button = KEY_2
           config = export HOME=/root ; /root/triggertest.sh notepad downstairs
      end
      begin
           prog = irexec
           button = KEY_PLAY
           config = export HOME=/root ; /root/triggertest.sh "Media Play Pause" downstairs
      end
      begin
           prog = irexec
           button = KEY_PAUSE
           config = export HOME=/root ; /root/triggertest.sh "Media Play Pause" downstairs
      end
      begin
           prog = irexec
           button = KEY_RIGHT
           config = export HOME=/root ; /root/triggertest.sh "Media Next" downstairs
      end
      begin
           prog = irexec
           button = KEY_LEFT
           config = export HOME=/root ; /root/triggertest.sh "Media Previous" downstairs
      end
      begin
           prog = irexec
           button = KEY_STOP
           config = export HOME=/root ; /root/triggertest.sh "Media Stop" downstairs
      end
      begin
           prog = irexec
           button = KEY_UP
           config = export HOME=/root ; /root/triggertest.sh "Volume Up" downstairs
      end
      begin
           prog = irexec
           button = KEY_DOWN
           config = export HOME=/root ; /root/triggertest.sh "Volume Down" downstairs
      end
      begin
           prog = irexec
           button = KEY_MUTE
           config = export HOME=/root ; /root/triggertest.sh "Mute" downstairs
      end
    
    posted in Windows
    R
    Russ
    May 15, 2017, 9:26 PM
  • RE: internal server error

    @Micael-Sousa, good to know. I'm glad you figured this out.

    posted in Alexa
    R
    Russ
    Jan 30, 2024, 10:29 PM
  • Turn monitors on and off

    Turn monitors off:

    powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)
    

    Turn monitors on (didn't work for me - see below):

    powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,-1)
    

    In my case, the Turn monitors on powershell command didn't work for me. My monitors turned on but then turned right back off for some reason. So instead, I used this script and made this my command line so it effectively presses the Print Scrn button to turn my monitors back on:

    wscript d:\scripts\key.vbs PRTSC
    
    posted in Windows
    R
    Russ
    Apr 29, 2020, 3:36 PM
  • RE: Doc Api

    @Ruan-Santana, I added two pages to the documentation this morning:

    https://docs.triggercmd.com/#/./API/TriggerCommand
    https://docs.triggercmd.com/#/./API/ListCommands

    Is that what you're looking for?

    posted in API
    R
    Russ
    Aug 20, 2023, 4:34 PM
  • RE: New Bookmark option for each trigger

    @tim-s, that's right - you could even just change the trigger name and change it back, and it would invalidate the bookmark URL.

    posted in Announcements
    R
    Russ
    Mar 4, 2018, 1:43 AM
  • RE: Shutdown não funciona no mac

    @Waldex-Santos, I think this should work:

    osascript -e 'delay 60' -e 'tell app "System Events" to shut down'
    
    posted in Mac
    R
    Russ
    Apr 11, 2023, 10:08 PM
  • Hubitat integration

    @Royski created this Hubitat integration that works just like the SmartThings integration.

    His write up is here, on the Hubitat community forum:
    https://community.hubitat.com/t/release-triggercmd-for-hubitat/22715

    The code and instructions are here:
    https://github.com/rvmey/HubitatTRIGGERcmd

    Here's quick video showing it working:
    https://youtu.be/V90B7jbEYxI

    posted in Instructions
    R
    Russ
    Sep 13, 2019, 11:50 PM
  • RE: Triggercmd smart home not reachable

    It's back up now.

    One of my servers went down last night, and Kubernetes didn't handle the fail-over well.

    I got an email from my monitoring system while I was sleeping. I'll need to setup something else that will actually wake me up.

    I'm sorry about this outage.

    posted in Google Home
    R
    Russ
    Dec 17, 2021, 1:49 PM

Latest posts made by Russ

  • RE: api pyton para alexa

    @Fabio, are you able to run your script as a TRIGGERcmd command yet?

    You can run it with a command like this:

    python3 c:\folder\pyautogui-position\script.py
    
    posted in API
    R
    Russ
    3 days ago
  • TRIGGERcmd stdio MCP server for LLM AI integration

    This should work with any MCP client, but I've tested it with VS Code and Claude Desktop.

    This video shows how to set it up and use it: https://youtu.be/4WSN52Optjk

    c3154223-a644-4430-9886-78ecded02ce6-image.png

    I put the instructions and download links here:
    https://github.com/rvmey/triggercmd-mcp-stdio

    TIP: Most AI tools give you an option like this Claude setting. This tells the LLM how to use your commands (and their parameters), so you don't have to tell it every time you start a new chat:

    afdeeac9-2cbd-40c7-8197-ac205e7723a0-image.png

    posted in Announcements
    R
    Russ
    9 days ago
  • RE: Can't Open Application

    @garym77, does that command work from a Terminal window? You should run it there first so you can see if the command gives an error.

    Also, you should make the voice word something like creality so you can say "Alexa, turn on creality" after you enable the Triggercmd Smart Home skill.

    posted in General Discussion
    R
    Russ
    22 days ago
  • RE: Invoice for subscription

    @Stanisław-Grzybołowski

    I emailed you the PayPal transaction info. Hopefully that will serve as an invoice.

    posted in General Discussion
    R
    Russ
    Aug 18, 2025, 10:03 PM
  • New n8n community node called n8n-nodes-triggercmd

    For now you can only use it if you run your own n8n community edition server because n8n has not verified it yet. I submitted it to be verified and I'll update this post when/if they do verify it.

    2bc286b7-5b70-4baa-bff5-43dd3c1c7d44-image.png

    posted in Announcements
    R
    Russ
    Aug 18, 2025, 1:48 AM
  • RE: TriggerCMDAgent gives Errors when shutting down PC

    @Furkan-Cevik, you're welcome. I just published version 1.0.48. I hope that fixes it, but please tell me if you see it again after upgrading.

    posted in General Discussion
    R
    Russ
    Aug 17, 2025, 10:27 PM
  • RE: TriggerCMDAgent gives Errors when shutting down PC

    @Furkan-Cevik, thank you for reporting it. I have a theory about what's causing it, and I'll produce a new agent version soon.

    posted in General Discussion
    R
    Russ
    Aug 17, 2025, 2:57 PM
  • RE: Monetizing Triggers?

    @Convaiyer, let's talk about it. I just sent you a PM.

    posted in General Discussion
    R
    Russ
    Aug 16, 2025, 5:32 PM
  • RE: Auto-Email - >1 Command?

    @Ron-Hoskins, I upgraded your account to subscribed for now, just so we can troubleshoot this.

    The Runs list does not get updated when you're not subscribed and try to run more than one command per minute. Now that your account is subscribed, you should be able to see what command is running more than once per minute.

    Let me know what you see please.

    posted in Instructions
    R
    Russ
    Aug 11, 2025, 9:31 PM
  • RE: app version for mac os yosemite

    @rsxyo, you could try this old mac version. I don't have Yosemite to test it myself, but it might be old enough.

    https://triggercmdagents.s3.us-east-1.amazonaws.com/TRIGGERcmdAgent36.dmg

    posted in General Discussion
    R
    Russ
    Aug 11, 2025, 2:43 AM