Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33438c5169 | ||
|
|
605698cff7 | ||
|
|
b9e4d928ea |
@@ -9,6 +9,7 @@ on:
|
|||||||
env:
|
env:
|
||||||
VERSION_TAG: '${{ github.ref_name }}'
|
VERSION_TAG: '${{ github.ref_name }}'
|
||||||
CURL_TOKEN: '${{ secrets.TOKEN_GITEA }}'
|
CURL_TOKEN: '${{ secrets.TOKEN_GITEA }}'
|
||||||
|
GPG_SIGNING_KEY: '${{ secrets.GPG_SIGNING_KEY }}'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
@@ -34,4 +35,4 @@ jobs:
|
|||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN_GITEA }}
|
GITEA_TOKEN: ${{ secrets.TOKEN_GITEA }}
|
||||||
GORELEASER_FORCE_TOKEN: gitea
|
GORELEASER_FORCE_TOKEN: gitea
|
||||||
|
|||||||
@@ -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?
|
This probably could have been a bash script. But whats the fun in that?
|
||||||
|
|
||||||
WIP:
|
WIP: I still want to add S3 file handling.
|
||||||
- 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.
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import (
|
|||||||
"image/png"
|
"image/png"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
"os/exec"
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -53,6 +54,13 @@ func CaptureImage() bool {
|
|||||||
log.Fatal().Err(err).Msgf("")
|
log.Fatal().Err(err).Msgf("")
|
||||||
} else {
|
} else {
|
||||||
log.Info().Msg("New image created: " + config.StoragePath + filename)
|
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.")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,4 +16,4 @@ access_key = ""
|
|||||||
secret_key = ""
|
secret_key = ""
|
||||||
|
|
||||||
[timer]
|
[timer]
|
||||||
chron = "*/5 * * * *"
|
chron = "1 * * * *"
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ access_key = ""
|
|||||||
secret_key = ""
|
secret_key = ""
|
||||||
|
|
||||||
[timer]
|
[timer]
|
||||||
chron = "*/5 * * * *"
|
chron = "1 * * * *"
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
info "Downloading axis_timelapse_linux_amd64..."
|
info "Downloading axis_timelapse_linux_amd64..."
|
||||||
|
|||||||
Reference in New Issue
Block a user