Automatically starting python script on boot

I have a python script for processing and sending IMU data that i’d like to run automatically when the reach boots. Can someone help with how to do this?

Not having done it myself, I’d think you could call your script it at least 2 ways:

  1. with a cronjob @reboot
  2. by putting an appropriate script in /etc/rc* (example: /etc/rc.local)
1 Like

You should write a systemd service.

1 Like

Thanks for the hint.

I’ve been able to get a systemd service that automatically starts my script that reads the GPS and IMU and sends the data out over UDP. Now I can just power up the reach and start getting GPS + IMU data sent out!

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.