TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. General Discussion
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • drmoddingD

      Ubuntu 14.04.1 LTS

      • • drmodding
      4
      0
      Votes
      4
      Posts
      1.0k
      Views

      RussR

      @drmodding, thank you. Please let me know if it works or not.

    • P

      Installation Failed, Failed to extract installer

      • • Phil Davenport
      8
      0
      Votes
      8
      Posts
      3.5k
      Views

      RussR

      @phil-davenport, awesome. I'm glad that worked. Sorry I didn't think of that right away.

    • M

      New service to remotely trigger commands on your Pi

      • • MichaelSmith
      2
      0
      Votes
      2
      Posts
      679
      Views

      RussR

      @michaelsmith, what problem are you having? I updated the link on that post to point to the new Raspberry Pi agent.

      https://s3.amazonaws.com/triggercmdagents/triggercmdagent_1.0.1_all.deb

    • W

      'Use IFTTT and say, "trigger X"'

      • • wiegerduck
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      RussR

      @wiegerduck, I answered you with a video showing how to do it, but here's the high level idea:

      1 - Your voice says "Alexa, trigger calculator"
      2 - Alexa tells IFTTT to tell TRIGGERcmd to tell your computer to run calculator
      3 - Your computer runs calculator

      https://youtu.be/KO0JGYwpcDE

    • D

      Windows Agent Setup Fails

      • • dave1223
      2
      0
      Votes
      2
      Posts
      854
      Views

      RussR

      @dave1223, can you verify your Windows 10 is a 64bit version?

      If you search for "system" and open your System control panel, you should see this about half way down:

      System type: 64-bit Operating System, x64-based processor

      I ask because the normal agent doesn't work on 32bit windows.

    • RussR

      Don't buy an Amazon Dash Wand

      • • Russ
      1
      0
      Votes
      1
      Posts
      666
      Views

      No one has replied

    • S

      How to create a virtual switch for Smartthings and triggercmd?

      • • superhuynh
      2
      0
      Votes
      2
      Posts
      726
      Views

      RussR

      @superhuynh, generally, you'd want to make one triggercmd entry with parameters enabled that runs a batch file like this:

      if "%1"=="on" curl http://.....%%22A6%%20on%%22 if "%1"=="off" curl http://.....%%22A6%%20off%%22

      It takes a single parameter of ether on or off and runs the respective command. %1 gets replaced by the on or off parameter SmartThings will send if you enable parameters on that command.

      That will give you this:
      "i would want a virtual switch to be able to toggle on and off."

      But it won't give you this:
      "More importantly I would want the switch to have discrete on and off buttons."

      Those two seem to be in conflict. If you really want the discrete on and off buttons, then you could make an on command and an off command (with parameters disabled), and have two separate ST switches. By default those switches will look like they're toggling on and off when you press them. If you want the switches to always show as "off", then you could use this solution.

    • B

      Integration with ifttt

      • • bear269
      3
      0
      Votes
      3
      Posts
      1.7k
      Views

      B

      @russ awesome!!!!!!! Thumps up

    • Z

      Command location on disk for backup

      • • Zardoz Plusbeaire
      2
      0
      Votes
      2
      Posts
      630
      Views

      RussR

      @zardoz-plusbeaire, the file with your commands in it is c:\users\(your user)\.TRIGGERcmdData\commands.json .

    • R

      Multiple Accounts on Google Home

      • • Richo3192
      10
      0
      Votes
      10
      Posts
      3.2k
      Views

      M

      @russ
      I must have something wrong. Ill check again.
      thanks

    • K

      Unexpected error when trying to save my SmartApps inside the SmartThings mobile app

      • • kalto
      5
      0
      Votes
      5
      Posts
      1.4k
      Views

      RussR

      Awesome @kalto. I'm glad that was it.

    • M

      command ques

      • • mike cornelison
      12
      0
      Votes
      12
      Posts
      2.7k
      Views

      RussR

      @mike-cornelison, I finally figured it out. Please try "floor lamp" with Cortana again. I think it will work now.

    • K

      Subscription/editing trigger not working?

      • • kalto
      3
      0
      Votes
      3
      Posts
      930
      Views

      K

      Ok, good to know! Thank you!

    • C

      Would this PHP code work?

      • • ctaylor
      2
      0
      Votes
      2
      Posts
      829
      Views

      RussR

      @ctaylor, you were so close! I made it work with a couple small tweaks. Here's my code that works.

      <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.triggercmd.com/api/run/triggerSave"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, '{"computer":"DS","trigger":"calculator"}'); curl_setopt($ch, CURLOPT_POST, 1); $headers = array(); $headers[] = "Authorization: Bearer (token from instructions page)"; $headers[] = "Content-Type: application/json"; curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $result = curl_exec($ch); if (curl_errno($ch)) { echo 'Error:' . curl_error($ch); } curl_close ($ch); ?>

      You'll see that I changed this line to use single quotes around the json object.

      curl_setopt($ch, CURLOPT_POSTFIELDS, '{"computer":"DS","trigger":"calculator"}');

      And I changed this line to use application/json instead of application/x-www-form-urlencoded because you're passing a json object.

      $headers[] = "Content-Type: application/json";

      In case you're curious, this is how I tested my test.php script:

      docker run -it --rm --name test-script -v d:\appdev\php:/myscript -w /myscript php:7.0-cli php test.php

      BTW, I'm curious what your application is.

    • B

      Is it possible to use IFTTT to issue a command to multiple computers?

      • • Bryan W
      6
      0
      Votes
      6
      Posts
      2.4k
      Views

      A

      @russ 👍

    • I

      Background commands not working but service is installed

      • • IAmJustRobin
      1
      0
      Votes
      1
      Posts
      555
      Views

      No one has replied

    • M

      Customize invocation term?

      • • meyerdenney
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      RussR

      I like Xander's idea if you have Alexa. If you have a Google Home, you can setup a shortcut and say anything you want, like:

      Hey Google, foobar

      You just have to setup a shortcut called foobar for "ask TRIGGERcmd to run foo on bar" (for example).

    • M

      dual commands

      • • mike cornelison
      3
      0
      Votes
      3
      Posts
      1.2k
      Views

      RussR

      @mike-cornelison, like Xander wrote, you can use & between your commands to run multiple commands on one command line.

      But you said you're running a batch file. So couldn't you just put multiple lines in that batch file? Like so?

      start http://127.0.0.1:8086/?x10command=DEVICE~sendrf~%%27A3%%20ON%%27 start http://127.0.0.1:8086/?x10command=DEVICE~sendrf~%%27A4%%20ON%%27
    • U

      Google Home - 2 PC's

      • • username6
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      U

      @russ Thanks very much, Russ!

      Works perfectly.

      Regards.

    • ?

      Usage story (is there a direct GET API for triggering?)

      • • A Former User
      9
      0
      Votes
      9
      Posts
      2.7k
      Views

      RussR

      @Dewi-Morgan, check this out:

      https://youtu.be/1yvMMoj1Oxc

      It's not on the Slack App Directory yet, but you can start using it now.

      EDIT: It's in the Slack directory now.