Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #261839
| From | piorunz <piorunz@gmx.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Sunrise and Sunset from terminal |
| Date | 2023-09-24 01:50 +0200 |
| Message-ID | <HhkxP-b2QL-1@gated-at.bofh.it> (permalink) |
| References | <HhiPn-b1JP-3@gated-at.bofh.it> <Hhjs5-b2dz-3@gated-at.bofh.it> <HhjBL-b2hD-3@gated-at.bofh.it> <HhjV7-b2E2-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 24/09/2023 00:04, Greg Wooledge wrote: > By the way, do you know what tool does NOT parse HTML correctly? > A mashup of grep, awk and sed. Seriously, don't do this, ever. I don't care, it works for me perfectly well. My own city, and every other I tried. Random city: $ head -n 3 suntimes.sh | tail -n 1 && ./suntimes.sh SunTimes=$(curl --silent "https://www.timeanddate.com/sun/germany/berlin" 2>/dev/null) Sunrise Today: 06:55 Sunset Today: 19:01 $ head -n 3 suntimes.sh | tail -n 1 && ./suntimes.sh SunTimes=$(curl --silent "https://www.timeanddate.com/sun/australia/sydney" 2>/dev/null) Sunrise Today: 05:42 Sunset Today: 17:52 Enough for my Raspberry Pi controlled garden lights to turn on at dusk and turn off at dawn. And it's been like that for last 2 years without a single fail. You want any better? Write it yourself. -- With kindest regards, Piotr. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org/ ⠈⠳⣄⠀⠀⠀⠀
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Sunrise and Sunset from terminal "sl91@gmx.com" <sl91@gmx.com> - 2023-09-24 00:00 +0200
Re: Sunrise and Sunset from terminal ghe2001 <ghe2001@protonmail.com> - 2023-09-24 00:00 +0200
Re: Sunrise and Sunset from terminal piorunz <piorunz@gmx.com> - 2023-09-24 00:40 +0200
Re: Sunrise and Sunset from terminal Felix Miata <mrmazda@earthlink.net> - 2023-09-24 00:50 +0200
Re: Sunrise and Sunset from terminal piorunz <piorunz@gmx.com> - 2023-09-24 01:00 +0200
Re: Sunrise and Sunset from terminal Felix Miata <mrmazda@earthlink.net> - 2023-09-24 01:30 +0200
Re: Sunrise and Sunset from terminal piorunz <piorunz@gmx.com> - 2023-09-24 01:40 +0200
Re: Sunrise and Sunset from terminal Charles Curley <charlescurley@charlescurley.com> - 2023-09-24 05:00 +0200
Re: Sunrise and Sunset from terminal Greg Wooledge <greg@wooledge.org> - 2023-09-24 01:10 +0200
Re: Sunrise and Sunset from terminal piorunz <piorunz@gmx.com> - 2023-09-24 01:50 +0200
Re: Sunrise and Sunset from terminal Andy Smith <andy@strugglers.net> - 2023-09-24 02:40 +0200
Re: Sunrise and Sunset from terminal piorunz <piorunz@gmx.com> - 2023-09-24 03:00 +0200
Re: Sunrise and Sunset from terminal Greg Wooledge <greg@wooledge.org> - 2023-09-24 05:10 +0200
Re: Sunrise and Sunset from terminal Stefano <sl91@gmx.com> - 2023-09-24 11:30 +0200
Re: Sunrise and Sunset from terminal Nate Bargmann <n0nb@n0nb.us> - 2023-09-24 05:00 +0200
Re: Sunrise and Sunset from terminal Tom Browder <tom.browder@gmail.com> - 2023-09-24 22:40 +0200
Re: Sunrise and Sunset from terminal Carles Pina i Estany <carles@pina.cat> - 2023-09-27 12:20 +0200
Re: Sunrise and Sunset from terminal Curt <curty@free.fr> - 2023-09-27 17:50 +0200
Re: Sunrise and Sunset from terminal Sven Hoexter <sven@stormbind.net> - 2023-09-29 16:10 +0200
Re: Sunrise and Sunset from terminal Bruno Kleinert <fuddl@debian.org> - 2023-09-29 18:50 +0200
Re: Sunrise and Sunset from terminal Karl Vogel <vogelke@pobox.com> - 2023-09-29 23:40 +0200
csiph-web