chore(TODO):Note need to create script to handle file encryption
[EVA-2020-02.git] / TODO.org
CommitLineData
88b5ae54 1* Task List
fb3daa73
SBS
2** TODO Add ~photograph~ (?) logging
3The Raspberry Pi Zero W has a camera connector that lets certain types
4of camera devices connect. The ~raspistill~ command permits capturing
5of photographs and outputting the file to stdout. Therefore, it should
6be possible to create a script that periodically calls ~raspistill~ to
7output ~jpg~ stdout to ~age~ for encryption and addition to a ~tar~
8file. An Arducam IMX219 wide angle camera captures an 8 megapixel
9image; default settings of ~raspistill~ produces an image of roughly
10~4.5~ to ~5~ megabytes.
11
12Some commands that can be used for creating timelapses via ~ffmpeg~
13are:
14
15: ffmpeg -r 60 -f image2 -s 3280x2464 -pattern_type glob -i '*.jpg' -vcodec libx264 -crf 18 "$(date +%Y%m%dT%H%M%S%z)..time_lapse".mp4
16: cat *.jpg | ffmpeg -f image2pipe -i - output.mp4 # see https://trac.ffmpeg.org/wiki/Slideshow#Pipe
17
137ba78c
SBS
18*** TODO Augment ~bklog~
19Also, either the ~bklog~ script needs to be augmented or a new script
20written in order to handle the case of handling an image file coming
21in via stdin. Currently, ~bklog~ can't properly handle the stdout
22produced by a command such as:
23
24: raspistill -o -
25
26Even if a helper script is written that outputs jpg images via stdout,
27~bklog~ currently has no way of knowing how to partition the stream of
28stdout into separate files.
29
30Since ~raspistill~ produces a single image and then should be
31terminated, it is appropriate to use ~cron~ to call a simple script to
32run regularly (ex: every 5 minutes) and to pipe the output to a script
33that uses ~age~ to encrypt against a recipient. Code from ~bklog~ can
34be reused to do this. It is probably not appropriate to try and
35augment ~bklog~ to handle this method of being called since it was
36written with the intention of handling continuous streams of stdout.
37
fb3daa73
SBS
38* Finished Tasks
39** DONE ~/doc/time~: Migrate from ~ntpsec~ to ~chrony~
40 CLOSED: [2020-10-19 Mon 03:48]
88b5ae54
SBS
41The ~ntpsec~ package is in the ~dfsg~ Debian repository instead of the
42~main~ Debian repository. This is likely due to ~ntpsec~ using a mix
43of ~ntp~'s original "NTP License", ~BSD 2~, and ~MIT~ licenses.
44
45In contrast, ~chrony~ uses the ~GPLv2~ license which allows it to be
46in the Debian main repository.
47
48~gpsd~ documentation for communicating to ~chrony~ via
49~/run/chrony.XXXX.sock~ and ~/run/chrony.YYYY.sock~ sockets (for GPS
50and PPS data respectively) can be found [[https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html#_feeding_chrony_from_gpsd][here]].
fb3daa73
SBS
51*** Closing comments (bktei):
52~chrony~ seems much simpler to configure. Its method for interfacing
53with ~gpsd~ seems simpler as well. The fact that it displays time
54units in its ~chronyc sources~ output means the developers value
55communicating clearly the values they provide the user.
56** DONE ~doc/setup~: Disable bluetooth
57 CLOSED: [2020-10-19 Mon 03:50]
58*** Closing comments (bktei):
59Bluetooth is disabled via a ~systemctl~ command and modifications to
60~/boot/config.txt~.