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

    • StrahanS

      Having issues with TC launching a batch

      General Discussion
      • • • Strahan
      2
      0
      Votes
      2
      Posts
      11
      Views

      RussR

      @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.

    • StrahanS

      Any idea why this batch is failing to run?

      Windows
      • • • Strahan
      2
      0
      Votes
      2
      Posts
      189
      Views

      RussR

      @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

    • StrahanS

      How do I subscribe?

      General Discussion
      • • • Strahan
      2
      0
      Votes
      2
      Posts
      255
      Views

      RussR

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

    • StrahanS

      Backup settings

      General Discussion
      • • • Strahan
      6
      0
      Votes
      6
      Posts
      1.1k
      Views

      RussR

      @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.

    • StrahanS

      Can't get things to trigger

      General Discussion
      • • • Strahan
      4
      0
      Votes
      4
      Posts
      968
      Views

      RussR

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

    • StrahanS

      Voice words / parameters

      General Discussion
      • • • Strahan
      6
      0
      Votes
      6
      Posts
      3.6k
      Views

      RussR

      @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