3 Commits
main ... v0.1.1

Author SHA1 Message Date
William Gill
33438c5169 typo
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 2m0s
2025-10-06 00:57:10 +00:00
William Gill
605698cff7 latest.png hack
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 2m17s
2025-10-06 00:15:11 +00:00
William Gill
b9e4d928ea workflows with an s.
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Failing after 1m46s
2025-10-05 23:49:50 +00:00
5 changed files with 13 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ on:
env:
VERSION_TAG: '${{ github.ref_name }}'
CURL_TOKEN: '${{ secrets.TOKEN_GITEA }}'
GPG_SIGNING_KEY: '${{ secrets.GPG_SIGNING_KEY }}'
jobs:
goreleaser:

View File

@@ -4,7 +4,4 @@ Timelapse application for my AXIS P1387-LE nature camera.
This probably could have been a bash script. But whats the fun in that?
WIP:
- I still want to add S3 file handling.
- Convert SystemD timers of my two bash scripts into the app itself for file orginization and daily MP4 video generation.
- Setup Ntfy for scheduled notifications of yeterday, monthly, and yearly for when timelapse videos are ready.
WIP: I still want to add S3 file handling.

View File

@@ -8,6 +8,7 @@ import (
"image/png"
"net/http"
"os"
"os/exec"
"strconv"
"time"
@@ -53,6 +54,13 @@ func CaptureImage() bool {
log.Fatal().Err(err).Msgf("")
} else {
log.Info().Msg("New image created: " + config.StoragePath + filename)
cmd := exec.Command("cp", config.StoragePath+filename, config.StoragePath+"/latest.png")
err := cmd.Run()
if err != nil {
log.Error().Msgf("Error copying to latest.")
}
}
}

View File

@@ -16,4 +16,4 @@ access_key = ""
secret_key = ""
[timer]
chron = "*/5 * * * *"
chron = "1 * * * *"

View File

@@ -55,7 +55,7 @@ access_key = ""
secret_key = ""
[timer]
chron = "*/5 * * * *"
chron = "1 * * * *"
EOT
info "Downloading axis_timelapse_linux_amd64..."