You are not logged in.

#4701 2025-11-17 13:32:56

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@marens
thanks for this new tad script.

Is there a way to pull in the forecast (not current condition) for the current day? I tried adding

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $1}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' > $HOME/time_and_date_conky_script/date_and_phrase

to the tad script, but today's forecast was not generated in date_and_phrase file. I believe that's because it's not in "Forecast for next 2 weeks" (view historical weather) table.

I see today's forecast (or what's left of the day) in the "Forecast for the next 48 hours" table on the same webpage, just above the Forecast for next 2 weeks table , but I have no idea how to go about pulling that information into a file.

Last edited by asqwerth (2025-11-17 13:34:15)

Offline

#4702 2025-11-17 14:56:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 970

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ I have already noticed that the data from the website is displayed in an 'unusual' way.
It changes in the evening hours:

marens wrote:

The code above has been updated to match the data on the website.

https://forums.bunsenlabs.org/viewtopic … 97#p146897

It looks like line 3 in the "now" file is the forecast for tomorrow:
now.png  next.png


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4703 2025-11-17 15:30:28

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

marens wrote:

^ I have already noticed that the data from the website is displayed in an 'unusual' way.
It changes in the evening hours:

marens wrote:

The code above has been updated to match the data on the website.

https://forums.bunsenlabs.org/viewtopic … 97#p146897

It looks like line 3 in the "now" file is the forecast for tomorrow:
https://i.postimg.cc/2VWLzBDz/now.png  https://i.postimg.cc/k4v868tS/next.png

When you say the code has been updated, are you referring to your tad-conky, or the tad script?

With regard to the forecast for the current day, I was referring to this bit on the website:

NfrI3Nh.png

Yes, I have noticed that even though it's still Mon night here, it is now showing as early Tues in the table (it didn't do so earlier this evening).  But I don't think the info for the current day forecast in this 48 hours table comes from the historical weather table, since even earlier this evening, that only started from Tuesday 18th Nov.  Nothing was showing in the 17th Nov cell.

My hope is to be able to add the current day forecast into this conky:

JsYQKN8.png

Last edited by asqwerth (2025-11-17 16:03:45)

Offline

#4704 2025-11-17 17:34:21

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 970

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

asqwerth wrote:

When you say the code has been updated, are you referring to your tad-conky, or the tad script?

In the tad-conky.

This is the best way:
https://forums.bunsenlabs.org/viewtopic … 33#p146933

During the day, data for "TODAY" will be displayed, and in the evening hours, it will be switched to "TOMORROW".

tad.png  temperature.png

You will probably get local names for the days in the "date" file, but everything is aligned with the table (next 2 weeks).

Last edited by marens (2025-11-17 17:46:50)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4705 2025-11-17 18:16:50

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@marens, I don't think we are talking about the same thing.

When I look at your 1st screenshot in the post above, which shows the table for "forecasts for the next 2 weeks", I can see that there is no daily weather forecast (as opposed to the current or "now" weather) for the 17th of Nov (current day).  The data starts from the following day, namely, 18th Nov.

Similarly, the textual weather condition provided in the date_and_phrase file starts from 18th Nov. 

It's easy to display the current ("Now") weather textually because it's in the "now" file.  It's easy to display tomorrow's text forecast because it's in the date and phrase file.

However, I can't figure out how to display today's text forecast because it's neither in the now or the date and phrase files.

In the website, the text forecast for today (or the rest of today) is displayed in the "forecast for the next 48 hours" table, per my 1st screenshot in https://forums.bunsenlabs.org/viewtopic … 90#p147090 .

I'm wondering where in the whole timeanddate.com site that piece of data can be found, and whether there is a way to extract it into a text file.

Offline

#4706 2025-11-17 18:56:57

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 970

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

You probably didn't understand me.

During the day in conky you will have:

Now (Current  -  skip line 3 in the "now" file)  *You already have it below

TODAY (From the table  -  "date" + "temperatures" files)

TOMORROW (From the table  -  "date" + "temperatures" files)

Today's forecast is not important in the evening hours.
That's why the website switches to tomorrow's forecast and you will get:

Now (Current  -  skip line 3 in the "now" file)

TOMORROW  -  (From the table  -  "date" + "temperatures" files)

DAY AFTER TOMORROW  -  (From the table  -  "date" + "temperatures" files)

After midnight (in the morning) everything is as usual again (case one).


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4707 2025-11-18 05:36:38

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Ah so.  I get it.
Thanks, @maren.

Offline

#4708 2025-11-18 21:16:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 970

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ Your tad-conky reminds me of the acc_RSS script.

Simple with just a few data for a couple of days.
I went back in time for a moment:
https://forums.bunsenlabs.org/viewtopic … 81#p132081

tad-weather.png

Last edited by marens (2025-11-18 23:48:20)


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4709 Yesterday 13:54:12

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

marens wrote:

^ Your tad-conky reminds me of the acc_RSS script.

Simple with just a few data for a couple of days.
...

Yes, I like simple.

My conkies don't show hourly weather.  And when I do use moongiant script, it is usually only to display the current moonphase visually (ie, just the icon).

I will probably use this TAD script in my acc_RSS conkies that no longer work. 

I could replace with accuweather_conky_script, but I want to reduce reliance on accuweather stuff, which might be cut off at any time.

Offline

#4710 Yesterday 14:32:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 970

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

asqwerth wrote:

I will probably use this TAD script in my acc_RSS conkies that no longer work.

I created a TAD script to replace acc_RSS.

marens wrote:

We have lost the Accuweather_RSS_conky_script for now, but we hope to get it working again.

While we wait, try this:

https://forums.bunsenlabs.org/viewtopic … 05#p146305

I thought the "NOW" part would be enough.
Anyway, you now have a complete script (now + hourly + daily forecast).

Let everyone use what they like.
Enjoy.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4711 Yesterday 15:02:47

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Thank you again.

Offline

#4712 Today 01:16:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 970

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Conky tad script

Looking at @asqwerth's tad-conky, I thought it would be good to have the month in the "date" file as well.

tad-date.png

If you prefer this, the end of the TAD script should look like this:

## Daily Day + Date - Next 7 Days 
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -s "$address/ext" > $HOME/time_and_date_conky_script/date-raw

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $1}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' > $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $2}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $3}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $4}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $5}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $6}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $7}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

You will probably get the names of the days and months in the local language.
If you want a different format (or language), it's pretty easy to do by adding one long 'sed' line to the end of the TAD script.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4713 Today 02:17:23

asqwerth
Member
Registered: 2015-10-08
Posts: 31

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Nice, the new date script works well.

Previously I was using the "date -d +1day..." command to display more detailed dates, but the '1p' forecast details  wouldn't have been accurate in the daytime, per your explanation in https://forums.bunsenlabs.org/viewtopic … 95#p147095 .


2HTh9L5.png

Thanks.

Last edited by asqwerth (Today 02:17:51)

Offline

Board footer

Powered by FluxBB