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

    legtod2

    @legtod2

    0
    Reputation
    4
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    legtod2 Unfollow Follow

    Latest posts made by legtod2

    • RE: Logging

      @legtod2 Opps minor tweak on commands.json

      {"trigger":"Open Calculator","command":"/home/pi/open_galc.sh","ground":"foreground","voice":"calculator","allowParams": "false"},
      {"trigger":"Close Calculator","command":"/home/pi/close_galc.sh","ground":"foreground","voice":"exit","allowParams": "false"},

      I guess I need to learn about a command with options

      posted in General Discussion
      L
      legtod2
    • RE: Logging

      @legtod2 Ok so here's my open and close galculator that works
      {"trigger":"Open Calculator","command":"/home/pi/open_galc.sh","ground":"foreground","voice":"open calculator","allowParams": "false"},
      {"trigger":"Close Calculator","command":"/home/pi/close_galc.sh","ground":"foreground","voice":"close calculator","allowParams": "false"},

      cat open_galc.sh
      #!/bin/bash
      su - pi -c 'export DISPLAY=:0.0; galculator'
      pi@raspberrypi:~ $ cat close_galc.sh
      #!/bin/bash
      su - pi -c 'export DISPLAY=:0.0; killall -9 galculator'

      posted in General Discussion
      L
      legtod2
    • RE: Logging

      @legtod2 That works pretty well
      #!/bin/bash
      su - pi -c 'export DISPLAY=:0.0; galculator'

      {"trigger":"Gnome Calculator","command":"/home/pi/galc.sh","ground":"foregroun
      d","voice":"calculator","allowParams": "false"},

      Now the next logical question is a close command.

      Should I have a 2nd script to perform a kill command or is there a slicker options of having a trigger command with option of open and close ?

      posted in General Discussion
      L
      legtod2
    • RE: Logging

      @russ that makes sense and easy to implement. Thanks for the advise.

      posted in General Discussion
      L
      legtod2
    • RE: Echo show cards

      @russ Correct. Simply a trigger cmd with the ability to display text or a media picture or object to the echo show. It could also be helpful like

      for run calculator
      for run close calculator or more helpful reminders

      I am creating an interface to fruitbox jukebox
      So when I want to increase volume or pause or skip songs I can add text display to echo show screen.

      posted in General Discussion
      L
      legtod2
    • Logging

      Logging on raspberry pi.

      Building a few triggercmds on my raspberry pi.
      Simple commands like shutdown and reboot work fine.
      If I want to launch foreground apps like the calculator "galculator" needs to launch a xterm or gnome app. The default user is pi and triggeragent runs as root.
      For debugging purposes of cmds how do I log and view the results.
      For example here is my calulator example.
      {"trigger":"Gnome Calculator","command":"galculator","ground":"foreground","voice":"calculator","allowParams": "false"},
      My assumption is that the command needs references to pi user and xterminal references to launch. But I cant see debug results to fix commands as they become more complex.

      posted in General Discussion
      L
      legtod2
    • RE: Echo show cards

      @russ
      I would like for the echo show screen to remind the user to give my own examples of trigger cmds

      posted in General Discussion
      L
      legtod2
    • RE: Echo show cards

      For example when I say :
      Echo open triggercmd.

      Echo show screen displays:
      Say something like run calculator on officepc

      Launched

      Can I control this display to display something else

      posted in General Discussion
      L
      legtod2
    • Echo show cards

      On echo show and google display screens can we display text and buttons?

      posted in General Discussion
      L
      legtod2
    • RE: Alexa -->TriggerCmd-->Pi-->Fruitbox Jukebox integration

      @russ Very cool suggestion. Send the equivalent to pressing a local keyboard keypress.

      posted in General Discussion
      L
      legtod2