You are not logged in.

#4341 2023-08-31 13:24:08

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

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

MoonGiant conky script

It doesn't matter if you use my script plugin or not.
It seems that moongiant developers also decided to play with us.
Run your moongiant conky.
The full moon image is missing?

Why?

The Blue Moon phenomenon happened.
https://www.timeanddate.com/astronomy/m … -moon.html

timeanddate wrote:

The next monthly Blue Moon is on August 30/31, 2023.
The next seasonal Blue Moon takes place on August 19/20, 2024.

Ok, but how to fix it in moongiant conky?

Open the moongiant file and find this line:

phase=$(sed -n 21p $HOME/Moongiant_conky_script/raw|sed 's/ //')

Add above:

#### Marens Settings
sed -i '/<a /c\Blue Moon' $HOME/Moongiant_conky_script/raw
#### END Marens Settings

phase=$(sed -n 21p $HOME/Moongiant_conky_script/raw|sed 's/ //')

Then:
Download moon_day_blue.png image.
Rigt click on image > Save Image As > moon_day_blue.png (be careful browser will offer moon-day-blue.png).

moon-day-blue.png

Copy/Paste moon_day_blue.png in moon_icons_north (south).

Done.

Restart moongiant conky.
Blue moon image is here?

blue-moon.png      weather-moon.png


P.S.
You don't care when the Blue Moon is and you want your conky to work like before?
OK.

Right click on moon_day_full.png in moongiants_icons_north (south).
Copy and paste into the same folder.
Rename copy to moon_day_blue.png.

Last edited by marens (2023-09-02 13:14:05)


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

Offline

#4342 2023-09-13 15:57:45

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

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

Gis Weather - Add MoonRise/MoonSet/MoonDuration Block

Gismeteo and OpenWeatherMap do not support this block, but we have that data in accuweather conky.
I managed to find a way to use that data in Gis Weather.
If you don't use accuweather conky just skip the rest of the post.

This guide is for those who followed my advice and use Gis Weather from the Downloads folder (without installing it).
https://forums.bunsenlabs.org/viewtopic … 81#p126781

marens wrote:

Why is that good?
It is always better to 'play' with the settings in ~/Downloads/gis-weather-master, rather than in the system folder.


Important:
Make a copy of the gis-weather.py file.

First, check if Block Moonrise is enabled.
Right click on Gis Weather window > Preferences > View tab (Block Moonrise Show checked?)

Open ~/Downloads/gis-weather-master/gis-weather.py file.
Find the lines and add '#' to the beginning:

#if moonrise != '?' and moonset != '?':
#'☾↗  '+moonrise+'   ↘☾ '+moonset+'   ⌚ '+moon_duration,

Add a blank line below the second line and save text editor.
The blank line (for me) is number 1107, it will be different for you.
It should look like this, see screenshot:

text-editor.png

Then download my moon script:
https://workupload.com/file/eQ7HWSxYfJ7

Open Downloads folder, right click on moon.tar.xz > Extract Here.
Copy new moon file and paste in ~/Downloads/gis-weather-master folder.
Open my moon script and replace number (1107) with yours code (number).
 
Done.


Testing

Disable Gis Weather.
Start accuweather conky to refresh the data.
From my conky:

accuweather-moon.png


Open terminal and run my script once:

bash $HOME/Downloads/gis-weather-master/moon

Start Gis Weather again.
MoonRise/MoonSet/MoonDuration Block is here?

moonrise-moonset.png


This way you can always refresh the MoonRise/MoonSet/MoonDuration Block in Gis Weather.

EDIT
Fix when value is 'N/A' (moon file):

# Add New Line 1107 in gis-weather.py
#sed -i "1107s/^/                        $phrase\n/" $HOME/Downloads/gis-weather-master/gis-weather.py
# *Note: Fix when value is 'N/A' (Delimiter '%' instead slash '/')
sed -i "1107s%^%                        $phrase\n%" $HOME/Downloads/gis-weather-master/gis-weather.py

EDIT 2
Accuweather developers have changed the moonrise/moonset/moonduration section.
The accuweather script needs to be fixed.

Replace:

		time_24=$hours_24:$minutes
		if [[ $1 != "N/A" ]]; then
			echo $time_24
		elif [[ $1 == "N/A" ]]; then
			echo "N/A"

with:

               time_24=$hours_24:$minutes
		if [[ $1 != "--" ]]; then
			echo $time_24
		elif [[ $1 == "--" ]]; then
			echo "--"

