You are not logged in.
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
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).
Copy/Paste moon_day_blue.png in moon_icons_north (south).
Done.
Restart moongiant conky.
Blue moon image is here?
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
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
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:
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:
Open terminal and run my script once:
bash $HOME/Downloads/gis-weather-master/moon
Start Gis Weather again.
MoonRise/MoonSet/MoonDuration Block is here?
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
MoonGiant
This is what happened last night:
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:
Of course, it was short lived, now everything is fine:
If people would know how little brain is ruling the world, they would die of fear.
Offline
Gis Weather - Colored Wind Direction Indicators (W, N, E, S)
Would you like your Block Wind to look like this?
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
Offline
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
@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
Thank you @marens. I'll try to test Gis Weather.
Offline
@marens, how to view Gis Weather without viewing terminal? How to test this in #4345?
Offline
@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
@marens thanl you again.
My gis-weather is:
https://postimg.cc/y3hvhvkj
As you can view, there is no wind.png icon.
Offline
@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
Offline
@ploukop
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.
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
Wallpaper:
https://postimg.cc/Z0gNfmRn
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
@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
^ No problema!
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline
Thank you @marens again. Now are all ok.
Offline
@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