Commit graph

16 commits

Author SHA1 Message Date
Joel Collins
5966ce29be Blackened everything 2019-09-15 14:17:52 +01:00
Joel Collins
6581385ab9 Refactored JsonPayload to JsonResponse 2019-09-13 18:04:33 +01:00
Joel Collins
3467fe7759 Added extra type checking when applying pi camera config 2019-08-08 10:14:57 +01:00
jtc42
4246746bdc Updated config API to use apply_config 2019-06-11 10:33:45 +01:00
jtc42
235aa984f9 Updated docs 2019-06-07 13:37:20 +01:00
Joel Collins
e30956d761 Renamed video_resolution to stream_resolution 2019-05-20 10:55:43 +01:00
Richard Bowman
e6ec800c21 Fixed camera settings
Since splitting the camera config into a separate YAML file, we've broken
the ability to change the camera's configuration via the API (or at any time
except when the camera is set up, I think).  This (mostly) fixes that, though
I get type errors that I've had to work around (e.g. when setting
shutter_speed), see `pi.py`
2019-04-08 22:41:12 +01:00
Joel Collins
0948c9308a Went on a PEP-8 rampage 2019-01-31 17:20:46 +00:00
Joel Collins
04bed170a0 Added JSON safety to config reads 2019-01-31 16:47:54 +00:00
Joel Collins
e9d74c07e6 Separated updating/writing from saving config 2019-01-31 13:51:02 +00:00
Joel Collins
8087e4d445 Updated to use apply_config and read_config instead of setters and getters 2019-01-31 13:34:14 +00:00
Joel Collins
9c488279d2 Moved setting and getting stage config into root microscope config 2019-01-15 14:28:28 +00:00
Joel Collins
504c9b48a1 Moved camera config route into generic microscope config route 2019-01-15 14:01:52 +00:00
Joel Collins
a8c9a7e7dd Route to return microscope config 2019-01-15 11:48:10 +00:00
Joel Collins
1aad10c71b Removed redundant imports 2019-01-09 16:19:06 +00:00
Joel Collins
c995a15fdc Restructured entire API into blueprints 2018-12-06 15:37:51 +00:00