INTL 3:770/1 3:770/3
REPLYADDR ldo@nz.invalid
REPLYTO 3:770/3.0 UUCP
MSGID: 95d224b5
REPLY: 5360cbe7
PID: SoupGate-Win32 v1.05
On Thu, 12 Dec 2024 12:43:14 +0000, DrStevenStrange wrote:
> ... how can I amend the script so it starts 30 minutes BEFORE sunrise
> and stops 30 Minutes after?
> ...
> SUNRISE_EPOCH=$(date -d "$SUNRISE" +%s)
> SUNSET_EPOCH=$(date -d "$SUNSET" +%s)
How about
SUNRISE_EPOCH=$(($(date -d "$SUNRISE" +%s) - 1800))
SUNSET_EPOCH=$(($(date -d "$SUNSET" +%s) + 1800))
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
SEEN-BY: 19/38 105/81 106/201 128/187 129/305 153/757 7715 218/700
SEEN-BY: 218/840 220/70 226/17 30 100 227/114 229/110 111 114 200
SEEN-BY: 229/206 300 317 400 426 428 550 616 664 700 705 266/512 267/800
SEEN-BY: 282/1038 291/111 292/854 310/31 320/219 322/757 342/200 396/45
SEEN-BY: 460/58 633/280 281 412 418 420 509 2744 712/848 770/1 3 100
SEEN-BY: 770/330 340 772/210 220 230 902/26 5020/400 5075/35
PATH: 770/3 1 633/280 229/426
|