• TriggerCMD on Openwrt

    4
    0 Votes
    4 Posts
    1k 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.
  • This topic is deleted!

    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • 0 Votes
    1 Posts
    523 Views
    No one has replied
  • Trouble Executing TriggerCMD Commands on Raspberry Pi

    4
    0 Votes
    4 Posts
    2k Views
    RussR
    @boblewis, that all sounds good. Do you have any remaining problems or are you all set now?
  • Is it possible to have more then one parameter?

    6
    0 Votes
    6 Posts
    2k Views
    ?
    @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
  • startup service for openwrt

    1
    0 Votes
    1 Posts
    846 Views
    No one has replied
  • TriggerCMD on openMPTCP a fork of openwrt project

    10
    0 Votes
    10 Posts
    3k Views
    E
    @eromano resolved by a new install from zero. Maybe the problem was that at the first execute was already present another machine
  • Display a Window with custom text

    1
    0 Votes
    1 Posts
    738 Views
    No one has replied
  • Script.sh não executa a função completa

    2
    0 Votes
    2 Posts
    991 Views
    RussR
    @Antonio-Francisco-S-Santos , I'd need to see the two scripts.
  • Running a python script on a raspberry pi

    23
    0 Votes
    23 Posts
    10k 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
  • 0 Votes
    80 Posts
    31k 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
  • paypal "hosted button ID" integration with triggercmd

    4
    0 Votes
    4 Posts
    2k Views
    RussR
    @hehaha, good. I'm glad you got it working. And no, no Venmo, only PayPal.
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Controlling Pi-Hole on the Raspberry Pi remotely through Alexa

    6
    1
    0 Votes
    6 Posts
    2k 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
  • Command run but nothing happens

    4
    2
    0 Votes
    4 Posts
    1k Views
    RussR
    @matúš-maron, no problem. I'm glad you figured it out.
  • 0 Votes
    15 Posts
    5k 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.
  • running trigger on raspberry pi and trigger script on another pi

    7
    0 Votes
    7 Posts
    2k 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.
  • Alexa Google Panic Alarm

    google assistan alexa x10 homegenie raspberry pi
    5
    0 Votes
    5 Posts
    2k 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
  • 433Mhz remote gate opener with Raspberry Pi

    433mhz raspberry pi
    8
    1 Votes
    8 Posts
    8k Views
    W
    @russ Interesting idea... make auto billing possible for registered customers etc...
  • 0 Votes
    1 Posts
    1k Views
    No one has replied