|
|
2 달 전 | |
|---|---|---|
| .. | ||
| agent | 2 달 전 | |
| scripts | 2 달 전 | |
| systemd | 2 달 전 | |
| README.md | 2 달 전 | |
| heartbeat-poc.py | 2 달 전 | |
| package.json | 2 달 전 | |
| requirements.txt | 2 달 전 | |
Agent này chạy trên thiết bị Pi4 đầu cuối để:
/boot/timelapse/agent.keyScript install chỉ chạy trên Pi/Linux systemd.
cd /opt/timelapse
git pull
# install agent service
sudo bash apps/device-agent/scripts/install-agent.sh
# theo dõi logs
journalctl -u timelapse-agent.service -f
File: /etc/timelapse/agent.env
TL_SERVER_URL=http://<server-ip>:3001
TL_DEVICE_NAME=Pi-DSLR-01
TL_SERIAL_NO=PI4-DSLR-01
TL_HEARTBEAT_INTERVAL=30
TL_CLAIM_POLL_INTERVAL=10
TL_CONFIG_DIR=/boot/timelapse
Khi service chạy lần đầu:
/boot/timelapse/agent.json — metadata (deviceUuid, deviceId)/boot/timelapse/agent.key — API key (chmod 600)