You are not logged in.

#4601 2025-06-05 23:44:40

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

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

^ OK, @unklar.

I tried to help even though I don't use Labwc (and Wayland).
I don't know why it doesn't work, but I have some guesses.

1) The rc.xml file is located inside the ~/.config folder and may require a LogOut/LogIn.

2) Also not sure about  ' identifier="gis-weather.py"  '  (or ' title="gis-weather.py"  ').

* When using Wayland, you can probably get information about open windows similar to what I do with the "xwininfo" command, but my OS is different.

unklar wrote:

What works is to select 'Decorations' in the right-click menu of the window title.

It's great if you can disable the decoration for a specific application (Gis Weather).  smile

Off topic.
I've been using devilspie2 for years for things like this.
I can easily adjust geometry, opacity, position, decoration... for each window (application) separately.
https://github.com/dsalt/devilspie2

Last edited by marens (2025-06-05 23:50:19)


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

Offline

#4602 2025-06-06 09:39:24

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

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

You can be quite stubborn and I thank you very much for your thoughtfulness and help. wink

Of course I have taken 1) and 2) into account.
I also tried something like this to make gis-weather only appear on workspace 1:

</windowRule>
    <windowRule identifier="gis-weather.py">
      <action name="SendToDesktop" to="F1" wrap="yes" serverDecoration="no" />
    </windowRule>

plus, different variants.
The nice thing about labwc is that the rc.xml offers me 'Reconfigure' in both a right-click and left-click menu, making a logout/login obsolete.

In this rc.xml there is also this section:

  <core>
    <decoration>client</decoration>
  </core>

which appears to be responsible for the above 'Decorations' and affects all windows.

devilspie2 is available as a package in unstable.
However, it is not supposed to work in wayland and I know that wayland already has a package for it (I just need to remember it). I am in no hurry. This desktop was originally installed from siduction-xfce-wayland. Which was/is a fiasco and I gradually set up labwc.  smile

Last edited by unklar (2025-06-06 09:39:47)

Offline

#4603 2025-06-06 12:28:40

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

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

unklar wrote:

However, it is not supposed to work in wayland and I know that wayland already has a package for it (I just need to remember it).

That's true.
Marked off-topic for this reason.

Author:

dsalt wrote:

It may work for anything which needs X, but beyond that – well, it'd need to be ported to wayland, for a start; and that's not something which I've looked into.

https://github.com/dsalt/devilspie2/issues/7


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

Offline

#4604 2025-06-06 14:40:50

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

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

@unklar

Here's a little surprise for you.

Download this file:
https://workupload.com/file/LvYRVBhas5K

Then > Extract Here.
You will get a folder ~/Downloads/mozilla_bl_unklar

Open mozilla_bl_unklar Folder > Right click on index_gif.html (or index.html) > Open With Firefox Web Browser.

You will receive the weather forecast for your location in German.

If you hover over the icons, you will get a description of the weather forecast (like a tooltip) in German.
If you click on the widget, you will get a detailed weather forecast (hourly and daily).

If you like it, add it to your Firefox bookmarks.

Enjoy!


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

Offline

#4605 2025-06-06 16:02:14

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

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

Brilliant!
Very cool, thanks for that
Can you see the difference?
20250606-17h41m26s-grim.png
To @lowrider I had written in the neighboring thread, it's not the principality  tongue

You still managed the surprise!  smile

Offline

#4606 2025-06-06 17:08:20

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

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

^ I've already talked about it:

marens wrote:

It's no coincidence that Accuweather and Gismeteo are among the Top 3 weather websites:
https://www.similarweb.com/top-websites … on/weather

The weather forecast was obtained from the website forecast7.com, but the source is OpenWeather.

EDIT
Hahaha...
Now I saw this and I have to edit the post:

unklar wrote:

To @lowrider I had written in the neighboring thread, it's not the principality.

Open the file ~/Downloads/mozilla_bl_unklar/readme.md and you will see how to change the location.

EDIT 2
This is the closest I could find:

Open the index.html  and index_gif.html  files with a text editor and replace:

href="https://forecast7.com/de/47d179d56/liechtenstein/"

with:

href="https://forecast7.com/de/50d8312d92/chemnitz/"

