NOTE: This is not a plug and play repo anymore. There is an issue with MMALSharp I found while trying to run this on bookworm and .net 9. Sorry for the inconvenience.
.NET Web API for controlling a Raspberry Pi camera module.
NOTE: Rasberry Pi Zero 1 is not supported.
-
Publish PiCamera.Service:
dotnet publish -r linux-arm -p:PublishSingleFile=true --self-contained false -
Copy
Publishfolder to Rasbperry Pi. -
SSH to Rasberry Pi and go to the
Publishdirectory you just copied. -
Add required environmental variables.
export ASPNETCORE_URLS="http://*:5000;https://*:5001"export DefaultConnection="Data Source=picamera.db"export AdminAccessKey="{GUID}" -
Provide execute permissions:
chmod 777 ./picamera -
Start web service:
./picamera -
From another computer open your browser to:
http://{raspi-pi}:5000/swagger.