TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Raspberry Pi OS (64 bit)

    General Discussion
    2
    6
    136
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Călin Cătălin AlexandruC
      Călin Cătălin Alexandru
      last edited by

      i can't make it work on the Raspberry Pi OS (64 bit)
      i have modified the file /root/.TRIGGERcmdData/commands.json
      but is still showing the default commands on the site.

      [
      {"trigger":"Reboot","command":"shutdown -r","ground":"background","voice":"reboot","allowParams": "false"},
      {"trigger":"Clear ram","command":"/home/pi/ram.sh","ground":"background","voice":"Clear ram","allowParams": "false"},
      {"trigger":"Computer on","command":"/home/pi/wol.sh","ground":"background","voice":"Computer on","allowParams": "false"},
      {"trigger":"apt update","command":"apt-get -y update","ground":"background","voice":"update","allowParams": "false"}
      {"trigger":"Pi temperature","command":"python3 /home/pi/temperature.py","ground":"background","voice":"system temperature","voiceReply":"The pi temperature is {{result}} degrees","allowParams": "false"}
      ]
      and on site it shows

      Gnome Editor
      Reboot
      yum update
      apt update

      and i dot kow way evry time i refresh the page on site the token is a new one.
      in: Your Computers it shows up like is connected.

      Nu

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @Călin Cătălin Alexandru
        last edited by Russ

        @Călin-Cătălin-Alexandru, please paste the output of this command:

        systemctl status triggercmdagent
        

        The problem might be either that you haven't installed the background agent, or you ran the agent as your user instead of as root.

        I recommend you try the steps on this page again, and make sure you run this command first: sudo su -

        If you're not subscribed, you may need to delete your computer on the website before you re-run these steps because if you ran the agent as your non-root user, it would have created a .TRIGGERcmdData directory in your users's home directory, and created a computer associated with that data folder.

        Russell VanderMey

        1 Reply Last reply Reply Quote 0
        • Călin Cătălin AlexandruC
          Călin Cătălin Alexandru
          last edited by

          root@z3r0:~# systemctl status triggercmdagent
          ● triggercmdagent.service - TRIGGERcmd Agent
          Loaded: loaded (/etc/systemd/system/triggercmdagent.service; enabled; vendor preset: enabled)
          Active: active (running) since Tue 2020-07-28 18:39:58 EEST; 671ms ago
          Main PID: 625 (node)
          Tasks: 6 (limit: 4539)
          CGroup: /system.slice/triggercmdagent.service
          └─625 node /usr/share/triggercmdagent/app/src/daemon.js --run /root/.TRIGGERcmdData

          Jul 28 18:39:58 z3r0.go.ro systemd[1]: Started TRIGGERcmd Agent.

          Nu

          1 Reply Last reply Reply Quote 0
          • Călin Cătălin AlexandruC
            Călin Cătălin Alexandru
            last edited by

            https://imgur.com/a/pjRUKOO

            Nu

            1 Reply Last reply Reply Quote 0
            • Călin Cătălin AlexandruC
              Călin Cătălin Alexandru
              last edited by

              looks like the problem was the last line in commands.json

              i have delete: {"trigger":"Pi temperature","command":"python3 /home/pi/temperature.py","ground":"background","voice":"system temperature","voiceReply":"The pi temperature is {{result}} degrees","allowParams": "false"}
              and now it works 🙂

              Nu

              RussR 1 Reply Last reply Reply Quote 0
              • RussR
                Russ @Călin Cătălin Alexandru
                last edited by

                Awsome, @Călin-Cătălin-Alexandru I'm glad you figured it out.

                Russell VanderMey

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post