Setup on a new Windows PC
Install and setup required components:
winget install Git.Git
winget install OpenJS.NodeJS.LTS
winget install GoLang.Go
winget install Hugo.Hugo.Extended
Open new Terminal:
cd D:\dev
git clone https://github.com/michaelp85/3malbec.com.git
cd 3malbec.com
npm install
npm run dev
Camera Live Stream
See snapshot/nx_snapshot.py in the repo.
/etc/systemd/system/snapshot.service
[Unit]
Description=Publish camera snapshot
After=network-online.target
[Service]
Type=oneshot
EnvironmentFile=/etc/snapshot.env
ExecStart=/usr/bin/python3 /opt/snapshot/nx_snapshot.py
TimeoutStartSec=90
/etc/systemd/system/snapshot.timer
[Unit]
Description=Snapshot cadence
[Timer]
OnCalendar=*-*-* 07..18:00/2:00
OnCalendar=*-*-* 19..23,00..06:00/10:00
Persistent=false
AccuracySec=1s
[Install]
WantedBy=timers.target
Setup:
sudo systemctl enable --now snapshot.timer
sudo systemctl start snapshot.service
Confirm working via:
systemctl list-timers snapshot.timer