On Fri, Sep 29, 2023 at 12:48:56PM -0400, Bruno Kleinert wrote:
> Am Samstag, dem 23.09.2023 um 23:51 +0200 schrieb s...@gmx.com:
> > Is there a way to get sunrise and sunset time from command interpreter?
> > I want to use its output for a script!
>
> in case you're looking for a possibility to e
Am Samstag, dem 23.09.2023 um 23:51 +0200 schrieb s...@gmx.com:
> Is there a way to get sunrise and sunset time from command interpreter?
> I want to use its output for a script!
>
Hi,
in case you're looking for a possibility to execute commands at sunset
and/or sunrise, I use remind for this (a
On Wed, Sep 27, 2023 at 11:12:02AM +0100, Carles Pina i Estany wrote:
>
> Hi,
>
> sudo apt install python3-ephem
>
> And in one line:
>
> """
> (LATITUDE=51.5; LONGITUDE=0.12; python3 -c "import ephem; o=ephem.Observer();
> o.lat, o.lon = $LATITUDE, $LONGITUDE; print('Sunrise:',
> o.next_risi
On 2023-09-27, Carles Pina i Estany wrote:
>
> Hi,
>
> sudo apt install python3-ephem
>
I think hdate could also work for this.
Hi,
sudo apt install python3-ephem
And in one line:
"""
(LATITUDE=51.5; LONGITUDE=0.12; python3 -c "import ephem; o=ephem.Observer();
o.lat, o.lon = $LATITUDE, $LONGITUDE; print('Sunrise:',
o.next_rising(ephem.Sun()).datetime(), 'Sunset:',
o.next_setting(ephem.Sun()).datetime())")
"""
The
On Sun, Sep 24, 2023 at 00:00 s...@gmx.com wrote:
> Is there a way to get sunrise and sunset time from command interpreter?
> I want to use its output for a script!
You can calculate it yourself using a Raku module at
https://github.com/tbrowder/Astro-Sunrise/;
Search https://raku.land to find
On 23/09/2023 22:51, s...@gmx.com wrote:
Is there a way to get sunrise and sunset time from command interpreter?
I want to use its output for a script!
I use "Sunwait" from https://github.com/risacher/sunwait which is a tool
you can download and compile. I believe it works entirely offline, bu
Cool this site..i didn't know it..thanks
Il 24 Settembre 2023 05:00:45 CEST, Greg Wooledge ha
scritto:
>On Sun, Sep 24, 2023 at 12:35:18AM +, Andy Smith wrote:
>> $ curl -s
>> 'https://api.sunrise-sunset.org/json?lat=51.509865&lng=-0.118092&formatted=0'
>> | jq .
>> {
>> "results": {
On Sun, Sep 24, 2023 at 12:35:18AM +, Andy Smith wrote:
> $ curl -s
> 'https://api.sunrise-sunset.org/json?lat=51.509865&lng=-0.118092&formatted=0'
> | jq .
> {
> "results": {
> "sunrise": "2023-09-24T05:47:54+00:00",
> "sunset": "2023-09-24T17:57:14+00:00",
> "solar_noon": "202
On Sat, 23 Sep 2023 19:22:52 -0400
Felix Miata wrote:
> It's still that idiotic AM/PM nonsense, and the : is in the wrong
> place.
Yup. I think it's locale-dependent, as you surmised.
# Optional: Insert a colon between hours and minutes. AM/PM times
# assumed.
SunriseTime="${SunriseTime:0:1}:$
If you don't want to scrape a Web page, or want this information when a
network is not available, the hdate package will do (referenced from:
https://unix.stackexchange.com/a/527031).
Here is an example for Topeka, KS:
$ hdate -l N39.034722 -L W95.695556 -s -z -5
Saturday, 23 September 2023, eve
On 24/09/2023 01:35, Andy Smith wrote:
Hello,
On Sat, Sep 23, 2023 at 07:04:17PM -0400, Greg Wooledge wrote:
So, what to do instead? I would first look for a data source that's
not intended to be displayed by a Javascript-enabled web browser.
Something that gives you the results in plain text
Hello,
On Sat, Sep 23, 2023 at 07:04:17PM -0400, Greg Wooledge wrote:
> So, what to do instead? I would first look for a data source that's
> not intended to be displayed by a Javascript-enabled web browser.
> Something that gives you the results in plain text would be great.
> I doubt such a thi
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 |
On 24/09/2023 00:22, Felix Miata wrote:
sh srss.sh
Sunrise Today: 71:8
Sunset Today: 72:4
It's still that idiotic AM/PM nonsense, and the : is in the wrong place.
Your city in my terminal is displayed correctly:
Sunrise Today: 07:18
Sunset Today: 19:24
Looks like the website has decided t
piorunz composed on 2023-09-23 23:50 (UTC+0100):
> Felix Miata wrote:
>>> sh srss.sh
>> Sunrise Today: 64:7889657242711361093201601361071834
>> Sunset Today: 65:7242711361093201601361071834
>
>> That sort of resembles the half day format common outside the military.
> Sorry, works for me.
>
On Sat, Sep 23, 2023 at 06:45:08PM -0400, Felix Miata wrote:
> piorunz composed on 2023-09-23 23:35 (UTC+0100):
>
> > SunTimes=$(curl --silent "https://www.timeanddate.com/sun/uk/london";
> > 2>/dev/null)
[...]
> > sh srss.sh
> Sunrise Today: 64:7889657242711361093201601361071834
> Sunset Today:
On 23/09/2023 23:45, Felix Miata wrote:
sh srss.sh
Sunrise Today: 64:7889657242711361093201601361071834
Sunset Today: 65:7242711361093201601361071834
That sort of resembles the half day format common outside the military.
Sorry, works for me.
./suntimes.sh
Sunrise Today: 06:47
Sunset Tod
piorunz composed on 2023-09-23 23:35 (UTC+0100):
> #!/bin/bash
> SunTimes=$(curl --silent "https://www.timeanddate.com/sun/uk/london";
> 2>/dev/null)
> SunriseTime=$(echo "$SunTimes" | grep -o 'Sunrise Today.*' | awk '{print
> $3}' | sed 's/[^0-9]//g')
> SunsetTime=$(echo "$SunTimes" | grep -o '
On 23/09/2023 22:51, s...@gmx.com wrote:
Is there a way to get sunrise and sunset time from command interpreter?
I want to use its output for a script!
Of course.
#!/bin/bash
SunTimes=$(curl --silent "https://www.timeanddate.com/sun/uk/london";
2>/dev/null)
SunriseTime=$(echo "$SunTimes" | g
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256
--- Original Message ---
On Saturday, September 23rd, 2023 at 3:51 PM, s...@gmx.com wrote:
> Is there a way to get sunrise and sunset time from command interpreter?
Looks like several:
https://duckduckgo.com/?t=ftsa&q=linux+sunrise&ia=w
Is there a way to get sunrise and sunset time from command interpreter?
I want to use its output for a script!
22 matches
Mail list logo