You are not logged in.

#4581 2025-03-13 10:25:43

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)

GioD wrote:

...Aber ihr jungen Dinger wisst ja eh alles besser…

Woher weißt du, wie 'jung' die hier sind?  big_smile
How do you know how 'young' they are here?
------------------
Thank you very much, @marens.
I lost the ° sign when I moved house. Now I have found it again in @il.harun's script.  wink

P3OWOM4t.png

Offline

#4582 2025-03-13 10:48:20

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

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

I have divided the Currently section into two parts.
Try:

${goto 45}${voffset -15}Currently:
${goto 45}${execpi 90 sed -n '1p' $HOME/Accuweather_RSS_conky_script/weather | awk '{$NF="";sub(/[ \t]+$/,"")}1' | awk '{$1=""; print $0}' | awk '{print substr($0,2)}' | cut -c1-30} ${execpi 90 sed -n '1p' $HOME/Accuweather_RSS_conky_script/weather | awk 'NF>1{print $NF}' | sed 's/C/°C/g'}

Just set ${voffset -15} because I'm using Forecast_Images_2016.
This will give you a ° sign in the current section.


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

Offline

#4583 2025-03-20 15:34:50

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

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

Moon inside Accuweather_conky_script

We already have a great Moongiant_conky_script made by @TBG.
I have managed (for now) to maintain it and even improve it.

The script now shows what the moon looks like in the sky in real time for your location.
In my accuweather conky I only use the 0.png image:

accuweather.png

I tried to look for that image elsewhere because I don't need the rest of the data for my accuweather conky.
I created a new script that works great.

1) Inside Accuweather_conky_script create a  moon  folder
2) Open the moon folder and create a moon file (script):

#!/usr/bin/env bash


## Important:

# Visit page: https://www.timeanddate.com/astronomy/france/paris and find your country and city.
# Just type in search field your City Name and click on PopUpMenu.
# Don't forget to replace the address with your own (instead of Paris, France)
# Your address format must be the same as below

    address="https://www.timeanddate.com/astronomy/france/paris"

    image_address=$(curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' "$address" | grep -o '[^ ]*src="/scripts/moon.php?i=[^ ]*' | awk -F'"' '{print $2}' | sed 's/amp;//g')
        
## Control
# echo $image_address    


#### Moon Image

## Download    
    curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -o $HOME/Accuweather_conky_script/moon/moon.png "https://www.timeanddate.com$image_address"

## Yellow Moon    
    convert $HOME/Accuweather_conky_script/moon/moon.png +level-colors ,#d4c240 $HOME/Accuweather_conky_script/moon/moon2.png

3) At the beginning of the script you have instructions on how to change the address (replace Paris, France with your own)
4) Make the script executable.

Done.

Test the script (terminal):

$ bash $HOME/Accuweather_conky_script/moon/moon

Did you get this:

moon.png

All that's left is to run the script in your accuweather conky and use the moon image:

${texeci 3600 bash $HOME/Accuweather_conky_script/moon/moon}

EDIT
Added  User-Agent: Mozilla  for  curl  commands.

Last edited by marens (2025-03-20 23:24:40)


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

Offline

#4584 2025-03-25 15:10:20

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

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

@loutch

Linux Mint Forums (Logansfury) wrote:

Hey Loutch are you around?

I checked out the data available from the website data scrape, and I see that there is an hourly precipitation chance percentage displayed over a 12 hour period.

https://forums.linuxmint.com/viewtopic. … 4#p2609834

I solved the precipitation (hourly) two years ago:
https://forums.bunsenlabs.org/viewtopic … 43#p126543

At that time, I had not yet created my hourly forecast plugin.
Find the line:

#RealFeel
        cat $HOME/Accuweather_conky_script/hourly | grep -A 1 'RealFeel®' | grep '°' | sed 's/^[ \t]*//' | sed -r 's/.{6}$//' > $HOME/Accuweather_conky_script/marens_hourly/realfeel

Add below:

#Precipitation
        cat $HOME/Accuweather_conky_script/hourly | grep -A 2 'class="precip"' | grep '%' | sed 's/^[ \t]*//' | sed 10q > $HOME/Accuweather_conky_script/marens_hourly/precipitation

You will get  ~/Accuweather_conky_script/marens_hourly/precipitation  file with precipitation for the next 10 hours.


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

Offline

#4585 2025-03-25 17:24:20

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

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

#### Marens hourly

The script was updated today.
https://forums.bunsenlabs.org/viewtopic … 30#p128130


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

