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

    Posts made by Trey Chance

    • RE: Passing multi-word parameters.

      @Russ Thank you for the response! I'm using PowerShell currently and figured out a workaround based on your response. for anyone that could be useful for it was pretty easy to concatenate them and create a final input for my script to search my server. In this example i went a little overboard with 12 words total. It's currently working great with the parameter passthrough via TriggerCMD, but I have not tested it on Alexa yet.

      param ([string]$media1,$media2,$media3,$media4,$media5,$media6,$media7,$media8,$media9,$media10,$media11,$media12)
      $mediafinal=("$media1 $media2 $media3 $media4 $media5 $media6 $media7 $media8 $media9 $media10 $media11 $media12").trim()
      

      Basically I am creating a script that allows me to ask Alexa to play anything from my Emby server and it will play to my default device (Livingroom Shield). In the future I would like to differentiate the params to allow me to say "Play Media from Server with parameters <Show> on <Insert device>"

      When using Alexa skill TC is there a known way to do this all in one command? currently I have to say Launch TC or talk to TC first then I can input my command for TriggerCMD.

      I will post my script here once I finish for anyone interested!

      posted in General Discussion
      Trey ChanceT
      Trey Chance
    • Passing multi-word parameters.

      Hello i am using TriggerCMD to run a script that plays media from my server, the parameter only passes the first word of my proposed parameters.

      example: (I used Alexa to test because i cant figure out how to pass parameters with google anymore, since it is just on/off now)

      1. Launch TC
      2. run Play Media from server with Parameter The Office

      It runs and executes but the parameter is only "the"
      Is this an oversight by me or are multiword parameters not supported?

      Also, with the google assistant stuff, is there a way to pass the parameters now that they have disabled the conversational stuff?

      Thank you for your help and all you do! this is a sweet tool and I'm having a blast automating with it!

      posted in General Discussion
      Trey ChanceT
      Trey Chance