X-Git-Url: https://zdv.bktei.com/gitweb/EVA-2020-02.git/blobdiff_plain/137ba78c7c0ea7dedf4ec79b7f38bf2f622635f0..c22b362063c60cc04d8ae355fafae0acf3372484:/TODO.org diff --git a/TODO.org b/TODO.org index 78b7fcf..f9e8f36 100644 --- a/TODO.org +++ b/TODO.org @@ -35,7 +35,62 @@ be reused to do this. It is probably not appropriate to try and augment ~bklog~ to handle this method of being called since it was written with the intention of handling continuous streams of stdout. +** TODO Create automatic setup scripts for logging +Date Created: 2021-01-25T00:21Z + +Create bash scripts that automatically set up a ~ninfacyzga-1~ device +to automatically run executables in ~exec/~ according to procedures +described in ~doc/~. + +*** TODO Create setup script for location logging +Date Created: 2021-01-25T00:24Z + +Setting up location logging script using ~bklog~ via ~cron~ job. + +*** TODO Create setup script for time tracking +Date Created: 2021-01-25T00:25Z + +Setting up time tracking via ~chrony~. + +** TODO Use ~age --version~ in creating ~VERSION~ output files +~age~ as of ~beta7~ outputs its version using the ~--version~ option. + +** TODO Create scripts to store current sensor values in ~/dev/shm/~ dir +Date Created: 2021-01-25T00:36Z + +Create or adjust executables so they write latest sensor values to +~/dev/shm~ so other scripts can read values from them for other +purposes (i.e. periodically reading and piping into ~bklog~). + +Ideally, the scripts should output sensor data in ~jsonline~ formatted +to use an appropriate ontology (i.e. [[https://www.w3.org/TR/vocab-ssn/#iphone_barometer-sosa][SOSA]]). + +** TODO Prevent ~systemd~ from removing ~/dev/shm~ user files +*** 2021-10-31T21:53Z +~systemd~ may be automatically removing ~/dev/shm/ninfacyzga~ and +other files used to store photograph script state. [[https://superuser.com/a/1179962][This]] SuperUser post +explains how this default ~systemd~ behavior can be disabled. + +Disabling the behavior requires modifying +~/etc/systemd/logind.conf~. This would add another step of complexity +with possible sideeffects if other unknown programs are writing to +~/dev/shm~ and system stability requires these be regularly deleted. + +[[https://github.com/systemd/systemd/issues/4532][This]] post indicates that the RemoveIPC behavior only occurs for +non-system users. Another possible solution would be to run the +photograph timelapse script as root; however, this would require +making sure to write the output files as the ~pi~ user to prevent file +permission issues. For now, the ~systemd~ defaults will persist. + * Finished Tasks +** DONE Remove unused executables + CLOSED: [2021-01-25 Mon 00:07] +Date Created: 2021-01-25T00:03Z + +Some unused executables are present in the ~exec/~ directory that are +not used. An example is ~bkgpslog~ which has been superceded by +~gpspipe | bklog~. + ** DONE ~/doc/time~: Migrate from ~ntpsec~ to ~chrony~ CLOSED: [2020-10-19 Mon 03:48] The ~ntpsec~ package is in the ~dfsg~ Debian repository instead of the @@ -48,6 +103,7 @@ in the Debian main repository. ~gpsd~ documentation for communicating to ~chrony~ via ~/run/chrony.XXXX.sock~ and ~/run/chrony.YYYY.sock~ sockets (for GPS and PPS data respectively) can be found [[https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html#_feeding_chrony_from_gpsd][here]]. + *** Closing comments (bktei): ~chrony~ seems much simpler to configure. Its method for interfacing with ~gpsd~ seems simpler as well. The fact that it displays time