Replace:

		if [[ $(sed -n 4p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" && $(sed -n 5p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" && $(sed -n 6p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" && $(sed -n 7p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" ]]; then

with:

		if [[ $(sed -n 4p $HOME/Accuweather_conky_script/curr_cond_temp1) != "--" && $(sed -n 5p $HOME/Accuweather_conky_script/curr_cond_temp1) != "--" && $(sed -n 6p $HOME/Accuweather_conky_script/curr_cond_temp1) != "--" && $(sed -n 7p $HOME/Accuweather_conky_script/curr_cond_temp1) != "--" ]]; then

After:

			sed -i '19s/^/0/' $HOME/Accuweather_conky_script/curr_cond
	fi

add:

        sed -i 's/--/N\/A/g' $HOME/Accuweather_conky_script/curr_cond

Last edited by marens (2023-11-13 17:57:09)


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

Offline

#4343 2023-09-15 13:26:11

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

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

MoonGiant

This is what happened last night:

moon-unavailable1.png

I can't call it a mistake.
@Teo foresaw this possibility.

			echo "Unavailable"

           
But my conky doesn't look good without rise.jpg background image.
I 'fixed it' easy.
I added below that line in moongiant script:

                       echo "Unavailable"
                #### Marens Settings - Add Image for Unavailble Option
		       cp $HOME/Moongiant_conky_script/riseicons/rise_FullMoon.jpg $HOME/Moongiant_conky_script/rise.jpg
		 #### END Marens Settings

Now it looks like this when the 'Unavailable' case is present:

moon-unavailable2.png

Of course, it was short lived, now everything is fine:

moon-normal.png


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

Offline

#4344 2023-09-18 16:04:11

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

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

Gis Weather - Colored Wind Direction Indicators (W, N, E, S)


Would you like your Block Wind to look like this?

wind-indicators.png

If the answer is yes open ~/Downloads/gis-weather-master/gis-weather.py file.

Find line:

                            self.draw_text(cr, NS[i//2], int(x0+r*math.cos(i*0.25*math.pi+angel_rad)), int(y0+r*math.sin(i*0.25*math.pi+angel_rad)), font+' Bold', font_NS, 10, Pango.Alignment.LEFT)

Replace with:

                            #self.draw_text(cr, NS[i//2], int(x0+r*math.cos(i*0.25*math.pi+angel_rad)), int(y0+r*math.sin(i*0.25*math.pi+angel_rad)), font+' Bold', font_NS, 10, Pango.Alignment.LEFT)
                            
                    # Marens Settings - Added Wind Indicators Color
                            self.draw_text(cr, NS[i//2], int(x0+r*math.cos(i*0.25*math.pi+angel_rad)), int(y0+r*math.sin(i*0.25*math.pi+angel_rad)), font+' Bold', font_NS, 10, Pango.Alignment.LEFT, color=(220.0, 180.0, 0.0, 0.4))
                    # END Marens Settings

Wind direction indicator 'W' (West) is too width, so let's move the wind icon a little to the right.
Find lines:

                if icon_wind_now[0] != 'None': 
                    self.draw_scaled_image(cr, x0-a/2+font_NS/2, y0-a/2+3+font_NS/2, self.find_icon('wind'), a, a, icon_wind_now[0]+angel)

Replace with:

                if icon_wind_now[0] != 'None': 
                    #self.draw_scaled_image(cr, x0-a/2+font_NS/2, y0-a/2+3+font_NS/2, self.find_icon('wind'), a, a, icon_wind_now[0]+angel)
                    
                    # Marens Settings - Move Wind Icon Right
                    self.draw_scaled_image(cr, x0-a/2.15+font_NS/2, y0-a/2+3+font_NS/2, self.find_icon('wind'), a, a, icon_wind_now[0]+angel)
                    # End Marens Settings

If you have previously added my CLM icon:

                # Marens Settings - Add Wind Calm Icon        
                if icon_wind_now[0] == 'None': 
                    self.draw_scaled_image(cr, x0-a/2+font_NS/2, y0-a/2+3+font_NS/2, self.find_icon('CLM'), a, a)
                # End Marens Settings

Replace with:

                # Marens Settings - Add Wind Calm Icon        
                if icon_wind_now[0] == 'None': 
                    self.draw_scaled_image(cr, x0-a/2.15+font_NS/2, y0-a/2+3+font_NS/2, self.find_icon('CLM'), a, a)
                # End Marens Settings

Done.


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

Offline

#4345 2023-09-19 16:41:56

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

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

After a few more changes, I decided to stop so that my Gis Weather wouldn't look like an Easter egg.
If it's not too late.

This is the final look:

final-version.png


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

Offline

#4346 2023-09-21 14:44:06

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

At last i succesfully change my conkyrcs with your help @marens. Thank you. How to test your conkyrc from #https://postimg.cc/w7r8QTZ9 or/and #https://i.postimg.cc/k5dSbFYW/moonrise-moonset.png? Please!

Offline

#4347 2023-09-21 16:56:08

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

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

@ploukop

The first one is my experimental conky, where I try out new ideas.
It is completely different from all the others because it uses several scripts and takes data directly from the RAW files.
It is not finished and I am constantly changing it.
For these reason I cannot publish it.

The next thing you're interested in isn't conky.
It's Gis Weather.

Here you have detailed instructions:
https://forums.bunsenlabs.org/viewtopic … 81#p126781


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

Offline

#4348 2023-09-26 09:21:05

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

Thank you @marens. I'll try to test Gis Weather.

Offline

#4349 2023-09-27 21:07:01

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

@marens, how to view Gis Weather without viewing terminal? How to test this in #4345?

Offline

#4350 2023-09-27 23:00:46

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

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

ploukop wrote:

@marens, how to view Gis Weather without viewing terminal? How to test this in #4345?

If you don't have an applications folder in ~/.local/share, create one.

In ~/.local/share/applications folder make gis-weather.desktop file with content (replace ploukop with your real user name):

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

Save text editor.
Now you have Gis Weather in menu.

Everything else is based on Gis Weather settings.
Right click on the Gis Weather window.
I use VClouds icons and transparent background (option 0.No).

First tip:
https://forums.bunsenlabs.org/viewtopic … 14#p128414

Other tips can be found by starting here:
https://forums.bunsenlabs.org/viewtopic … 17#p128617

Choose what you like and enjoy.

P.S.
Your status on the forum is member.
Now you can post links and screenshots.

Last edited by marens (2023-09-28 10:45:33)


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

Offline

#4351 2023-09-28 16:44:14

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

@marens thanl you again.
My gis-weather is:
https://postimg.cc/y3hvhvkj
As you can view, there is no wind.png icon.

Offline

#4352 2023-09-28 22:23:08

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

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

ploukop wrote:

@marens thanl you again.
My gis-weather is:
https://postimg.cc/y3hvhvkj
As you can view, there is no wind.png icon.

This is normal when there is no wind (calm).

If you want the wind icon when the wind speed is 0 km/h (calm), look here:
https://forums.bunsenlabs.org/viewtopic … 39#p128639

SunRise/SunSet/SunDuration section is OK.

Right click on Gis Weather window > Preferences > Units tab:
Wind > km/h
Pressure > hPa

Right click on Gis Weather window > Preferences > Appearance tab:
Weekend: Sat, Sun (Saturday, Sunday red color) substitute in Greek Σάβ, Κυρ


If you want Gis Weather logo (bottom right):
https://forums.bunsenlabs.org/viewtopic … 63#p128763
https://forums.bunsenlabs.org/viewtopic … 56#p128956


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

Offline

#4353 2023-09-29 19:16:35

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

@marens, i fixed the wind icon but not the Gis Weather logo. I put the icon in gis-weather folder > themes > icons >VClouds. I don't have lightblue background. In your gis weather there are plenty of font colors. I   have only black for all.
gis-weather-29-09-23-22-10-47.png

Offline

#4354 2023-09-30 13:07:02

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

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

@ploukop

marens wrote:

Download gis_logo.png image.
Right click on image > Save Image As > gis_logo.png.

There should be gis_logo.png (not gis-logo.png).
Rename gis-logo.png to gis_logo.png in VClouds folder.

Did you make a change in the gis-weather.py file at the beginning of the post?
https://forums.bunsenlabs.org/viewtopic … 63#p128763

Then my final version Gis logo position and size:
https://forums.bunsenlabs.org/viewtopic … 56#p128956


I use a transparent background without background image.
Right click on Gis Weather window > Background > 0.No.
Only my wallpaper (lightblue) is visible.

See screenshot:
preferences.png

Wallpaper:
https://postimg.cc/Z0gNfmRn


EDIT

I saw that you are now using a different location (Nea Ionia instead of Aigeira).
You probably want it displayed city name in greek.
You can use the city_name_custom option.
Open ~/.config/gis-weather/gw_config1.json or/and ~/.config/gis-weather/gw_config2.json (if it exists) file.

Find line:

"city_name_custom": "",

Replace with:

"city_name_custom": "type the name of the your real city in greek here",

Last edited by marens (2023-09-30 23:59:07)


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

Offline

#4355 2023-09-30 15:01:25

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

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

marens wrote:

Download at your own risk, but if you want a better crop of that image it's available from several wallpaper sites...

https://www.goodfon.com/wallpaper/moons … pesok.html
https://www.wallpaperbetter.com/en/hd-wallpaper-trekw
https://www.pxfuel.com/en/desktop-wallpaper-zbira


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#4356 2023-09-30 16:10:46

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

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

@hhh

Thanks for the links.
Now I can choose my resolution (1440x900).

P.S.
I don't remember where I found that wallpaper.
I used it many years ago with Lubuntu 14.04 LTS.
I edited it a bit with Inkscape and am currently using it.


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

Offline

#4357 2023-09-30 16:27:27

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

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

^ No problema!


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

#4358 2023-10-01 18:00:30

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

Thank you @marens again. Now are all ok.

Offline

#4359 2023-10-02 13:00:57

ploukop
Member
Registered: 2023-03-13
Posts: 13

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

@marens my gis-weather is now:
gis-weather-02-10-23-15-54-12.png
How to change only the color of city to yellow?

Last edited by ploukop (2023-10-02 13:04:20)

Offline

#4360 2023-10-02 13:34:49

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

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

@ploukop

Find line:

                    city_name_attr['font_size'], width-city_name_attr['x'], Pango_dict[city_name_attr['align']])

Replace with:

                    city_name_attr['font_size'], width-city_name_attr['x'], Pango_dict[city_name_attr['align']], color=(180.0, 180.0, 0.0, 0.8))

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

Offline

Board footer

Powered by FluxBB