Offline

#4586 2025-04-01 14:47:52

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

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

Hello

just for fun .

Nz82AbVD_t.png


@+


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

#4587 2025-04-18 15:15:59

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

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

Hello

I think i have it.

V345WMjy_t.png



@+


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

#4588 2025-05-09 00:08:39

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

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

Gis Weather

I love it when there are no posts here for a long time.
That's how I know all of @TBG's scripts are working fine.

However, Gis Weather is still my favorite weather app and has been on my desktop for about 10 years.
https://github.com/RingOV/gis-weather

I added the GIS logo (bottom right) a long time ago for those who use the seven-day forecast:
https://forums.bunsenlabs.org/viewtopic … 63#p128763

I modified it a bit tonight and changed the position slightly.

New gis_logo.png:
gis-logo.png

Notes *
Download the logo and rename it to gis_logo.png.
Copy/paste the logo into the Gis Weather theme you are using.

That part now looks like this in the gis-weather.py  file:

                    # Marens Settings - Add Gis Weather Logo Bottom Right
                    self.draw_scaled_image(cr, x0+180, y0+128, self.find_icon('gis_logo'), 65, 65)
                    # End Marens Settings

gis-weather.png


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

Offline

#4589 2025-05-10 00:40:50

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

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

This is how Gis Weather looks on my desktop now:

gis-weather.png

I made a lot of changes that you can only find here on the BL forums.

Functional ones are especially important because they don't exist in the original version of Gis Weather:

  • CLM icon when there is no wind

  • Moon block

  • Real feel (temperature)

  • Gis logo

There are more here:
https://forums.bunsenlabs.org/viewtopic … 23#p128723

I really don't need a better weather app.

Of course, @TBG's weather scripts are also great because they allow for personalization:
https://forums.bunsenlabs.org/viewtopic … 68#p134968

Last edited by marens (2025-05-10 01:48:40)


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

Offline

#4590 2025-05-31 04:00:20

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

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

Gis Weather

Another problem with the wrong date.
Gismeteo developers have changed the code again.

gis1.png

Open ~/Downloads/gis-weather-master/services/gismeteo.py  and replace:

    # day of week, date
    day = re.findall('<day.*? date="(.*?)"', source)[1:]
    # day.pop(0)
    for i in range(len(day)):
        dt1 = datetime.strptime(day[i], '%Y-%m-%d')
        day[i] = dt1.strftime('%a')
    date = re.findall('<day.*? date=".*?-(.*?)"', source)[1:]
    # date.pop(0)
    for i in range(len(date)):
        s = date[i].split('-')

With:

   # day of week, date
    day = re.findall('<day.*? date="(.*?)"', source)
    # day.pop(0)
    for i in range(len(day)):
        dt1 = datetime.strptime(day[i], '%Y-%m-%d')
        day[i] = dt1.strftime('%a')
    date = re.findall('<day.*? date=".*?-(.*?)"', source)
    # date.pop(0)
    for i in range(len(date)):
        s = date[i].split('-')
        date[i] = s[1]+'.'+s[0]

gis2.png

Last edited by marens (2025-05-31 04:08:40)


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

Offline

#4591 2025-06-03 13:50:40

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

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

Gis Weather

OK.
After a few days of testing, I can say that now everything is fine.

Gismeteo developers have improved the service.
Previously, data was updated every few hours.
Now the data is updated on the server every hour.

You can easily track this by enabling  Menu > Preferences > View > Show weather retrieval time.
Look at the top right corner of the Gis Weather window.

gis-weather.png

This helps the night icons appear immediately after sunset and the first update after that.

So far the data has been very similar to that in AccuWeather conky, but I believe it will be even better now.

accuweather.png

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


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

Offline

#4592 2025-06-03 16:00:34

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)

Tried again on wayland/labwc.

@marens, am I actually up to date with this version?  sad

20250603-17h52m55s-grim.png

Offline

#4593 2025-06-03 17:16:39

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

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

^ Yes, there is no new release.

gis-about.png

The author has not yet fixed the Gis Weather.
Last time it took five months for a new release.

I fixed it a few days ago.
https://forums.bunsenlabs.org/viewtopic … 36#p143536

I hope you find a way to remove the window title.
Sorry, I don't use Wayland/Labwc.

EDIT

Open Terminal and try:

env GDK_BACKEND=x11 python3 "/home/unklar/Downloads/gis-weather-master/gis-weather.py"

Note *
I assumed your user_name was  unklar  and the path to  gis-weather.py.

