You are not logged in.

#4741 2025-11-25 18:00:54

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,759

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

marens wrote:

^ Please remove the link to the accuWeather script.
I don't want my work to be found again on Github without asking me.

The link to the BL forum was never posted there.

???  yikes
If you mean me, then I blocked the link out of respect for your work,

I don't understand it because your name doesn't appear anywhere. It's @TBG's script, which some people, including me, have mangled, bent and straightened.

I hope you have a good and plausible explanation for this. hmm

Offline

#4742 2025-11-25 18:50:20

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

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

^ I've since edited the post, but you probably didn't see it.

marens wrote:

EDIT
This is a public forum and nothing is hidden, but let them at least try to find it themselves.

I'll try to explain it to you:
Some people from GitHub come here, copy/paste my fixes, and publish them as their own work on the script.

They don't leave a link to this forum anywhere, even though they found the solution here.
If they promoted BL forums, I wouldn't mind.

I always help everyone, but I don't want to help people like that.

P.S.
You decide what you will do.
I just asked you to think about it.

EDIT

unklar wrote:

I don't understand it because your name doesn't appear anywhere. It's @TBG's script, which some people, including me, have mangled, bent and straightened.

Ah.
We're not talking about the same accuweather script???
I meant the one that has been saved for the last 45 months without @TBG:

marens wrote:

My latest updates still work, and for those who use hourly forecast, I made my own version that also works (for now).

Anyway, you and I can be proud of our contributions here since @TBG left (about 45 months ago).

https://forums.bunsenlabs.org/viewtopic … 23#p146923
https://forums.bunsenlabs.org/viewtopic … 31#p128131
https://forums.bunsenlabs.org/viewtopic … 73#p132573
https://forums.bunsenlabs.org/viewtopic … 74#p132574
https://forums.bunsenlabs.org/viewtopic … 32#p145932
...

I'd love to see that accuweather script where my name doesn't appear anywhere.
Link?

Last edited by marens (2025-11-25 23:34:20)


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

Offline

#4743 2025-11-26 02:04:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,851
Website

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

marens wrote:

^ I've since edited the post, but you probably didn't see it.

marens wrote:

EDIT
This is a public forum and nothing is hidden, but let them at least try to find it themselves.

I'll try to explain it to you:
Some people from GitHub come here, copy/paste my fixes, and publish them as their own work on the script.

They don't leave a link to this forum anywhere, even though they found the solution here.
If they promoted BL forums, I wouldn't mind.

I always help everyone, but I don't want to help people like that.

Note, to everyone - BunsenLabs is part of the FOSS world. Our packages on GitHub are published under various open source licences, mostly GNU 2 or 3. That means anyone is free to copy the code and use it however they want, as long as they publish it with the same conditions. Any copyright declarations must be preserved, so previous authors of work continue to be credited. This means it's a good idea to put (dated) copyright headers in any piece of work that you consider important enough.

As for content published without any licence or copyright declaration, there may be some automatic copyright, but I don't think there's any obligation on the author to make content available, or not.

On this forum, we consider technical content published here to belong to the community as a whole (as is written in the rules, under "Deleting your data"). That said, of course users are able to edit their posts as they want, so we are mostly talking about a moral obligation to keep the content here useful.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#4744 2025-11-26 06:19:47

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

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

marens wrote:

.....
When I followed those 471 locations, I noticed that the wt-14 icon appeared somewhere as "Passing clouds" (night) and somewhere only as "Fog".
I'm sure there are many similar cases....

I already mentioned the wt-14 issue a few posts back.  I have no choice but to use an icon that can represent interchangeably mist/fog as well as (if you close one eye) light clouds.

So far I have not spotted wt-32 (3 blue wavy lines - water??) in the webpage with the 471 locations.  That is now the only icon left that I'm not sure about.

[ADDED]
OK, I did a web search for areas experiencing floods right now, the news said Hat Yai in Thailand, and wt-32 was used to indicate flash floods in that region.

Solved.

I will reuse the original wt32 icon for this.

Last edited by asqwerth (2025-11-26 06:30:35)

Offline

