This package works on all Raspberry Pi models. It is a headless (no GUI) agent.
Run these commands in a terminal or over SSH:
sudo apt-get -y update
sudo apt-get -y upgrade
wget https://agents.triggercmd.com/triggercmdagent_1.0.1_all.deb
sudo apt install ./triggercmdagent_1.0.1_all.debThe agent requires Node.js 16 or newer. Install it if it's not already on your Pi:
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install nodejs -yRun the agent in console mode:
node /usr/lib/triggercmdagent/resources/app/src/agent.js --console- Log into triggercmd.com.
- Copy your token from the Instructions page.
- Paste it when prompted in the terminal.
Stop the console agent with CTRL-C, then install the daemon:
sudo sh /usr/lib/triggercmdagent/resources/app/src/installdaemon.shCheck if the service is running:
systemctl status triggercmdagentRemove the background service:
sudo sh /usr/lib/triggercmdagent/resources/app/src/removedaemon.sh- Log into triggercmd.com.
- Click View Triggers — you should see your Raspberry Pi listed with some built-in commands.
- Click Trigger next to any command to test it.