A lightweight Go tool that monitors the vehicle state in Redis and immediately sets the vehicle to ready to drive after unlocking.
Part of the Librescoot open-source platform.
- Connects to Redis at 192.168.7.1:6379
- Monitors the
statefield in thevehiclehash for state transitions - When state changes from
stand-bytoparked, it:- Sets
readytotruein thedashboardhash - Publishes a
readymessage to thedashboardchannel
- Sets
- Lightweight and efficient for embedded systems
- Optimized for ARMv7l architecture
- Go 1.15+
- Make
makemake dist-armThis creates an optimized and stripped binary called letsago-arm.
-
Build the ARM binary:
make dist-arm
-
Copy the entire directory to the target device
-
Run the install script with root privileges:
sudo ./install.sh
-
Enable and start the service:
sudo systemctl enable letsago sudo systemctl start letsago
-
Build the ARM binary:
make dist-arm
-
Copy the binary to the target:
scp letsago-arm user@target:/usr/bin/letsago
-
Set executable permissions:
ssh user@target "chmod +x /usr/bin/letsago" -
Copy the service file:
scp letsago.service user@target:/etc/systemd/system/
-
Enable and start the service:
ssh user@target "systemctl daemon-reload && systemctl enable --now letsago"
Once installed and running, the service will automatically:
- Connect to Redis at 192.168.7.1:6379
- Monitor the vehicle state transitions
- Update dashboard when state transitions from
stand-bytoparked
systemctl status letsagojournalctl -u letsago- Main logic is in
main.go - Modify Redis connection details or behavior in the constants section
- Use
maketo build for local testing
This project is dual-licensed. The source code is available under the GNU Affero General Public License v3.0. The maintainers reserve the right to grant separate licenses for commercial distribution; please contact the maintainers to discuss commercial licensing.
