I'm trying to build an interactive system which sends video to a browser accessible to all inhabitants in a home-environment. Using the Raspberry Pi Zero (headless), I followed this tutorial (https://desertbot.io/blog/how-to-stream-the-picamera) and it all works fine now.
However, since I'll be placing my system in some else's house for a week long deployment test, I'm trying to get the raspberry start sending video automatically once booted up. I pretty sure this must be possible, however I wasted the whole afternoon with failed attempts, so some help would be welcome

Basically, the Raspberry needs to execute the following commands automatically after WiFi has been initiated and I'll be set (hopefully):
Code: Select all
cd /home/pi/projects/mjpg-streamer/mjpg-streamer-experimental/
./mjpg_streamer -o "output_http.so -w ./www" -i "input_raspicam.so"
All the best,
Bas