home bbs files messages ]

Just a sample of the Echomail archive

Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.

   RBERRYPI      Support for the Raspberry Pi device      21,939 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 21,155 of 21,939   
   =?UTF-8?Q?Josef_M=C3=B6llers?= to DrStevenStrange   
   Re: AI Written Bash Script   
   12 Dec 24 14:36:55   
   
   INTL 3:770/1 3:770/3   
   REPLYADDR josef@invalid.invalid   
   REPLYTO 3:770/3.0 UUCP   
   MSGID:  911bb66d   
   REPLY:  5360cbe7   
   PID: SoupGate-Win32 v1.05   
   On 12.12.24 13:43, DrStevenStrange wrote:   
   > Ok - don't laugh   
   >   
   > My coding skills are pitiful so I asked my resident Ai to write a bash   
   > script to call a webcam script (I did write this one) only between   
   > sunrise and sunset. it produced this and it works! My question is - how   
   > can I amend the script so it starts 30 minutes BEFORE sunrise and stops   
   > 30  Minutes after?   
   [...]   
   > # Convert sunrise and sunset times to seconds since epoch   
   > SUNRISE_EPOCH=$(date -d "$SUNRISE" +%s)   
   > SUNSET_EPOCH=$(date -d "$SUNSET" +%s)   
   > CURRENT_EPOCH=$(date +%s)   
      
   Since you already have the date/times in seconds since the epoch, just   
   add/subtract 30 minutes worth of seconds for AFTER and BEFORE!   
      
   Josef   
      
   --- SoupGate-Win32 v1.05   
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)   
   SEEN-BY: 10/0 1 19/10 103/705 105/81 106/201 124/5016 128/187 129/305   
   SEEN-BY: 153/757 7715 218/0 1 601 700 840 220/70 221/1 6 360 226/17   
   SEEN-BY: 226/30 100 227/114 229/110 111 114 200 206 300 317 400 426   
   SEEN-BY: 229/428 550 616 664 700 705 240/1120 266/512 267/800 282/1038   
   SEEN-BY: 291/111 292/854 301/1 113 812 310/31 320/219 322/757 335/364   
   SEEN-BY: 341/66 342/200 396/45 460/58 633/280 712/848 770/1 3 100   
   SEEN-BY: 770/330 340 772/210 220 230 902/26 5020/400 1042 5075/35   
   PATH: 770/3 1 218/840 221/6 301/1 218/700 229/426   
      

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca