Automatically running enviroplus on Pi

Hi I have a Pi3 running enviroplus and would like to be able to have it running the combined.py automatically on power up, as I wants to install in a weather station. That students can look at ..

Any ideas on the codes I need is it contab -e ??

Thanks

Paul

Yep, you should be able to do with with crontab -e.

The line you need to add should look something like this, you’ll need to replace USER with the user account that you’re using on your Pi.

@reboot /home/USER/.virtualenvs/pimoroni/bin/python /home/USER/Pimoroni/enviroplus/examples/combined.py &

You may also need to amend the paths if yours are different - the first part should be the path to your virtual environment, and the second part should be the path to your example.