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

      • • eromano
      4
      0
      Votes
      4
      Posts
      163
      Views

      RussR

      @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.

    • Al S.A

      This topic is deleted!

      • • Al S.
      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

      • • Ego95
      1
      0
      Votes
      1
      Posts
      59
      Views

      No one has replied

    • boblewisB

      Trouble Executing TriggerCMD Commands on Raspberry Pi

      • • boblewis
      4
      0
      Votes
      4
      Posts
      289
      Views

      RussR

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

    • tuicemenT

      Is it possible to have more then one parameter?

      • • tuicemen
      6
      0
      Votes
      6
      Posts
      826
      Views

      boblewisB

      @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

      • • eromano
      1
      0
      Votes
      1
      Posts
      153
      Views

      No one has replied

    • E

      TriggerCMD on openMPTCP a fork of openwrt project

      • • eromano
      10
      0
      Votes
      10
      Posts
      607
      Views

      E

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

    • RussR

      Display a Window with custom text

      • • Russ
      1
      0
      Votes
      1
      Posts
      140
      Views

      No one has replied

    • Antonio Francisco S.SantosA

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

      • • Antonio Francisco S.Santos
      2
      0
      Votes
      2
      Posts
      212
      Views

      RussR

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

    • D

      Running a python script on a raspberry pi

      • • daproduct
      23
      0
      Votes
      23
      Posts
      2.7k
      Views

      D

      @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

    • Antonio Francisco S.SantosA

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

      • • Antonio Francisco S.Santos
      80
      0
      Votes
      80
      Posts
      5.1k
      Views

      Antonio Francisco S.SantosA

      @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

      • • hehaha
      4
      0
      Votes
      4
      Posts
      242
      Views

      RussR

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

    • RussR

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

      orange pi raspberry pi panel • • Russ
      1
      0
      Votes
      1
      Posts
      582
      Views

      No one has replied

    • G

      Controlling Pi-Hole on the Raspberry Pi remotely through Alexa

      • • Georgi_Sharkov
      6
      0
      Votes
      6
      Posts
      991
      Views

      G

      @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

      • • Matúš Maron
      4
      0
      Votes
      4
      Posts
      313
      Views

      RussR

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

    • tuicemenT

      HomeGenie X10 control with single bash script

      raspberry pi google assistan alexa homegenie x10 • • tuicemen
      15
      0
      Votes
      15
      Posts
      1.4k
      Views

      tuicemenT

      @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

      • • thibou.justin
      7
      0
      Votes
      7
      Posts
      532
      Views

      RussR

      @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.

    • tuicemenT

      Alexa Google Panic Alarm

      google assistan alexa x10 homegenie raspberry pi • • tuicemen
      5
      0
      Votes
      5
      Posts
      556
      Views

      tuicemenT

      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 • • Wholepunch
      8
      1
      Votes
      8
      Posts
      4.0k
      Views

      W

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

    • tuicemenT

      Run a HomeGenie macro(script, scene)

      homegenie alexa google assistan raspberry pi • • tuicemen
      1
      0
      Votes
      1
      Posts
      360
      Views

      No one has replied