Richard Bowman
a9fff24848
Explicitly specify encoding
...
The update to pylint means we were failing because open()
doesn't specify the encoding everywhere. I have now specified utf-8
everywhere. This was patchy before, and is default behaviour on the
Pi. There's a slim chance it will cause some issues on Windows, but
that shouldn't affect anyone outside the developers.
I've also ignored a couple of new spurious warnings, and explicitly
ignored some unused variables.
2022-08-09 07:16:44 +01:00
Richard Bowman
1339c23757
Bump some logging statements to DEBUG
...
Any action that takes captures ends up with
a log that's full of capture write operations,
because each new capture generates 6-10
messages.
I'm moving said messages to DEBUG because I
don't think they are important any more, and
they do clutter up the log.
2022-01-13 14:56:18 +00:00
Joel Collins
7866ec0f47
Static type analysis
2020-11-30 13:36:45 +00:00
Joel Collins
6fb61e1e3f
Reverted logging style
2020-11-12 15:45:58 +00:00
Joel Collins
9f5252194a
Updated all log strings to new format
2020-11-12 15:12:17 +00:00
Joel Collins
6644819352
Formatting
2020-11-12 14:33:08 +00:00
Joel Collins
7c450b6214
Moved piexif into captures submodule
2020-11-12 12:03:34 +00:00
Joel Collins
4a9d1c5e3c
Removed default JSON files and submoduled JSON encoder class
2020-11-12 12:02:09 +00:00
Joel Collins
06fb81ec4a
Tidied up logging
2020-11-06 16:24:55 +00:00
Joel Collins
9dab2421a4
Removed in-memory full metadata from CaptureObject
2020-11-06 12:09:05 +00:00
Joel Collins
86732b8782
Fixed reloading timestamp in new format
2020-11-03 16:11:30 +00:00
Joel Collins
b69c90345f
Removed full capture metadata from top-level resource list
2020-11-03 15:45:00 +00:00
Joel Collins
6c51da5394
Simplified build_captures_from_exif
2020-11-02 15:51:52 +00:00
Joel Collins
1f12154876
Fixed thumbnail generation for video_port captures
2020-10-28 16:02:08 +00:00
Joel Collins
32ec2b463d
Fixed thumbnail data fallback
2020-10-28 15:41:06 +00:00
Joel Collins
250fd07e9a
Code formatting and linting
2020-10-27 14:14:59 +00:00
Joel Collins
10d264c526
Always use builtin JPEG thumbnails
2020-10-27 14:05:24 +00:00
Joel Collins
994e83dbeb
Code cleanup
2020-10-14 14:56:29 +00:00
Joel Collins
2bfb988460
Code formatting
2020-10-13 15:02:19 +01:00
Joel Collins
5139b24ffe
Updated to new LabThings structure
2020-09-04 15:48:52 +01:00
Joel Collins
44cbc87416
Re-synchronised capture IO
2020-07-03 15:05:53 +01:00
Joel Collins
38cdecd39a
Revert "Spawn metadata IO in greenlets"
...
This reverts commit 0e78d7be82
2020-07-01 15:05:43 +00:00
Joel Collins
0e78d7be82
Spawn metadata IO in greenlets
2020-07-01 15:58:31 +01:00
Joel Collins
2d2b4c769c
Fixed metadata now saving to files
2020-06-28 09:22:25 +01:00
Joel Collins
5dc838d5eb
Added method to batch-write metadata parameters
2020-06-15 18:00:16 +01:00
Joel Collins
5916daebfb
Removed explicit async EXIF IO
2020-06-15 12:12:10 +01:00
Joel Collins
0edb696c99
Switched file IO to greenlet
2020-06-15 10:11:50 +01:00
Joel Collins
2305a562d9
Switched metadata IO to greenlet
2020-06-15 10:01:31 +01:00
Joel Collins
9962f0b063
Removed unnecesarry greenlet context switches
2020-06-11 16:56:44 +01:00
Joel Collins
6bf37a0985
Threadpool for disk IO, greenlets for metadata
2020-06-11 12:01:19 +01:00
Joel Collins
7c9f42f7f3
Optimised captures by using greenlets for disk IO
2020-06-11 11:42:31 +01:00
Joel Collins
caf553db7a
Moved capture management into separate object
2020-04-28 14:32:56 +01:00