Re: AI Written Bash Script

Liste des GroupesRevenir à cs raspberry-pi 
Sujet : Re: AI Written Bash Script
De : kubmw2ce (at) *nospam* duck.com (DrStevenStrange)
Groupes : comp.sys.raspberry-pi
Date : 13. Dec 2024, 07:57:08
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vjgls4$395td$1@dont-email.me>
References : 1 2
User-Agent : Mozilla/5.0 (Macintosh; Intel Mac OS X 15.2; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19
Lawrence D'Oliveiro wrote:
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))
 
Many thanks

Date Sujet#  Auteur
12 Dec 24 * AI Written Bash Script7DrStevenStrange
12 Dec 24 +- Re: AI Written Bash Script1Josef Möllers
12 Dec 24 +- Re: AI Written Bash Script1Josef Möllers
12 Dec 24 +* Re: AI Written Bash Script2Lawrence D'Oliveiro
13 Dec 24 i`- Re: AI Written Bash Script1DrStevenStrange
12 Dec 24 `* Re: AI Written Bash Script2mm0fmf
17 Dec01:08  `- Re: AI Written Bash Script1f6k

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal