It was written using GNU bash 5.0.17, and YAD 12.3 on a system with PuppyLinux FossaPup64 9.5. It uses curl 7.68.0, and GNU Awk 5.2.0. It is a project initiated as a way to learn bash, expect unefficient solutions to problems. Use at your own risk!
Github https://github.com/Dimorld/ywtray
Download https://github.com/Dimorld/ywtray/relea ... ywtray.pet
YWTRAY is a simple current weather indicator
Moderator: Forum moderators
- nilsonmorales
- Posts: 184
- Joined: Thu Dec 26, 2019 1:47 am
- Location: El Salvador
- Has thanked: 71 times
- Been thanked: 108 times
- Contact:
YWTRAY is a simple current weather indicator
- pp4mnklinux
- Posts: 1154
- Joined: Wed Aug 19, 2020 5:43 pm
- Has thanked: 640 times
- Been thanked: 304 times
Re: YWTRAY is a simple current weather indicator
Hello everybody:
This temp indicator is really good. Installed by default in F96CE_XFCE_FUSILLI 4.4, with El Salvador as default country.
For sure, most of you wanna change it, and the process is really easy.
Right click at the icon in the taskbar and select exit.
Go to aplications folder (usr/share/aplications) and look for it (surely it is the last one at this folder, haha).
Configure your desire place and start it again
Now you have a good temp indicator at your task bar. It shows the weater using and icon, and when you need more info, you only need to put your mouse pointer on it, so a pop-up appears with info.-
Have a nice day u all.--- CHEERS
PP4MNK
- Sofiya
- Posts: 2299
- Joined: Tue Dec 07, 2021 9:49 pm
- Has thanked: 1483 times
- Been thanked: 1548 times
Re: YWTRAY is a simple current weather indicator
pp4mnklinux wrote: Wed May 03, 2023 7:57 amHello everybody:
This temp indicator is really good. Installed by default in F96CE_XFCE_FUSILLI 4.4, with El Salvador as default country.
For sure, most of you wanna change it, and the process is really easy.
Right click at the icon in the taskbar and select exit.
Go to aplications folder (usr/share/aplications) and look for it (surely it is the last one at this folder, haha).
Configure your desire place and start it again
Now you have a good temp indicator at your task bar. It shows the weater using and icon, and when you need more info, you only need to put your mouse pointer on it, so a pop-up appears with info.-
Have a nice day u all.--- CHEERS
Info: If you are using the XFCE4 panel then it has its own Weather plugin
xfce4-weather-plugin
- https://docs.xfce.org/panel-plugins/xfc ... ugin/start
- Attachments
-
- Снимок экрана от 2023-05-03 16-01-14.png (9.39 KiB) Viewed 2039 times
KL
PUPPY LINUX Simple fast free
- nilsonmorales
- Posts: 184
- Joined: Thu Dec 26, 2019 1:47 am
- Location: El Salvador
- Has thanked: 71 times
- Been thanked: 108 times
- Contact:
Re: YWTRAY is a simple current weather indicator
The user @Sofiya is correct but I want to emphasize this application, it can be a very good option (70kbs) for desktop environments like jwm, icewm, etc. that do not have a weather plugin like xfce does.
conky does it, but it looks very decent in the systray
- Sofiya
- Posts: 2299
- Joined: Tue Dec 07, 2021 9:49 pm
- Has thanked: 1483 times
- Been thanked: 1548 times
Re: YWTRAY is a simple current weather indicator
nilsonmorales wrote: Fri May 05, 2023 6:44 amThe user @Sofiya is correct but I want to emphasize this application, it can be a very good option (70kbs) for desktop environments like jwm, icewm, etc. that do not have a weather plugin like xfce does.
conky does it, but it looks very decent in the systray
Does not work with Tint2 panel, the icon shows but when you hover over it there is no pop-up window.
KL
PUPPY LINUX Simple fast free
Re: YWTRAY is a simple current weather indicator
Should warn users that you need to use a darker theme otherwise you may not see the icons (unless there is a way to change to the dark icon set for light backgrounds)....
Edit: Actually, you should see the icons if you use the light icons set instead of the dark icon set.
- josejp2424
- Posts: 245
- Joined: Sun Jul 12, 2020 11:40 pm
- Has thanked: 261 times
- Been thanked: 155 times
Re: YWTRAY is a simple current weather indicator
Sofiya wrote: Fri May 05, 2023 9:13 amnilsonmorales wrote: Fri May 05, 2023 6:44 amThe user @Sofiya is correct but I want to emphasize this application, it can be a very good option (70kbs) for desktop environments like jwm, icewm, etc. that do not have a weather plugin like xfce does.
conky does it, but it looks very decent in the systrayDoes not work with Tint2 panel, the icon shows but when you hover over it there is no pop-up window.
jwm doesn't even have an icon.tested
hi @Sofiya
in tint2 I like to use a weater script. it uses the location of the http://openweathermap.org.
the script which is in /root/.config/tint2/executors/weather .
you must put your openwethermap api , and the location.
.
and in tint2rc. you must add these lines.
Code: Select all
#-------------------------------------
# executors 1
execp = new
execp_name =
execp_command = ~/.config/tint2/executors/weather
execp_interval = 300
execp_has_icon = 1
execp_cache_icon = 1
execp_continuous = 0
execp_markup = 1
execp_monitor = all
execp_tooltip = Current weather --> click for 3 days weather forecast
execp_lclick_command = urxvt -geometry 127x36 -e /root/.config/tint2/executors/weather-run
execp_rclick_command = urxvt -geometry 127x36 -e /root/.config/tint2/executors/weather-run
execp_mclick_command =
execp_uwheel_command =
execp_dwheel_command =
execp_font = DejaVu Sans Condensed 9
execp_font_color = #ffffff 100
execp_padding = 6 0
execp_background_id = 0
execp_centered = 0
execp_icon_w = 24
execp_icon_h = 24
my panel with weather.
Devuanpup
https://sourceforge.net/projects/devuanpup/
telegram
https://t.me/puppylatino
- Sofiya
- Posts: 2299
- Joined: Tue Dec 07, 2021 9:49 pm
- Has thanked: 1483 times
- Been thanked: 1548 times
Re: YWTRAY is a simple current weather indicator
josejp2424 wrote: Fri May 05, 2023 10:57 amSofiya wrote: Fri May 05, 2023 9:13 amnilsonmorales wrote: Fri May 05, 2023 6:44 amThe user @Sofiya is correct but I want to emphasize this application, it can be a very good option (70kbs) for desktop environments like jwm, icewm, etc. that do not have a weather plugin like xfce does.
conky does it, but it looks very decent in the systrayDoes not work with Tint2 panel, the icon shows but when you hover over it there is no pop-up window.
jwm doesn't even have an icon.testedhi @Sofiya
in tint2 I like to use a weater script. it uses the location of the http://openweathermap.org.
HI @josejp2424
Thanks a lot ! This is what I needed
- Attachments
-
- Снимок экрана от 2023-05-05 14-43-23.png (36.06 KiB) Viewed 1965 times
KL
PUPPY LINUX Simple fast free
- mikewalsh
- Moderator
- Posts: 6208
- Joined: Tue Dec 03, 2019 1:40 pm
- Location: King's Lynn, UK
- Has thanked: 806 times
- Been thanked: 1998 times
Re: YWTRAY is a simple current weather indicator
Thank you, young sir. Works perfectly under Xenialpup 7.5 (this one has peebee's 64-bit compat SFS permanently loaded, so I don't know whether that has any effect).
Nice one!
Mike.
Re: YWTRAY is a simple current weather indicator
I changed the icons by overwriting the icons in the dark folder with those of the icons in the light folder. I now have colour icons (at least I see a yellow sun now, which it is here at the moment).
Re: YWTRAY is a simple current weather indicator
As a matter of interest - Attach a table providing the meaning of wind direction in terms of degrees. Now, I also know.
- Attachments
-
- Wind Direction.png (33.76 KiB) Viewed 2117 times
Re: YWTRAY is a simple current weather indicator
The configuration file is /root/.config/ywtray/ywtray.conf. To change the icon scheme to light, exit the application, add the following line to ywtray.conf and save, restart:
Code: Select all
icons_dir="/opt/yww-icons/light"
To change to the dark icons scheme, repeat above mentioned steps and change to icons_dir="/opt/yww-icons/dark"
Re: YWTRAY is a simple current weather indicator
Made a little utility for this app. Attached the .pet.
IMPORTANT:
1. When the application is first set up (or when a total reset is done), the icon directory may not be specified in the configuration file. If this is the case, the utility will not work because it's looking for that entry in the config file to change. So, in this case you need to add the following line to the config file:
Code: Select all
icons_dir="/opt/yww-icons/dark"
After that the application should work fine whenever interchanging the icons theme.
2. You can use the utility when the application is already running or if it is not running yet. In both scenarios, a new instance of the application will start with your newly chosen colour scheme. You need to be online before running the app/utility.
- Attachments
-
- Ywtray-Icons-Chooser.jpg (13.01 KiB) Viewed 2009 times
-
- ywtray-icons-chooser.pet
- (1.54 KiB) Downloaded 80 times
- Sofiya
- Posts: 2299
- Joined: Tue Dec 07, 2021 9:49 pm
- Has thanked: 1483 times
- Been thanked: 1548 times
Re: YWTRAY is a simple current weather indicator
josejp2424 wrote: Fri May 05, 2023 10:57 amSofiya wrote: Fri May 05, 2023 9:13 amnilsonmorales wrote: Fri May 05, 2023 6:44 amThe user @Sofiya is correct but I want to emphasize this application, it can be a very good option (70kbs) for desktop environments like jwm, icewm, etc. that do not have a weather plugin like xfce does.
conky does it, but it looks very decent in the systrayDoes not work with Tint2 panel, the icon shows but when you hover over it there is no pop-up window.
jwm doesn't even have an icon.testedtint2-weather.tar.xz
in order for the forecast for 3 days to be displayed in your country language, add the code to the script line 21
curl -H "Accept-Language:ru" https://wttr.in
path to script : /root/.config/tint2/executors/weather.sh
Code: Select all
#!/bin/bash
program=Weather
version=1.1
year=2018
developer=computer-geek64
case $1 in
-h | --help)
echo "$program $version"
echo "Copyright $year $developer. All rights reserved."
echo
echo "Usage: weather [options]"
echo "Option Long Option Description"
echo "-h --help Show the help screen"
echo "-l [location] --location [location] Specifies the location"
;;
-l | --location)
curl https://wttr.in/$2
;;
*)
curl -H "Accept-Language:ru" https://wttr.in
;;
esac
- Attachments
-
- Снимок экрана.png (168.42 KiB) Viewed 1834 times
KL
PUPPY LINUX Simple fast free
- nilsonmorales
- Posts: 184
- Joined: Thu Dec 26, 2019 1:47 am
- Location: El Salvador
- Has thanked: 71 times
- Been thanked: 108 times
- Contact:
- nilsonmorales
- Posts: 184
- Joined: Thu Dec 26, 2019 1:47 am
- Location: El Salvador
- Has thanked: 71 times
- Been thanked: 108 times
- Contact:
Re: YWTRAY is a simple current weather indicator
Something happened in the weather API, and the application stopped working, so the developer had to make changes to the /usr/local/bin/ywtray-functions file
You can download it from here https://github.com/Dimorld/ywtray/blob/ ... -functions and replace it. thank you so much
- spiritwild
- Posts: 89
- Joined: Wed Jul 22, 2020 1:34 am
- Been thanked: 31 times