/picon-rest-api

Control the PICON hat from a REST API

Primary LanguageGo

Picon REST API

Control the PICON hat from a comfy REST API.

Build

make

This will build both the desktop (server) version and the RPI version for ARM processors (server-arm), from your desktop machine (for more performance). You could also build it from your raspberry-pi, but it's longer... :)

Use

On desktop with a 'fake' hat:

./server

On RPI with the real PICON hat:

USE_PICON=yes ./server-arm

Camera stream

We also expose the raw H264 stream from the camera on the /camera endpoint of the API.

mplayer -fps 200 -demuxer h264es ffmpeg://http://raspberrypi.local:8080/camera