Skip to content

.NET Web API for controlling a Raspberry PI camera module.

License

Notifications You must be signed in to change notification settings

lyellick/PICamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PICamera

.NET Web API for controlling a Raspberry Pi camera module.

NOTE: Rasberry Pi Zero 1 is not supported.

  1. Publish PiCamera.Service:

    dotnet publish -r linux-arm -p:PublishSingleFile=true --self-contained false

  2. Copy Publish folder to Rasbperry Pi.

  3. SSH to Rasberry Pi and go to the Publish directory you just copied.

  4. Add required environmental variables.

    export ASPNETCORE_URLS="http://*:5000;https://*:5001"

    export DefaultConnection="Data Source=picamera.db"

    export AdminAccessKey="{GUID}"

  5. Provide execute permissions:

    chmod 777 ./picamera

  6. Start web service:

    ./picamera

  7. From another computer open your browser to: http://{raspi-pi}:5000/swagger.