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

    Posts made by Strahan

    • Any idea why this batch is failing to run?

      Hi. Ever since IFTTT and Alexa stopped working, I started making a bunch of TriggerCMD triggers to fill in the void. I made a website to log health data (calories eaten, exercise done, etc). So I made a batch file:

      @echo off
      echo %1 %2 %3 %4 %5 >>log.txt
      if "%1"=="med" goto :medication
      if "%1"=="bedtime" goto :bed
      c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=food&food=%1"
      goto :eof
      
      :medication
      if "%2"=="fi8" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=insulin&type=fast&amt=8"&goto :eof
      if "%2"=="fi10" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=insulin&type=fast&amt=10"&goto :eof
      if "%2"=="fi12" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=insulin&type=fast&amt=12"&goto :eof
      if "%2"=="fi14" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=insulin&type=fast&amt=14"&goto :eof
      if "%2"=="fi18" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=insulin&type=fast&amt=18"&goto :eof
      if "%2"=="li50" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=insulin&type=long&amt=50"&goto :eof
      if "%2"=="night" c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=nightmeds"&goto :eof
      
      c:\misc\wget.exe "https://mysite.com/index.php?m=api&sm=meds&mid=%2&units=%3"
      goto :eof
      
      :bed
      echo %2 >>log.txt
      

      I have a bunch of commands. Here is a sample:

      Trigger: diet pepsi
      Command: c:\misc\loghealth.bat dpepsi12
      Off command: (greyed out)
      Ground: foreground
      Voice: diet pepsi
      Voice reply: (empty)
      Allow parameters: false
      

      This works great. I say "Alexa, turn on diet pepsi" then check my health site and it has logged a can of Diet Pepsi. I also track my bedtime/getting up times so if I feel drug out I can look at my health site and be like well yea, I slept 5 hours 12 minutes no doubt heh. I wanted to leverage the on/off ability, figuring I'd say "Alexa turn on bedtime" to mark myself asleep and turn off to mark awake:

      Trigger: bedtime
      Command: c:\misc\loghealth.bat bedtime on
      Off command: c:\misc\loghealth.bat bedtime off
      Ground: foreground
      Voice: bedtime
      Voice reply: (empty)
      Allow parameters: true
      

      However, neither on nor off works. I added the echo to log.txt lines and I never even get a log.txt, so it's not firing the batch at all.

      Any idea why? Thanks!

      posted in Windows
      StrahanS
      Strahan
    • How do I subscribe?

      Hi. I used TriggerCMD a couple years ago but my need for the functionality was abated so I stopped using it. I now have need again, so I installed the agent. Plugged in my token it said I need to resubscribe. So I went to the site's control panel and I can't find anywhere that one does this.

      Can you point me in the right direction? Thanks!

      posted in General Discussion
      StrahanS
      Strahan
    • RE: Backup settings

      Thanks. Only outbound? That's curious. So when I use my IFTTT webhook trigger with Alexa to turn my bedroom fan on, it doesn't send a packet to my agent from your system to let it know to activate?

      posted in General Discussion
      StrahanS
      Strahan
    • RE: Backup settings

      Thanks!

      PS: The reason I have to rebuild the machine is it was compromised. I implemented IP filters on my firewall so only my cellphone and family systems can access my server. The communications from your service; is there an IP range I can use to whitelist it?

      posted in General Discussion
      StrahanS
      Strahan
    • Backup settings

      Hi. I need to reformat the machine I have TRIGGERcmd installed in. Where does it save its settings so I can back it up? I'd rather not have to recreate all the triggers. Thanks.

      posted in General Discussion
      StrahanS
      Strahan
    • RE: Can't get things to trigger

      This is a bit late, lol, but thanks. Got that all working now so I can be in bed and say "alexa, trigger windy 15" and have my fan turn on for fifteen minutes only. So nice 🙂 Used to be I could turn it on with Alexa but it would run until I turn it off, so I'd fall asleep and wake up frozen hehe.

      Thanks!

      posted in General Discussion
      StrahanS
      Strahan
    • Can't get things to trigger

      Hi. I want to be able to lie in bed and say "alexa, trigger fan 15" and have it run a batch that will turn the fan in the bedroom off in fifteen minutes. But just to start simple, I made a batch file that just plays a WAV file so I can test the connectivity. Installed TriggerCMD agent on my pc named "Zaranth". As that's a mouthful and i was afraid Alexa may interpret the weird word oddly, I set voice trigger for that PC to game as it's my gaming rig. I created a command "noisy" that runs \misc\triggercmd\noise.bat. If I hit the green "trigger" button for that command when viewing the list of triggers, it works perfectly.

      So I said "alexa, ask trigger c m d to run noisy on game" (figured I'd make sure it worked native before throwing IFTTT into the mix). No dice. It won't see it, said it cannot find that command. I can't figure out what's wrong. Any idea?

      https://www.youtube.com/watch?v=rgMJyKXx1zQ

      posted in General Discussion
      StrahanS
      Strahan
    • RE: Voice words / parameters

      Thanks. The generic usage method looks fine. I wouldn't think that a movie or whatever specific parameter would really be necessary; the people creating their commands will know what kind of input to expect and will handle it accordingly.

      I guess for now I'll just make "codewords" that do specific functions, heh. That'll work for now. Thanks again!

      posted in General Discussion
      StrahanS
      Strahan
    • Voice words / parameters

      Hi! I just bought an Echo tonight, and the deciding factor was that I could control my PC when I Googled and saw your program. I've been playing with it, it's cool. However, I have one snag. I wanted to be able to launch videos from it, so I created a trigger "Die Hard", command was the path and filename of the video, voice was "die hard". I pronounced it as clearly as I could but it keeps saying "cannot find command die". Does it not support multiple word voice commands? I changed it to "die" and it worked.

      Also I was trying to find documentation on parameters and failing. Can you direct me? I'm wondering if I can create a command that is generic then pass parameters that I assume I say after the trigger word to launch the appropriate title. I just can't find any docs on how parameters work.

      I setup a trigger "video", with command "p:\utils\scripts\triggercmd.php video", voice "video" allow parameters true. My PHP script looks for parameter "diehard". I said "alexa, ask trigger c m d to run video diehard" and it said "could not find a command with voice word video hard on (pcname)". Am I misinterpreting how to use parameters?

      posted in General Discussion
      StrahanS
      Strahan