View Single Post
turtle
Lord of the Rant.
Formerly turtle2472
 
Join Date: Mar 2005
Location: Upstate South Carolina
 
2022-02-08, 09:45

I found a method that works well for finding last month!
Code:
$ previousMonth=`nowmonth=$(date +%Y-%m) && date -d "$nowmonth-15 last month" '+%Y%m'` $ echo $previousMonth 202201
I forgot to save a link to the original post that provided the details on how to do this. This is great because it does what I need and doesn't have to run on the 1st and I can stagger the days the month long one runs. I could likely clean this up and shorten it, but for now it is really to show off the ability I found.

The next big thing I've got to figure out is how to build a one year time lapse. Currently there are 1440 images for a day and that makes a 60 second video for a day. I'm thinking I'll do that same for the year long time lapse so we can see the year go by in 60 seconds.

Louis L'Amour, “To make democracy work, we must be a nation of participants, not simply observers. One who does not vote has no right to complain.”
Visit our archived Minecraft world! | Maybe someday I'll proof read, until then deal with it.
  quote