#4745 2025-11-26 11:40:20

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

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

asqwerth wrote:

OK, I did a web search for areas experiencing floods right now, the news said Hat Yai in Thailand, and wt-32 was used to indicate flash floods in that region.

Awesome.

I don't mean the floods, but the way you found a solution.  cool


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

Offline

#4746 Yesterday 02:56:50

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

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

@asqwerth

Try this in tad-conky (High and Low part):

${goto 100}${color ff8080}High and Low:${color}  ${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/temperatures}  °C
${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/date_and_phrase | sed 's/[^ ]* *//' | sed 's/\.*$//' | sed -e 's/\./\n/g' | sed -e 's/^[ \t]*//g' | { N=24; perl -pe "s/^/' 'x$N/e" ; } | sed 's/.*/&./'}

Just set 'N=24' to get proper spacing at the beginning.

This is what it looks like in the terminal:

$ sed -n '1p' $HOME/time_and_date_conky_script/date_and_phrase | sed 's/[^ ]* *//' | sed 's/\.*$//' | sed -e 's/\./\n/g' | sed -e 's/^[ \t]*//g' | { N=24; perl -pe "s/^/' 'x$N/e" ; } | sed 's/.*/&./'
                        Sprinkles late.
                        Overcast.

EDIT
My tad-conky is now much more compact.

tad.png

The cut  or "fmt -w XX"  commands are no longer needed.
Everything is done in one line of code, the output is the same as on the website and the result is perfect alignment.

Last edited by marens (Yesterday 03:38:40)


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

Offline

#4747 Yesterday 09:41:52

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,759

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

marens wrote:

^ I've since edited the post, but you probably didn't see it.

marens wrote:

EDIT
This is a public forum and nothing is hidden, but let them at least try to find it themselves.

I'll try to explain it to you:
Some people from GitHub come here, copy/paste my fixes, and publish them as their own work on the script.

They don't leave a link to this forum anywhere, even though they found the solution here.
If they promoted BL forums, I wouldn't mind.

I always help everyone, but I don't want to help people like that.

P.S.
You decide what you will do.
I just asked you to think about it.

EDIT

unklar wrote:

I don't understand it because your name doesn't appear anywhere. It's @TBG's script, which some people, including me, have mangled, bent and straightened.

Ah.
We're not talking about the same accuweather script???
I meant the one that has been saved for the last 45 months without @TBG:

marens wrote:

My latest updates still work, and for those who use hourly forecast, I made my own version that also works (for now).

Anyway, you and I can be proud of our contributions here since @TBG left (about 45 months ago).

https://forums.bunsenlabs.org/viewtopic … 23#p146923
https://forums.bunsenlabs.org/viewtopic … 31#p128131
https://forums.bunsenlabs.org/viewtopic … 73#p132573
https://forums.bunsenlabs.org/viewtopic … 74#p132574
https://forums.bunsenlabs.org/viewtopic … 32#p145932
...

I'd love to see that accuweather script where my name doesn't appear anywhere.
Link?

I think you were a little hasty with your assumption. That's why I wrote: 'the accuweather script I use and the conkyrc'.

I activated the link again. You are welcome to take a look at the script.  big_smile

Offline

#4748 Yesterday 10:19:42

loutch
Member
Registered: 2015-12-12
Posts: 947

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

Hello

I don't understand, for me in my AccuWeather Conky and script, Marens is clearly mentioned.

${execi 600 sed -n '1p' $HOME/Accuweather_conky_script/marens_hourly/time}\

in the script

#### Marens Hourly

#Time
        cat $HOME/Accuweather_conky_script/hourly | grep -A 1 'class="date"' | grep 'div' | sed 's/^[ \t]*//' | sed -r 's/.{5}//' | sed -r 's/.{6}$//' > $HOME/Accuweather_conky_script/marens_hourly/time

& this

####### modifié par marens du forum Bounsenlabs pour les heures en juillet 2024 ############

oAZLr2Lo_t.png

@+

Last edited by loutch (Yesterday 10:23:48)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#4749 Yesterday 12:46:19

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,759

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

