• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. Popular
Log in to post
  • All Time
  • Day
  • Week
  • Month
  • All Topics
  • New Topics
  • Watched Topics
  • Unreplied Topics
  • All categories
  • A

    Tentando Executar um Script python no terminal LX com o TriggerCMD mas não estou conseguindo

    Raspberry Pi
    • • Jan 22, 2023, 1:14 PM • Antonio Francisco S.Santos Jun 6, 2023, 11:48 PM
    80
    0
    Votes
    80
    Posts
    8.3k
    Views

    A Jun 6, 2023, 11:48 PM

    @Antonio-Francisco-S-Santos Desculpe, O Código que me refiro é esse aqui:

    #!/usr/bin/python3

    coding=utf8

    import sys
    import time
    import math
    import hiwonder.Mpu6050 as Mpu6050
    import hiwonder.ActionGroupControl as AGC
    import hiwonder.Board as Board

    mpu = Mpu6050.mpu6050(0x68)#启动Mpu6050
    mpu.set_gyro_range(mpu.GYRO_RANGE_2000DEG)#设置Mpu6050的陀螺仪的工作范围
    mpu.set_accel_range(mpu.ACCEL_RANGE_2G)#设置Mpu6050的加速度计的工作范围

    count1 = 0
    count2 = 0

    def standup():
    global count1, count2

    try: accel_date = mpu.get_accel_data(g=True) #获取传感器值 angle_y = int(math.degrees(math.atan2(accel_date['y'], accel_date['z']))) #将获得的数据转化为角度值 if abs(angle_y) > 105: #y轴角度大于160,count1加1,否则清零 count1 += 1 else: count1 = 0 if abs(angle_y) < 85: #y轴角度小于10,count2加1,否则清零 count2 += 1 else: count2 = 0 time.sleep(0.1) if count1 >= 1: #往前倒了一定时间后起来 count1 = 0 print("equilibrio_1!")#打印执行的动作名 AGC.runActionGroup('equilibrio_1')#执行动作 Board.setPWMServoPulse(1, 1300, 700) Board.setPWMServoPulse(2, 1500, 700) time.sleep(0.8) AGC.runActionGroup('stand') elif count2 >= 1: #往后倒了一定时间后起来 count2 = 0 print("equilibrio_2!")#打印执行的动作名 AGC.runActionGroup('equilibrio_2')#执行动作 Board.setPWMServoPulse(1, 1500, 700) Board.setPWMServoPulse(2, 1500, 700) time.sleep(0.8) AGC.runActionGroup('stand') except BaseException as e: print(e)

    if name == 'main':
    print("Fall_and_Stand Init")
    print("Fall_and_Stand Start")
    while True : #循环检测机器人的状态
    standup()
    key = time.sleep(0.1)
    if key == 27:
    break

  • ?

    TRIGGERcmd not starting at boot

    General Discussion
    • • May 22, 2020, 2:16 PM • A Former User Jun 16, 2025, 4:59 PM
    50
    1
    Votes
    50
    Posts
    5.4k
    Views

    F Jun 16, 2025, 4:59 PM

    @Russ yes, when I run manualy it start.

  • R

    New SmartThings integration (2023)

    Announcements
    • smartthings • Jan 14, 2023, 12:59 AM • Russ Jun 13, 2025, 7:26 AM
    45
    0
    Votes
    45
    Posts
    8.3k
    Views

    C Jun 13, 2025, 7:26 AM

    @Cristian-Dindinelli said in New SmartThings integration (2023):

    hi, i just changed my pc and i messed up everything so i deleted triggercmd from smartthing, but now i can't install it anymore. This link https://developer.smartthings.com/workspace/projects/new won't make me create a new project but send me to an other page.

    After some extra step, I could connect to smartthing, but only devices with "voice" command are shared, any advice?

  • R

    Raspberry Pi setup

    Raspberry Pi
    • raspberry pi • Apr 6, 2017, 12:32 AM • Russ Nov 26, 2022, 6:19 PM
    40
    0
    Votes
    40
    Posts
    20.0k
    Views

    J Nov 26, 2022, 6:19 PM

    That's brilliant, thank you for the information.

  • R

    Press the Down Arrow key (or any other key)

    Windows
    • • Aug 9, 2017, 8:55 PM • Russ Aug 1, 2022, 12:40 PM
    40
    1
    Votes
    40
    Posts
    15.7k
    Views

    A Aug 1, 2022, 12:40 PM

    @marcos-ibarra
    I'm not into AU3 that much (while knowing AHK better), what about triggering OBS's Control(s) directly, instead of Send(ing) a key in a less reliable way?

    https://www.autoitscript.com/autoit3/docs/functions/ControlCommand.htm

    That way the window wouldn't even have to be active, only existing!

  • D

    Open Specific Netflix Movie with Alexa

    Windows
    • • Dec 18, 2017, 5:11 AM • dlaugh14 Oct 22, 2021, 10:08 PM
    40
    0
    Votes
    40
    Posts
    11.1k
    Views

    R Oct 22, 2021, 10:08 PM

    @Nico-Ramirez, Google Translate translated what you said to this:
    Question, I use python, when I make sure that the argument is empty, could you help me with what serious or problem, please

    I'm not sure what the problem is. Please clarify.

  • ?

    Google home and TriggerCMD stop working when Google home is set to French

    General Discussion
    • • Jan 13, 2018, 9:05 PM • A Former User Mar 13, 2020, 3:07 PM
    39
    0
    Votes
    39
    Posts
    14.4k
    Views

    R Mar 13, 2020, 3:07 PM

    @buaamm, so far I've added Japanese support for TRIGGERcmd Smart Home - both Alexa and Google Assistant.

    Would you mind testing? Please tell me if I got anything wrong.

  • R

    SmartThings integration - flip a virtual switch to run a command

    Instructions
    • • May 21, 2017, 1:48 AM • Russ Jan 29, 2023, 6:11 AM
    38
    0
    Votes
    38
    Posts
    20.1k
    Views

    JTJ Jan 29, 2023, 6:11 AM

    @Russ thanks for coming up with a solution so quickly. I followed your instructions and I am up and running again! 👍

  • B

    Alexa doesn't find the commands

    General Discussion
    • • Aug 29, 2020, 10:06 PM • buzz Apr 28, 2023, 10:03 PM
    36
    0
    Votes
    36
    Posts
    8.3k
    Views

    R Apr 28, 2023, 10:03 PM

    @Eduardo-Henrique, I tried all of those characters and I could not get it to break.

    So maybe that was not the problem. Can you send me the computer name you were using when it wasn't working?

  • Matt PackwoodM

    Freezing in Monterey

    Mac
    • • Nov 4, 2021, 10:56 PM • Matt Packwood Feb 23, 2022, 3:23 PM
    35
    0
    Votes
    35
    Posts
    4.9k
    Views

    Matt PackwoodM Feb 23, 2022, 3:23 PM

    @russ I saw that, many thanks!

  • R

    Autohotkey script for Play, Pause, Volume Up/Down, Next/Previous

    Windows
    • • May 15, 2017, 9:26 PM • Russ Oct 15, 2021, 8:43 PM
    34
    2
    Votes
    34
    Posts
    25.7k
    Views

    R Oct 15, 2021, 8:43 PM

    @William-Santiago-Ortiz-Trejos, for some reason your files with a .ahk extension aren't associated with AutoHotkey. That's supposed to happen when you install it, but maybe an antivirus program blocked it?

    To fix it you could try running the batch file in this article from your C:\Program Files\AutoHotkey folder:
    https://www.autohotkey.com/board/topic/13627-no-ahk-file-association/

  • J

    Linux VM - TriggerCMD shows messages like it's working, but commands don't actually execute

    General Discussion
    • • May 20, 2020, 3:51 AM • Joe May 30, 2020, 12:04 AM
    33
    0
    Votes
    33
    Posts
    3.2k
    Views

    R May 30, 2020, 12:04 AM

    @Joe,

    1 - Only Foreground Triggers work in a user's regular account - because the background service only runs as root and uses /root/.TRIGGERcmdData.

    2 - Root can support both Foreground and Background Triggers - because you can install the background service (see #1), and because you can login as root and run the agent in foreground mode.

    3 - But running Triggers as Root will mask/override all the Triggers in your regular account - I wouldn't say mask/override, it's just separate as you covered in #4. Running the agent as root will create another separate computer entry in your account associated with /root/.TRIGGERcmdData. That computer will be named the same initially, but you could rename it.

    4 - The exception to (3) is if you can instantiate two "Computers" -- one pointing to Root for the "Background", and a separate "Computer" pointing to your normal Linux account to support the "Foreground" - correct, although as you pointed out in #2, you could also run the foreground agent as root.

    You create a separate computer just by running the agent as the other user. If the ~/.TRIGGERcmdData directory doesn't exist, the agent will prompt you for a token, create a computer record in your account, and store the ID for that computer in the computerid.cfg file.

    Different Linux accounts could setup different computer records, or you could give everyone sudo access to be able to edit /root/.TRIGGERcmdData/commands.json to run background command via the background agent.

    The agent stores the .TRIGGERcmdData directory in the home folder of the user running the agent. The files in that directory are the key point of connection to the mother ship.

    Good questions @Joe.

  • Steve PorterS

    Command format on Raspi

    Raspberry Pi
    • • Jan 3, 2022, 10:29 PM • Steve Porter Jan 31, 2022, 11:20 AM
    32
    0
    Votes
    32
    Posts
    5.4k
    Views

    tuicemenT Jan 31, 2022, 11:20 AM

    @steve-porter yep that will mess things up. I remember reading another post about that so that isn't something that you alone have experienced. I found a couple times the file didn't update for me for different errors in command lines.
    I've gotten into the habit of double checking if it saves.

  • Frank MalczewskiF

    Customer Support? TRIGGERcmdAgent keeps stopping

    General Discussion
    • • Apr 27, 2023, 11:28 PM • Frank Malczewski Oct 27, 2023, 10:21 PM
    30
    0
    Votes
    30
    Posts
    2.7k
    Views

    R Oct 27, 2023, 10:21 PM

    @Frank-Malczewski, thanks for letting me know. Sorry that's necessary but I'm glad it's working for you. I've seen those extra tray icons before - the icon doesn't get removed when you kill the agent without using the Quit function.

  • F

    No puedo conectar a triggercmd desde google homa

    General Discussion
    • • Dec 3, 2018, 1:20 PM • Fernando Mateos Nov 25, 2020, 11:58 PM
    29
    0
    Votes
    29
    Posts
    8.0k
    Views

    Roberto OteroR Nov 25, 2020, 11:58 PM

    @Russ Thank u Ross.

  • R

    How to use Off Command

    Instructions
    • • Aug 25, 2020, 12:35 AM • Russ Mar 6, 2024, 2:26 AM
    28
    0
    Votes
    28
    Posts
    51.8k
    Views

    R Mar 6, 2024, 2:26 AM

    @Xander, there's no official x86 TRIGGERcmd agent version. If you updated agent.js, you've got the latest functionality.

  • Luiz Henrique Dela GiustinaL

    Problem: Run Call Of Duty Warzone

    Windows
    • • Apr 11, 2021, 12:15 AM • Luiz Henrique Dela Giustina Jul 10, 2024, 5:00 PM
    28
    0
    Votes
    28
    Posts
    4.0k
    Views

    Marcos BarquetM Jul 10, 2024, 5:00 PM

    @Arthur-Oscar could you share the files again, thanks!

  • N

    ahcmd.exe problem

    General Discussion
    • • Apr 23, 2022, 10:42 PM • newstuffoldstuff May 1, 2022, 6:02 PM
    28
    0
    Votes
    28
    Posts
    5.1k
    Views

    R May 1, 2022, 6:02 PM

    @newstuffoldstuff, I see. If you want to avoid reducing your User Access Control setting, you could try installing the background service and running it as a background command. It will run as Local System.

  • Tiago MártiresT

    Boot on Arch

    General Discussion
    • • Feb 25, 2020, 1:53 PM • Tiago Mártires Oct 6, 2021, 11:46 AM
    27
    0
    Votes
    27
    Posts
    4.0k
    Views

    Gustavo SoaresG Oct 6, 2021, 11:46 AM

    @Russ, very good. I think applying a decode('utf-8') should solve this problem. I really hadn't tried using special characters yet.

  • R

    How to use IFTTT with TRIGGERcmd

    Instructions
    • • May 28, 2017, 4:10 AM • Russ Oct 16, 2019, 11:39 PM
    25
    0
    Votes
    25
    Posts
    25.5k
    Views

    R Oct 16, 2019, 11:39 PM

    @Mittal-Makwana, nice, what command does that?