I tried Zwickau instead of Chemnitz, but I couldn't find it.

Then replace:

data-label_1="Liechtenstein"

with:

data-label_1="Lichtenstein"

Better?

EDIT 3
I finally found it here:
https://weatherwidget.io

href="https://forecast7.com/de/50d7512d63/lichtenstein/"

@unklar, you owe me a big mug of German beer.  big_smile

Last edited by marens (2025-06-07 00:04:20)


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

Offline

#4607 2025-06-07 13:11:59

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

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

done

20250607-14h49m28s-grim.png

https://postimg.cc/5XbkMS9T
Two boxes of 10 liters each must be enough.
Can you tell me where the delivery should be made?  connie_mini_dance-2.gif

Offline

#4608 2025-06-07 13:28:55

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

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

It can be even more precise (with OpenWeatherMap and an API key)  big_smile
20250607-15h25m26s-grim.png

Offline

#4609 2025-06-07 13:40:21

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

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

unklar wrote:

done

https://i.postimg.cc/2bnN3PXg/20250607-14h49m28s-grim.png

https://postimg.cc/5XbkMS9T
Two boxes of 10 liters each must be enough.
Can you tell me where the delivery should be made?  https://www.en.kolobok.us/smiles/artist … ance-2.gif

If you click on the weather widget, you will get the delivery location:

mozilla-bunsenlabs1.png  mozilla-bunsenlabs2.png

Yes.
You have my permission to receive the package and evaluate the quality of the beer.
I think two 10 liter boxes are enough for testing.  big_smile


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

Offline

#4610 2025-06-08 13:50:20

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

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

unklar wrote:

It can be even more precise (with OpenWeatherMap and an API key)  big_smile
https://i.postimg.cc/ZCjS3RGJ/20250607-15h25m26s-grim.png

Let's check if this is true.

marens wrote:

The weather forecast was obtained from the website forecast7.com, but the source is OpenWeather.

https://forums.bunsenlabs.org/viewtopic … 59#p143759

openweather.png

wiki wrote:

OpenWeatherMap is an online service, owned by OpenWeather Ltd, that provides global weather data via API, including current weather data, forecasts, nowcasts, and historical weather data.

https://en.wikipedia.org/wiki/OpenWeatherMap

In essence, you can think of OpenWeather as the parent company, and OpenWeatherMap as one of its main services. OpenWeatherMap is the primary way to access weather data from the company.

Conclusion:
In this case, Gis Weather (with OpenWeatherMap and API key) and my Mozilla Bunsenlabs page use the same source - OpenWeather/OpenWeatherMap.
There is no difference except that I don't need an API key because I use forecast7.com as an intermediary.


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

Offline

#4611 2025-06-10 15:18:41

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

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

Gis Weather

The author (@RingOV - GitHub) made an update 2 days ago:
https://github.com/RingOV/gis-weather

He did it in a similar way to me here:
https://forums.bunsenlabs.org/viewtopic … 36#p143536

However, one line of my code is not needed even though the result is the same.

Open ~/Downloads/gis-weather-master/services/gismeteo.py  and remove the line:

        date[i] = s[1]+'.'+s[0]

Then, on the same day, he made many changes to the files  gismeteo.py  and  accuweather.py.
I was surprised because I know AccuWeather has not been supported for a long time.
I tried and nothing changed, Accuweather is still not there, but my Gis logo in the bottom right corner is gone.

The advice for those using my settings is to ignore this and simply change the version.
Open ~/Downloads/gis-weather-master/gis-weather.py and change line 4 to:

v = '0.8.4.25'

Done.

gis-weather.png

EDIT
You may not have known that you can check the weather forecast displayed by  Gis Weather  by visiting  meteofor.com  (a fork of Gismeteo)  and finding your location.

Just compare data for NOW and 7-DAY weather forecast.

Last edited by marens (2025-06-10 17:14:20)


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

Offline

#4612 2025-07-21 15:05:20

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

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

AccuWeather Conky's  -  Alert

It's very hot here right now.

now1.png

I set it a long time ago to display the current temperature in orange  (30-34°C) and red  for temperatures above 35°C:

${font Ubuntu:size=22}${goto 170}\
${color FEDF08}${if_match ${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}>=30}${color orange}\
${if_match ${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}>=35}${color FF4040}\
${else}${endif}${endif}\
${texeci 600 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}°

This is a simulation*  for other cases:

now2.png  now3.png

Here you have something similar for the UV Index:
https://forums.bunsenlabs.org/viewtopic … 24#p126124

Simulation *

uv1.png  uv2.png


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

Offline

#4613 2025-07-22 07:47:22

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

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

Hello

Great .

@+


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

Offline

#4614 2025-07-22 14:14:50

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

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

^ Thanks, @loutch.

Ten years ago, we didn't need weather alerts (or much less).
Unfortunately, it's different now.

Anyway, here's another one.
I first saw what wind gusts of around 200 km/h looked like 3 years ago.

So now the start of my AccuWeather Conky looks like this:

${font Ubuntu:size=12}${color1}  WEATHER\
${font Ubuntu:size=10:italic}${goto 188}\
${if_match ${texeci 600 sed -n '17p' $HOME/Accuweather_conky_script/curr_cond|awk '{print $1}'}>=50}${blink ${color 0098FF}Wind Gusts:  ${color FF6060}${texeci 600 sed -n '17p' $HOME/Accuweather_conky_script/curr_cond}}\
${image $HOME/Accuweather_conky_script/wind-alert.png -p 165,9 -s 14x14}\
${endif}

When the Wind Gusts  are greater than 50 km/h, a blinking alert appears:

Simulation *
weather-alert.png

If you are interested, you can download the image wind-alert.png  here:

wind-alert.png


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

Offline

#4615 2025-07-24 14:40:20

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

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

AccuWeather Conky's  -  Alert

Let's finish with the alerts.

We all know that the original current temperature low/high  icons are ugly, but you can easily replace them.
I already posted this:
https://forums.bunsenlabs.org/viewtopic … 27#p135527

It's good to have all the alerts in same page.

AccuWeather Conky:

accuweather.png

Gis Weather  shows almost the same:

gisweather.png

Now I'm waiting for Sunday because it's really hot here.  smile


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

Offline

#4616 2025-08-19 15:34:20

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

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

AccuWeather conky script

AccuWeather developers have made a small change to the UV Index.
Now we have a decimal number and a description inside brackets '(...)'.

It is line 9 in the file curr_cond:

1.6 (Low)

Some people might like the new style, but I don't.
The "fix" does not require changing the accuweather  script.

$ sed -n '9p' $HOME/Accuweather_conky_script/curr_cond
1.6 (Low)

$ sed -n '9p' $HOME/Accuweather_conky_script/curr_cond | awk '{print int($1+0.5), $2}' | sed 's/(//' | sed 's/)//'
2 Low

As you can see in the second command I rounded the decimal number and removed the brackets.

Conky (UV INDEX):

${texeci 600 sed -n '9p' $HOME/Accuweather_conky_script/curr_cond | awk '{print int($1+0.5), $2}' | sed 's/(//' | sed 's/)//'}

Note *
Those using my colored UV Index have the updated code here:
https://forums.bunsenlabs.org/viewtopic … 24#p126124


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

Offline

#4617 2025-08-21 02:00:40

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

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

AccuWeather conky script

Another "cosmetic" change.
At night, the UV Index  does not exist and I think the " - " sign is a better choice than " 0 ".

Night:
uv-night.png

Day (Simulation):
uv-day.png

UV INDEX:  ${color}\
${if_match "${texeci 600 sed -n '9p' $HOME/Accuweather_conky_script/curr_cond | awk '{print $2}'}" == ""}-\
${else}\
${if_match "${texeci 600 sed -n '9p' $HOME/Accuweather_conky_script/curr_cond | awk '{print $2}'}" != ""}\
${texeci 600 sed -n '9p' $HOME/Accuweather_conky_script/curr_cond | awk '{print int($1+0.5), $2}' | sed 's/(//' | sed 's/)//'}\
${endif}${endif}

I set the colored UV Index the same way:
https://forums.bunsenlabs.org/viewtopic … 24#p126124

Simulation *
uv-colored.png


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

Offline

Board footer

Powered by FluxBB