unklar wrote:

A attempt on wayland/wayfire with the accuweather-script

https://i.postimg.cc/mcvLKC8z/20251125-13h55m59s-grim.png  https://i.postimg.cc/FdXf3Mtw/20251125-13h54m09s-grim.png  Original https://i.postimg.cc/GHd5qtJ1/2023-03-21-16-43-48-scrot.png

-I excluded the sun and moon, as well as the hourly edition.
-So far I haven't been able to put a dark background behind the conky window. Neither with lua-scripte nor with the 'home remedies' from conky.

the accuweather script I used and the conkyrc
https://workupload.com/file/YadfSGJYepB

It also works with Conky's 'home remedies'.  tongue
20251127-13h28m29s-grim.png

this

conky.config = {
--https://forums.bunsenlabs.org/viewtopic.php?pid=1545#p1545
-- pkill -xf "conky -c /home/unklar/accuweather-wind/conkyrc9" &
-- realization, Script and Conky_V1.10  TeoBigusGeekus
-- accessories Sector11
-- modification, compilation unklar 15-10-2016,29-11-2019 and 25-11-2025(wayfire)
-- Create own window instead of using desktop (required in nautilus)
	background = true,
	own_window = true,
	own_window_type = 'override',--normal',
	own_window_transparent = false,--true,
	own_window_class = 'Conky',
	own_window_colour = '#000000',
	own_window_argb_visual = true,
	own_window_argb_value = 200,	
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
--out_to_wayland = true,

	double_buffer = true,

	use_spacer = 'right',

	update_interval = 1,

	minimum_width = 300, minimum_height = 300,-- w|h
	maximum_width = 300,

	override_utf8_locale = true,

	draw_shades = false,--true, --<
	default_shade_color = '#000000',--<

	draw_outline = true,
	draw_borders = false,

	use_xft = true,
	font = 'Arial:size=9',
	uppercase = false,

	stippled_borders = 3,

	border_inner_margin = 9,
	border_outer_margin = 0,
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	default_color = '#cbcbcb',
	color1 = '#ffe595',
	color2 = '#ff8c00',

--alignment = 'top_left',
--alignment = 'top_right',
alignment = 'middle_right',
--alignment = 'bottom_left',
--alignment = 'bottom_right',

	gap_x = 5,
	gap_y = 10,

	imlib_cache_size = 0,
...

Offline

#4750 Yesterday 15:32:00

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

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

@unklar

This is my first accuweather script fix and of course I found it in "your" script:
https://forums.bunsenlabs.org/viewtopic … 38#p125938

I won't waste time looking for more.
I also know why your Sun/Moon part doesn't work.

But the script is "yours" and my name is not mentioned anywhere and let it stay that way.


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

Offline

#4751 Yesterday 15:34:00

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

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

loutch wrote:

I don't understand, for me in my AccuWeather Conky and script, Marens is clearly mentioned.

Just look here and everything will be clearer to you:
https://forums.bunsenlabs.org/viewtopic … 31#p128131


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

Offline

#4752 Yesterday 16:31:31

loutch
Member
Registered: 2015-12-12
Posts: 947

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

Re

Oki-doki


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#4753 Yesterday 18:34:20

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

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

More fun details about my post here:
https://forums.bunsenlabs.org/viewtopic … 05#p147305

Just a few posts before my first fix to the accuweather script, some people reported that the script was not working.
Who are these people?
@weatherman, @morfik and @UNKLAR.

@morfik's screenshot from that time shows that the current conditions section is unusable.

@unklar, you copied/pasted my fix and now (about three years later) you say:

unklar wrote:

I don't understand it because your name doesn't appear anywhere. It's @TBG's script, which some people, including me, have mangled, bent and straightened.

If anyone has a list of people who have worked on saving the accuweather script for the last 45 months (besides @il.harun and me), please post it.
Just one link is enough.

Thanks in advance.

Last edited by marens (Yesterday 23:14:00)


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

Offline

#4754 Yesterday 19:36:44

loutch
Member
Registered: 2015-12-12
Posts: 947

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

Re


HÉ LES GARS ARRÊTE ÇA , LÀ ÇA PART EN CACAHUÈTES.


@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#4755 Yesterday 23:16:40

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

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

^ Why, @loutch?

We just exchanged opinions and arguments.
If we disagree, that's okay.

P.S.
My last post has been slightly edited.
I can understand you, @loutch.


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

Offline

#4756 Today 00:24:51

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

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

@loutch

I looked at your screenshot here:
https://imgbox.com/oAZLr2Lo

This line (script) at the beginning is unnecessary:

date +%T > $HOME/Accuweather_conky_script/actualization

It just wastes resources.

It is much better to use the same command in conky:

${texeci 600 date +%T}

You can now also remove the file ~/Accuweather_conky_script/actualization.


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

Offline

#4757 Today 07:21:41

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

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

marens wrote:

@asqwerth

Try this in tad-conky (High and Low part).....

The cut  or "fmt -w XX"  commands are no longer needed.
Everything is done in one line of code, the output is the same as on the website and the result is perfect alignment.

Interesting code.  It works on my 2-day weather condition text (with ${goto xx} command removed for that line and N set to 14).  However, when I tried both this code and the fmt command on the "now" file for the current weather (I was using | cut ....) , the first word was not displayed.


marens wrote:

...
When you've tested your icons enough and set everything right, post them here:
https://workupload.com

Just compress the folder tad-icons2 as .tar.xz .....


Meanwhile, for anyone who's interested, here is a link to the Weather Underground icons (with some modifications and additions) renamed to work with the T_A_D script.

https://workupload.com/file/yKC7X3j5J4v

Disclaimer and notes:
1. original icons were included as part of the Weather Underground script by TBG.
2. previously I had modified a few icons so I could use the set with openweathermap conkies.  For T_A_D, I modified a few more.  The modded icons are pretty rough when magnified as my GIMP skills are limited.  However, at the normal size of weather conky icons, they should be passable.
3. I borrowed a few icons from other places. For example, wt-10 and 32 are from the original T_A_D icons

You could replace the icons in the "tad-icons" subdirectory with these icons, but I prefer to rename that sub-directory as "tad-icons-old" and then rename the WU icon subdirectory as "tad-icons".  That way I can switch between the 2 icon sets.

Offline

#4758 Today 08:06:09

loutch
Member
Registered: 2015-12-12
Posts: 947

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

Hello

marens wrote:

^ Why, @loutch?

We just exchanged opinions and arguments.
If we disagree, that's okay.

P.S.
My last post has been slightly edited.
I can understand you, @loutch.


Oki-doki .

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#4759 Today 14:18:40

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

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

@asqwerth

Very nice.

I added your icons as tad-icons-WU and modified the TAD script (in 3 places).
The result is excellent.

tad-WU.png

asqwert wrote:

However, when I tried both this code and the fmt command on the "now" file for the current weather (I was using | cut ....) , the first word was not displayed.

Yes.
A small code change is required.

Terminal:

$ echo 'Partly sunny. Light rain' | sed -e 's/\./\n/g' | sed -e 's/^[ \t]*//g' | { N=24; perl -pe "s/^/' 'x$N/e" ; } | sed 's/.*/&./'
                        Partly sunny.
                        Light rain.

Conky:

${execpi 90 sed -n '4p' $HOME/time_and_date_conky_script/now | sed -e 's/\./\n/g' | sed -e 's/^[ \t]*//g' | { N=24; perl -pe "s/^/' 'x$N/e" ; } | sed 's/.*/&./'}

I like to show Saturday and Sunday in red.
This is what it looks like in my tad-conky (day_1):

${if_match "${execi 600 sed -n '1p' $HOME/time_and_date_conky_script/date | awk '{print $1}'}" == "Sat"}${color ff8080}\
${else}\
${if_match "${execi 600 sed -n '1p' $HOME/time_and_date_conky_script/date | awk '{print $1}'}" == "Sun"}${color ff8080}\
${else}${color 48bcff}${endif}${endif}\
${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/date}${color}

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

Offline

Board footer

Powered by FluxBB