1. 03 May, 2021 1 commit
  2. 03 Apr, 2021 1 commit
    • chaz's avatar
      Check return of ffmpeg process · 50b305e3
      chaz authored
      Seems better to get an exception than just letting the process die and
      moving on.  Not sure under what conditions ffmpeg exits with an error,
      but let's find out!
      50b305e3
  3. 06 Mar, 2021 1 commit
  4. 04 Mar, 2021 2 commits
    • chaz's avatar
      Add instructions to start dependent systemd services · e27d92c0
      chaz authored
      Systemd is weird.  I want to depend on the network-online.target and
      time-sync.target, but those apparently don't get fulfilled unless you
      manually start some other services that trigger them.
      
      I believe these are the correct services to start for raspberry pi os so
      we don't start till the network is up and time has been synced.
      e27d92c0
    • chaz's avatar
      Use pathlib for cleaner path manipulation · 6a8c6e6e
      chaz authored
      I *guess* 'path / file' is cleaner than os.path.join(path, file)?  It
      does seem a bit odd to me, but here we are.
      6a8c6e6e
  5. 01 Mar, 2021 6 commits
    • chaz's avatar
      Add note about video artifacts under bugs · 60d3b3c2
      chaz authored
      60d3b3c2
    • chaz's avatar
      Change "too late for this date" delay to 10m · 04446875
      chaz authored
      15m was a bit long if you were waiting for it to go by, as I sometimes
      did.  10 minutes seems a bit nicer, and still allows for plenty of break
      without hammering the sunset server.
      04446875
    • chaz's avatar
      Sleep for a max of 15 min to allow clock drift · abd0e463
      chaz authored
      Instead of sleeping the whole shebang right up front, this breaks sleeps
      up in 15 minute chunks, where the time remaining is recalculated each
      time.  This allows us to handle the clock changing out from under us a
      bit better.
      abd0e463
    • chaz's avatar
      Depend on time-sync in systemd unit · 256a1470
      chaz authored
      Hopefully this will ensure systemd starts us after the time has been
      synchronized.  This should hopefully mean it's a bit more consistent
      when starting up after a power failure where the clock is off.
      256a1470
    • chaz's avatar
      Move description of logs lower in README · f84d9404
      chaz authored
      This puts the config section up higher, which is nice since it's
      probably more useful information.
      f84d9404
    • chaz's avatar
      Use newer email address · 45ebba4f
      chaz authored
      The old one will still work, I just prefer chaz@burn.capital for
      programming projects now.
      45ebba4f
  6. 25 Feb, 2021 1 commit
  7. 16 Feb, 2021 2 commits
    • chaz's avatar
      Allow for ntpd to update clock after we start · ca1d69cb
      chaz authored
      This handles the case better where we boot after days of downtime and
      start before ntpd has a chance to set the clock correctly.  Previously,
      we'd loop over several days in the past till we caught up, but this gets
      us checking the correct date as soon as the clock adjusts.
      ca1d69cb
    • chaz's avatar
      Add big freaking caveat about persistent systemd logs · dbfb364e
      chaz authored
      Trying my hardest to keep my opinions about systemd to myself here.
      dbfb364e
  8. 05 Feb, 2021 4 commits
  9. 26 Jan, 2021 1 commit
  10. 24 Jan, 2021 3 commits
  11. 15 Jan, 2021 2 commits
    • chaz's avatar
      Start/stop systemd units, but don't disable/enable · a8071910
      chaz authored
      This renames the systemd_disable option to systemd_stop and removes the
      code to enable/disable them, keeping the start/stop.  There was no need
      to disable and reenable the units, stopping/starting is sufficient here.
      a8071910
    • chaz's avatar
      Remove the reboot option · 8f122b0e
      chaz authored
      I had added this in hopes it would fix some instability problems I've
      been having, where the pi will sometimes disappear from the network and
      seemingly stop doing anything useful.  Turns out it doesn't solve that
      problem.
      
      I believe now that I'm having power issues, and no amount of rebooting
      can fix that.  I have a nice big power brick for it that should supply
      plenty of volts and amps, but it's still behaving as if the power is
      occasionally insufficient -- there's even sometimes sd card corruption,
      a telltale sign.
      
      I'm going to try a battery pack next to see if that'll even out the
      power delivery.
      8f122b0e
  12. 09 Jan, 2021 2 commits
  13. 06 Jan, 2021 1 commit
    • chaz's avatar
      Add video options, default to denoise · bc13487c
      chaz authored
      I've been liking the results from using ffmpeg's hqdn3d denoiser plugin.
      This adds a config option to let you pass flags to ffmpeg, and defaults
      it to use the plugin.
      
      Videos don't seem to take very much longer to produce with the hqdn3d
      filter, and the file sizes are much better.
      bc13487c
  14. 02 Jan, 2021 2 commits
    • chaz's avatar
      Document necessary swap increase · 21afcd5e
      chaz authored
      Turns out giving ourselves a little more memory was necessary to prevent
      ffmpeg from getting oom-killed.  This adds that knowledge to the readme.
      21afcd5e
    • chaz's avatar
      Ensure sudo doesn't prompt · bdec189f
      chaz authored
      This runs sudo where it will never prompt for a password, which is a
      nicer experience from a daemon like this.
      bdec189f
  15. 01 Jan, 2021 3 commits
    • chaz's avatar
      Lengthen systemd stop time · d0d8d91d
      chaz authored
      Turns out this was taking longer than I thought.
      d0d8d91d
    • chaz's avatar
      Add sockets to systemd_disable list · 72369bd1
      chaz authored
      If they're still open, the accompanying .service's can be started by
      systemd at any time, which we don't want.
      
      This also reorders the list a bit... it makes sense to me.
      72369bd1
    • chaz's avatar
      Allow for time of systemd state changes · 69b2299e
      chaz authored
      Stopping systemd services takes time, and this gives us room for that to
      happen, by waking us up a bit earlier.
      
      This also moves where the systemd junk is stopped/restarted, for a
      better experience running --capture-now-only.
      69b2299e
  16. 29 Dec, 2020 6 commits
    • chaz's avatar
      Remove location command line arg · 9bfb8d54
      chaz authored
      It was awkward, and really the args are just there to make running the
      one-time capture easier, which location doesn't matter for.
      9bfb8d54
    • chaz's avatar
      Use the highest priority possible · 5a9710ce
      chaz authored
      Turns out it's not really possible to multitask while the video is being
      assembled, so this puts into high-ass priority instead of trying to be
      nice.  The pi will become unresponsive while the capture and assembly is
      taking place.  I'm hoping this will fix some of the issues I've been
      seeing.
      5a9710ce
    • chaz's avatar
      Describe config options in readme · 5763af0f
      chaz authored
      5763af0f
    • chaz's avatar
      Clean up README a bit · 30d67754
      chaz authored
      Alphabetize the dependencies list and remove a TODO that is more or less
      done.
      30d67754
    • chaz's avatar
      Optionally disable systemd services while running · 500100da
      chaz authored
      This adds a config option that lets us disable systemd services while
      we're doing a capture.  I've been seeing lots of errors in the captured
      images that make it into the videos, and sometimes video encoding errors
      as well.  I'm hoping that reducing the multitasking strain on the pi
      will fix some of that.
      500100da
    • chaz's avatar
      Add option to reboot after videos are assembled · 07bd565e
      chaz authored
      This is a hack to fix the issue where the pi will stop responding over
      the network after assembling videos.  Dunno what's going on, but this
      means we'll be back on the network ASAP.  See the comment in the code
      for more details.
      07bd565e
  17. 28 Dec, 2020 2 commits
    • chaz's avatar
      Clean up links in readme · b96fe80d
      chaz authored
      b96fe80d
    • chaz's avatar
      Print white balance values being used · 8b035c8e
      chaz authored
      This adds a log line for the white balance factors being used for the
      capture.  I wish I had a better way to set the white balance up front...
      I'm thinking manual intervention might be required to make things look
      ideal, so this should give me an idea of what to set it to when that
      time comes.
      8b035c8e