fake-thermal-camera
is a server that runs some of the thermal camera code (currently on linux not raspberian). Is is designed for using with the cypress integration tests.
Project | fake-thermal-camera |
---|---|
Platform | Linux |
Requires | Git repository cacophony-api server to connect to Git repository device-register Git repository thermal-recorder Git repository thermal-uploader Git repository management-interface Git repository management-interface Git repository event-reporter Git repository management-interface |
Licence | GNU General Public License v3.0 |
Download fake-thermal-camera, and device-register, thermal-recorder, thermal-uploader, event-reporter, management-interface project into the same folder.
Make sure the cacophony-api
server the devices will attach to is also running
In the fake-thermal-camera folder start the test server with
> ./run
Now you can start calling server commands. You should create a device before you get started.
GET http://localhost:2040/create/{device-name}?group-name={group-name} Create a new device. Needs to be called before any other command.
GET http://localhost:2040/sendCPTVFrames/?cptv-file={filename} Mocks a leptond camera and sends the frames of a CPTV file (including telemetry data) on /var/run/lepton-frames (does not require a device to be created first)
cptv files are stored in cmd/fake-lepton/cptv-files you can add cptv files to this directory while the image is running and send them via sendCPTVFrames
GET http://localhost:2040/triggerEvent/{type} Triggers and event of the given event type.
Note that the server currently only runs one device at a time. Once a new device is created it is no longer possible to use the previously created device.