If it works, create the file ~/.local/share/applications/gis-weather.desktop:

[Desktop Entry]
Name=Gis Weather
Exec=env GDK_BACKEND=x11 python3 "/home/unklar/Downloads/gis-weather-master/gis-weather.py"
Type=Application
Terminal=false
Icon=/home/unklar/Downloads/gis-weather-master/icon.png
Comment=Weather widget

Note *
Please check your user_name and path again.

You should now have Gis Weather in the menu.

Last edited by marens (2025-06-03 23:32:00)


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

Offline

#4594 2025-06-03 19:00:13

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)

Thank you!

I had to adjust the path a bit  wink  and was surprised myself that it works with wayland and fuzzel.

env GDK_BACKEND=wayland python3 "/home/unklar/Öffentlich/gis-weather-master/gis-weather.py"

20250603-20h47m35s-grim.png
At the moment I am still looking for the packages
libvrsg
libindicator3
in debian, because they are 'missing' in the terminal of gis-weather.  big_smile

Last edited by unklar (2025-06-03 19:04:13)

Offline

#4595 2025-06-03 22:56:39

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

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

unklar wrote:

Thank you!

I had to adjust the path a bit  wink  and was surprised myself that it works with wayland and fuzzel.

env GDK_BACKEND=wayland python3 "/home/unklar/Öffentlich/gis-weather-master/gis-weather.py"

https://i.postimg.cc/gwr29k4Y/20250603-20h47m35s-grim.png
At the moment I am still looking for the packages
libvrsg
libindicator3
in debian, because they are 'missing' in the terminal of gis-weather.  big_smile

^ Nice.
It looks very good, but I like it without the window title (decoration buttons).
A right click is enough to open a Menu where you have the option to close it if necessary or to adjust everything else.

As far as I can see, the date for the next 3 days is wrong.
Did you fix this?
https://forums.bunsenlabs.org/viewtopic … 36#p143536

You can also see dependencies here:
https://github.com/RingOV/gis-weather#dependencies

Good luck!

EDIT
Now I see in your screenshot that the current weather is +24°C  (top middle).
I assume it's OpenWeather.
It never works properly (for my location).  big_smile

Last edited by marens (2025-06-03 23:48:40)


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

Offline

#4596 2025-06-04 15:22:01

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)

marens wrote:

^ Nice.
It looks very good, but I like it without the window title (decoration buttons).
A right click is enough to open a Menu where you have the option to close it if necessary or to adjust everything else.

A solution is still pending...

As far as I can see, the date for the next 3 days is wrong.
Did you fix this?
https://forums.bunsenlabs.org/viewtopic … 36#p143536

I don't see a wrong date.

You can also see dependencies here:
https://github.com/RingOV/gis-weather#dependencies

It was just that gir1.2-rsvg-2.0 was not installed. Thank you very much.

EDIT
Now I see in your screenshot that the current weather is +24°C  (top middle).
I assume it's OpenWeather.
It never works properly (for my location).  big_smile

The above is chubin's wttr.in  smile

Offline

#4597 2025-06-04 16:48:00

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

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

unklar wrote:

I don't see a wrong date.

Yesterday was Tuesday 03.06.
You should get the forecast for the next 3 days: 04.06, 05.06 and 06.06.
Instead you have 05.06, 06.06 and 07.06.

gis-weather.png

I think it's clearer now.  smile


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

Offline

#4598 2025-06-04 17:22:09

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 are right!
I sometimes lose track of time too (when you're always on vacation  tongue )
Corrected it. Thank you very much!

Offline

#4599 2025-06-05 14:04:20

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

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

unklar wrote:
marens wrote:

^ Nice.
It looks very good, but I like it without the window title (decoration buttons).
A right click is enough to open a Menu where you have the option to close it if necessary or to adjust everything else.

A solution is still pending...

I don't use Labwc, but maybe this will help you:
https://eu90h.com/disabling-window-deco … labwc.html

Open ~/.config/labwc/rc.xml  file and try:

<windowRules>
  <windowRule identifier="gis-weather.py" serverDecoration="no" />
</windowRules>

or:

<windowRules>
  <windowRule title="gis-weather.py" serverDecoration="no" />
</windowRules>

Note *
I can't test that.


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

Offline

#4600 2025-06-05 17:36:21

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)

smile

Unfortunately, this does not work here.  sad
What works is to select 'Decorations' in the right-click menu of the window title.

Offline

Board footer

Powered by FluxBB