• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
TRIGGERcmd
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  1. Home
  2. Example Commands
  3. Raspberry Pi
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • E

    TriggerCMD on Openwrt

    • Jan 30, 2025, 10:30 PM • eromano Feb 1, 2025, 1:44 AM
    4
    0
    Votes
    4
    Posts
    208
    Views

    R Feb 1, 2025, 1:44 AM

    @eromano, I tried to install OpenWRT on a VMWare VM for a while. I got version 15 installed using an OVA but I couldn't get openssl working, so I couldn't install nodejs etc on it.

    Anyway, I noticed your error output shows it's trying to access a URI that starts with /engine.io . That's not valid URI.

    I wonder if you've upgraded socket.io-client beyond the version specified in ubuntupackage.json because this article says the latest version 'socket.io-client@4.X.X uses /engine.io instead of the valid /socket.io URI.

  • A

    This topic is deleted!

    • Jan 12, 2025, 11:21 AM • Al S. Jan 12, 2025, 11:21 AM
    1
    0
    Votes
    1
    Posts
    2
    Views

    No one has replied

  • E

    How can I do it with Pc I used the code wakeonlan with my windows pc but doesnt work

    • Nov 23, 2024, 10:47 PM • Ego95 Nov 23, 2024, 10:47 PM
    1
    0
    Votes
    1
    Posts
    91
    Views

    No one has replied

  • B

    Trouble Executing TriggerCMD Commands on Raspberry Pi

    • May 23, 2024, 12:01 PM • boblewis May 28, 2024, 8:24 PM
    4
    0
    Votes
    4
    Posts
    358
    Views

    R May 28, 2024, 8:24 PM

    @boblewis, that all sounds good. Do you have any remaining problems or are you all set now?

  • T

    Is it possible to have more then one parameter?

    • Jan 6, 2022, 9:25 PM • tuicemen May 23, 2024, 11:49 AM
    6
    0
    Votes
    6
    Posts
    942
    Views

    B May 23, 2024, 11:49 AM

    @tuicemen

    You can add house code (A-P) and unit codes (1-16) as parameters in your bash scripts.

    #!/bin/bash
    house_code=$1
    unit_code=$2
    action=$3
    curl "http://url:port/api/HomeAutomation.X10/${house_code}${unit_code}/Control.${action}"
    Run it like this:
    ./control_x10.sh A 4 On

    This way, you only need one script.

    Thank you
    boblewis

  • E

    startup service for openwrt

    • Mar 2, 2024, 10:48 PM • eromano Mar 2, 2024, 10:48 PM
    1
    0
    Votes
    1
    Posts
    201
    Views

    No one has replied

  • E

    TriggerCMD on openMPTCP a fork of openwrt project

    • Mar 1, 2024, 11:19 PM • eromano Mar 2, 2024, 8:54 PM
    10
    0
    Votes
    10
    Posts
    786
    Views

    E Mar 2, 2024, 8:54 PM

    @eromano resolved by a new install from zero.
    Maybe the problem was that at the first execute was already present another machine

  • R

    Display a Window with custom text

    • Sep 30, 2023, 9:16 PM • Russ Sep 30, 2023, 9:16 PM
    1
    0
    Votes
    1
    Posts
    168
    Views

    No one has replied

  • A

    Script.sh não executa a função completa

    • Jun 25, 2023, 9:05 PM • Antonio Francisco S.Santos Jun 26, 2023, 1:27 AM
    2
    0
    Votes
    2
    Posts
    245
    Views

    R Jun 26, 2023, 1:27 AM

    @Antonio-Francisco-S-Santos , I'd need to see the two scripts.

  • D

    Running a python script on a raspberry pi

    • Oct 1, 2021, 12:45 AM • daproduct Jun 24, 2023, 4:25 AM
    23
    0
    Votes
    23
    Posts
    3.6k
    Views

    D Jun 24, 2023, 4:25 AM

    @Russ
    Thank you Russ for looking into it.

    With the startup, I was referring to the RPI starting / booting up from being turned off. I noticed that the issue only happens from the RPI starting up and on the first instance a command is run. The next time a command is run, the command executes without issue. The main problem is the xdotool command not being executed on this first instance. However, the page is loaded.

    Also, I do have TriggerCMD installed as a background agent using that command and I do have xhost+ addeed to the end of the /etc/profile

  • A

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

    • Jan 22, 2023, 1:14 PM • Antonio Francisco S.Santos Jun 6, 2023, 11:48 PM
    80
    0
    Votes
    80
    Posts
    6.6k
    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

  • H

    paypal "hosted button ID" integration with triggercmd

    • Mar 14, 2023, 8:47 PM • hehaha Mar 15, 2023, 12:34 PM
    4
    0
    Votes
    4
    Posts
    294
    Views

    R Mar 15, 2023, 12:34 PM

    @hehaha, good. I'm glad you got it working. And no, no Venmo, only PayPal.

  • R

    Orange Pi Zero 2 image with TRIGGERcmd agent pre-installed and programmed for IR remote control

    orange pi raspberry pi panel • Oct 29, 2022, 11:29 PM • Russ Oct 29, 2022, 11:29 PM
    1
    0
    Votes
    1
    Posts
    656
    Views

    No one has replied

  • G

    Controlling Pi-Hole on the Raspberry Pi remotely through Alexa

    • Apr 16, 2022, 9:33 PM • Georgi_Sharkov May 29, 2022, 12:44 PM
    6
    0
    Votes
    6
    Posts
    1.1k
    Views

    G May 29, 2022, 12:44 PM

    @russ I added the password to pi-hole and generated the token from web API. New URL that appeared with that token has been added to the TriggerCMD. However, this still doesn't resolve the problem, I am receiving the same message with empty token. Can anyone help with the issue? Where to dig further? Thanks

  • Matúš MaronM

    Command run but nothing happens

    • May 8, 2022, 12:04 PM • Matúš Maron May 8, 2022, 6:44 PM
    4
    0
    Votes
    4
    Posts
    391
    Views

    R May 8, 2022, 6:44 PM

    @matúš-maron, no problem. I'm glad you figured it out.

  • T

    HomeGenie X10 control with single bash script

    raspberry pi google assistan alexa homegenie x10 • Jan 7, 2022, 6:59 PM • tuicemen Feb 6, 2022, 8:49 PM
    15
    0
    Votes
    15
    Posts
    1.6k
    Views

    T Feb 6, 2022, 8:49 PM

    @russ thanks, I removed the deviceType from my json file and had Alexa rediscover and they do still dim. I edited my previous post.
    It should be noted that using dim turns the device to that value. So if you turn a light on (100%) then say dim 20% it doesn't set the light level to 80 but instead sets the light level to 20.
    At least that's the way it works for HG.

  • thibou.justinT

    running trigger on raspberry pi and trigger script on another pi

    • Jan 30, 2022, 7:34 PM • thibou.justin Jan 31, 2022, 3:08 AM
    7
    0
    Votes
    7
    Posts
    588
    Views

    R Jan 31, 2022, 3:08 AM

    @thibou-justin, yea the first time you ssh into a remote box, it will ask prompt you to accept the server's fingerprint. If you hadn't done that first, that might be why the command wasn't working.

    You definately do need root's local public key (id_rsa.pub) in the remote pi's authorized_keys file though. You could put it in root's or pi's authorized_keys file depending on which user you want to be able to login as on the remote pi.

  • T

    Alexa Google Panic Alarm

    google assistan alexa x10 homegenie raspberry pi • Jan 14, 2022, 6:28 PM • tuicemen Jan 23, 2022, 3:15 PM
    5
    0
    Votes
    5
    Posts
    601
    Views

    T Jan 23, 2022, 3:15 PM

    Yesterday I did a clean up of my HomeGenie disabling things I thought I no longer needed. After this I tested my Panic Alarm and discovered there were a few things required that I had left out. These may have been set by default with the initial install of HomeGenie.

    Besides the Demo-Toggle Door having to be enabled the Virtual Modules Demo program must also be enabled. As well the Automation.Demo 2 "DoorSensor" need to have the options to "Use as security sensor" and "Also trigger when armed Home" checked. The Automation.Demo 2 "DoorSensor" has to be in the closed condition prior to arming the security widget or you will need to send 2 panic calls
  • W

    433Mhz remote gate opener with Raspberry Pi

    433mhz raspberry pi • Sep 17, 2021, 12:41 PM • Wholepunch Jan 20, 2022, 10:06 AM
    8
    1
    Votes
    8
    Posts
    4.3k
    Views

    W Jan 20, 2022, 10:06 AM

    @russ Interesting idea... make auto billing possible for registered customers etc...

  • T

    Run a HomeGenie macro(script, scene)

    homegenie alexa google assistan raspberry pi • Jan 16, 2022, 2:46 PM • tuicemen Jan 16, 2022, 2:46 PM
    1
    0
    Votes
    1
    Posts
    395
    Views

    No one has replied