Skip to content

days.

A blog experiment emphasizing aggregation. Content from various sources (GitHub, YouTube, regular posts, etc.) is merged into a day-oriented feed and archive that the author can curate and customize.

Tuesday, July 21

Git Commits

dev commits 2 ohnsh/dev
  • 3:32 am — John Sherrell <dev@ohn.sh>

    cron: Launching Ghostty.app instead of script directly, to run in a context where we can resolve mDNS names. (In other words, we need "Find devices on local network" enabled in macOS privacy settings, which Ghostty.app has.)

  • 3:01 am — John Sherrell <dev@ohn.sh>

    cron: Document switch to using rclone with the OpenSSH sftp backend.

Monday, July 20

Git Commits

dev commits 6 ohnsh/dev
  • 8:40 pm — John Sherrell <dev@ohn.sh>

    cam: Change recorded segment name format to `${date}_${camera_name}` so that lexical order is always chronoligical order, even when camera switches. Made `seg_name` a static variable instead of a function.

  • 8:17 pm — John Sherrell <dev@ohn.sh>

    stream-utils: document the use of traps in bash scripts to perform clean-up on SIGINT or SIGTERM.

  • 7:53 pm — John Sherrell <dev@ohn.sh>

    cron: Supporting logic on the remote side.

  • 7:52 pm — John Sherrell <dev@ohn.sh>

    cam: comment documenting env.sh

  • 7:51 pm — John Sherrell <dev@ohn.sh>

    cron: Most of the supporting logic now in place to run remote jobs. Archival of bug output is almost automated.

  • 6:46 pm — John Sherrell <dev@ohn.sh>

    cron: new package for cron-like automation using a launchd service.

YouTube

Sunday, July 19

Git Commits

dev commits 3 ohnsh/dev
  • 7:11 pm — John Sherrell <dev@ohn.sh>

    cam: Added loop to wait for folder to contain at least two videos (that aren't open for writing) on stream_folder startup. This will make the script more automatable, although it still exits when it runs out of videos.

  • 5:42 pm — John Sherrell <dev@ohn.sh>

    stream-utils: Since paths in ffmpeg concat demuxer playlists are relative to the playlist file, I'm starting to prefer generating temp files in the current directory instead of using process substitution (which makes paths relative to /dev/fd). Added a new function in mkff.sh to that effect and changed most of the script to use it.

  • 5:15 pm — John Sherrell <dev@ohn.sh>

    stream-utils: Some old work I forgot about. strobe_multi function that takes a playlist input.

Saturday, July 18

Git Commits

dev commits 1 ohnsh/dev
  • 12:24 am — John Sherrell <dev@ohn.sh>

    cam,bug: Clean up status messages by using `$(basename $0)` instead of $0. Switch on allexport shell option (`set -a`) in env.sh files so that sourcing them is effective with no fuss. (Switched off again at end of files.)

YouTube

Friday, July 17

Git Commits

dev commits 4 ohnsh/dev
  • 11:52 pm — John Sherrell <dev@ohn.sh>

    sh: fix script dir detection when wyze_timelapse.sh is being sourced (${BASH_SOURCE[0]} instead of $0). In timelapse.sh, use `-qp 28` for timelapse_vaapi variant, for slightly smaller output (default `qp` is 25).

  • 10:21 pm — John Sherrell <dev@ohn.sh>

    cam: Convert container management to use compose.yml.

  • 10:15 pm — John Sherrell <dev@ohn.sh>

    cam: For now, quit stream_folder.sh when we run out of files. If I restart the stream after a delay, the broadcast is already over and YouTube just throws the stream away. A new broadcast could be created programatically with `youtube-client`, which is what stream_folder.sh already does on start-up, but I'm reluctant to put that in a loop and leave it on autopilot.

  • 9:53 pm — John Sherrell <dev@ohn.sh>

    bug: Now starting container with docker compose.