• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. Strahan
  3. Topics
  • Profile
  • Following 0
  • Followers 0
  • Topics 6
  • Posts 13
  • Best 0
  • Controversial 0
  • Groups 0

Topics created by Strahan

  • S

    Having issues with TC launching a batch

    General Discussion
    • • 16 days ago • Strahan 15 days ago
    2
    0
    Votes
    2
    Posts
    14
    Views

    R 15 days ago

    @Strahan, I wonder if when the TC agent runs your batch file, the sql.exe file isn't in your PATH, so it doesn't run. The agent is probably running your batch file, which you've basically already proven with your loghealth.bat experiment.

    I like that you added another line to your laundryreset.bat file that writes something to a log file, but it's writing your log.txt file to the present working directory, which in the context of the TC agent is something like this:
    C:\Users\russ\AppData\Local\triggercmdagent\app-1.0.47\resources\app\src

    Assuming it is running your laundryreset script, you can probably fix this if you put the full path to your sql.exe file (and your log file) in the laundryreset.bat file, something like this:

    @echo off c:\full\path\sql.exe homecenter "delete from activeitems where action = 8192" /u service.triggercmd.homecenter /p (pwd) /h lioth.mydomain.com /l c:\logs\laundryreset.log echo From laundryreset.bat >> c:\logs\laundryreset.log dir >> c:\logs\laundryreset.log

    You'll want to remove the last 2 lines, especially the dir line, but I put it there because that can show you what the working directory is.

  • S

    Any idea why this batch is failing to run?

    Windows
    • • Nov 27, 2023, 3:47 PM • Strahan Nov 27, 2023, 11:25 PM
    2
    0
    Votes
    2
    Posts
    214
    Views

    R Nov 27, 2023, 11:25 PM

    @Strahan, that should work.

    Do you see an Alexa device called "bedtime" in the Alexa app?
    667c86ef-d339-433a-acd2-c9d521cb6e3c-image.png

    FYI, you could also remove the on and off portion of the command, and clear the "Off command" field like this because the agent will add " on" or " off" to your command depending on whether you're flipping the virtual switch on or off.

    Trigger: bedtime Command: c:\misc\loghealth.bat bedtime

    At first I was concerned that bedtime might be a reserved word, but I tried "bedtime" and "bed time" in the Voice field and both worked for me.

    82dfaf50-a9a4-4549-9f78-e8001a91b436-image.png

  • S

    How do I subscribe?

    General Discussion
    • • Jan 10, 2021, 6:05 PM • Strahan Jan 11, 2021, 2:28 AM
    2
    0
    Votes
    2
    Posts
    259
    Views

    R Jan 11, 2021, 2:28 AM

    @Strahan, you'll find a Paypal subscribe button at the bottom of the Instructions page.

  • S

    Backup settings

    General Discussion
    • • May 19, 2019, 1:59 PM • Strahan May 24, 2019, 12:43 AM
    6
    0
    Votes
    6
    Posts
    1.1k
    Views

    R May 24, 2019, 12:43 AM

    @strahan, the connection is made from the agent on your computer to the TRIGGERcmd servers via that IP. That doesn't mean traffic only has to flow in that one direction.

    In that IFTTT scenario, IFTTT sends a web request to the webhook on one of the TRIGGERcmd servers, and the TRIGGERcmd server your agent is connected to tells the agent to trigger the command.

  • S

    Can't get things to trigger

    General Discussion
    • • Nov 1, 2018, 5:44 AM • Strahan Nov 25, 2018, 10:10 PM
    4
    0
    Votes
    4
    Posts
    970
    Views

    R Nov 25, 2018, 10:10 PM

    Thanks @strahan, that is super cool. I love to hear about use cases like that.

  • S

    Voice words / parameters

    General Discussion
    • • Nov 10, 2017, 4:04 PM • Strahan Jan 26, 2018, 10:56 PM
    6
    0
    Votes
    6
    Posts
    3.6k
    Views

    R Jan 26, 2018, 10:56 PM

    @parker-reed, yes actually, I did that a while ago. Sorry I never updated this thread.

    Here's the announcement:
    https://www.triggercmd.com/forum/topic/111/now-you-can-pass-parameters-to-your-alexa-commands