Getting Conky weather icons from Bleys to work [SOLVED]

Add functionality to your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

didja notice I found the code to format every word in wetter[1] (weather description) with a capitol first letter?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Bleys wrote: Thu Feb 08, 2024 5:13 am
Logansfury wrote: Thu Feb 08, 2024 2:31 am
I note a sunrise font symbol by the 08:23 time and a sunset font symbol next to 17:03 time.

May I have the font for those please?
https://www.dafont.com/de/weather.font
After installing new Fonts:

Code: Select all

sudo fc-cache 
and restart conky or just reboot

I am currently traveling with my Notbook. The Compass picture will come this afternoon.
What please is the name that the weather font you gave me must be referred to as in conky? I have tried Weather, and wef, but neither worked
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Bleys
Level 4
Level 4
Posts: 431
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Bleys »

Logansfury wrote: Thu Feb 08, 2024 5:18 am
Got em! Thank you so much! What about the Font Awesome? I downloaded one that corrected the output and showed the flowing arrows in the .lua but its still displaying as a blank rectangle on screen
The refresh symbol is available in many fonts. E.g. in the font that your text editor uses ;)
In my case it is DejaVu Sans Mono.
I suspect that you are using a variant of the Awsome font, which may be written differently. Then Conky does not find this font and probably (I'm not sure...) uses the last font set.
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

I have downloaded and installed the dejavu font, an done the sudo command. I just typed every key on my board and nothing was symbols, what key combo produces that refresh icon please?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Bleys
Level 4
Level 4
Posts: 431
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Bleys »

I always use LO Writer for this - Insert:
Screen Capture_select-area_20240208110326.jpg
Screen Capture_select-area_20240208110500.jpg
Have to go now. I'm Back Evening
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Bleys wrote: Thu Feb 08, 2024 6:07 am I always use LO Writer for this - Insert:
Screen Capture_select-area_20240208110326.jpg
Screen Capture_select-area_20240208110500.jpg
Have to go now. I'm Back Evening
When you return, please look at this, my LO looks nothing like yours:

Image
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Bleys
Level 4
Level 4
Posts: 431
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Bleys »

Menu -> Insert -> Special Characters...

I'm a complete layman when it comes to fonts and Unicode. I looked for a website that lists as many Unicode characters as possible and then searched for the right one and a font that contains the character I was looking for.

https://symbl.cc/de/unicode/table/

Entering special characters via Unicode is easy: CTRL+Shift+U - A small underlined u appears, now enter the Unicode directly and press ENTER. For this: 🗘 -> U+1f5d8
U+21ba: ↺ and reverse: U+21bb: ↻
compass.png
compass.png (22.18 KiB) Viewed 422 times
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Good Morning Oh Learned One :)

I am still recovering from the ER visit the other day and slept in very late. I just woke up to your posts.

Thank you very much for the compass image, I wanted to let you know I got it.

I appreciate the unicode lesson, I was trying just the U button and browser windows were jumping all over when I hit subsequent keys. Cntrl + Shift is a livesaver :) 🗘 Woot I can see it in my forum post :)

Unfortunately, it's still not displaying in the actual weather widget. I am going to start a new thread about getting it visible I guess.

Please forgive all the time I monopolized from you getting this widget setup, I know my prior video card/driver setup that refused to display anything was a great frustration to both of us. You are a true forum hero staying the course until an issue is resolved. At this point I have all the art I saw in your work that I hoped to get shared, I have 2 great versions of your weather conky, one for each Linux Box, and both work fine and look beautiful!

I am probably done needing help with this task, except for the last step of putting your compass image up. For this do I emulate the draw command from the arrow? The numeric code at the end represents screen x pos, screen y pos, image height, image width, correct?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

OOOPS!!

I almost completely forgot! I got the weather font you linked, but I cannot figure out how to code it to display in conky. I have listed the font as "weather",
"wea____", "WeatherFont", "weather font" , "Weather Font v1.0" in conky files, but none of these are making the font visible on widgets, what is the solution please?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Image

Compass imported, arrow resized and centered, working fine, looking beautiful.

Thank you Bleys :)
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Bleys
Level 4
Level 4
Posts: 431
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Bleys »

Logansfury wrote: Thu Feb 08, 2024 5:52 pm
"wea____", "WeatherFont", "weather font" , "Weather Font v1.0" in conky files, but none of these are making the font visible on widgets, what is the solution please?
Weather (With a capital W)

Double klick weather.zip, double klick wef_____.ttf, klick install.

Code: Select all

killall conky
sudo fc-cache
conky -c conkyrc
You can find the font here when installed: ~/.local/share/fonts
You can see the right name using the FontViewer
Screen Capture_select-area_20240209005030.jpg
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Code: Select all

logansfury@OptiPlex-5040:~$ killall conky
logansfury@OptiPlex-5040:~$ sudo fc-cache
[sudo] password for logansfury:           
logansfury@OptiPlex-5040:~$ conky -c conkyrc
conky: cannot open conkyrc: No such file or directory
logansfury@OptiPlex-5040:~$ 
didn't go quite as expected. was I supposed to replace conkyrc with a file path to a conky file?
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

WAZOO!!!! :D

Image

Code: Select all

write_text(cr, 34,136,"Sunrise:", {align="l", font="Neon 80s", size=12, color="0xff0000"})
write_text(cr, 20,136,"E", {align="l", font="Weather", size=18, color="0xff0000"})
write_text(cr, 34,152,"Sunset:", {align="l", font="Neon 80s", size=12, color="0xff0000"})
write_text(cr, 20,152,"A", {align="l", font="Weather", size=18, color="0xff0000"})
write_text(cr, 74,136,wetter[6], {font="Neon 80s", size=12})
write_text(cr, 74,152,wetter[7], {font="Neon 80s", size=12})
Thank you Bleys :)
Last edited by Logansfury on Thu Feb 08, 2024 8:15 pm, edited 1 time in total.
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

This has worked for Weather, but not for FontAwesome. Do you have any idea what I can do to get this double arrow displayed by conky?

Image
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

I took the compass.png into GIMP and redid the degree letters & numbers:

Image

Image
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Just noticed my arrow is positioned 1 pixel too low in the posted image. got that fixed!
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Logansfury wrote: Thu Feb 08, 2024 9:11 pm I took the compass.png into GIMP and redid the degree letters & numbers:

Image

Image
The East symbol I just noted is off to the right and not touching the dir arrow like the other letters. I fixed that for anyone that want's pixel perfect:

Image
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Got my Dell Linux Box's conky formatted to include your weather widget! Whatcha think?

Image
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
User avatar
Bleys
Level 4
Level 4
Posts: 431
Joined: Wed Apr 20, 2022 4:17 am
Location: Essen, Germany

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Bleys »

Code: Select all

sudo apt install fonts-font-awesome
To get the Char, type in Texteditor: U+F079 (Ctrl+Shift+U f079 ENTER)
Logansfury wrote: Fri Feb 09, 2024 1:36 am Got my Dell Linux Box's conky formatted to include your weather widget! Whatcha think?
nice!

I'm interested in the part that lists your network status. Can you post it?
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Logansfury
Level 6
Level 6
Posts: 1237
Joined: Fri Oct 27, 2023 4:08 pm
Location: Las Vegas NV, USA

Re: Getting Conky weather icons from Bleys to work [SOLVED]

Post by Logansfury »

Bleys wrote: Fri Feb 09, 2024 2:11 am I'm interested in the part that lists your network status. Can you post it?
Of course :) Isn't that nifty? I owe this to Koentje. It is one of the three he uses, customized for me to list in two columns instead of one

conky.conf or conkyrc bit:

Code: Select all

conky.text = [[
#
# Check if network PC is active
${execpi 5 ./ping-networkpc.sh}
#
#
]];
ping-networkpc.sh:

Code: Select all

#!/bin/bash
##########################################################################
#                                                                        #
#  This script shows all online/offline hostnames found in a LAN.        #
#  Depends on: arp, dig                                                  #
#                                                                        #
#  Made by Koentje  (remon@cobrasoft.nl)                                 #
#                                                          version 1.2   #
##########################################################################
#
# Own hostfile
hostfile="./hosts"
#
# Fontname for hostnames    ex. "Ubuntu Mono:bold:size=15"
fontname1="Neon 80s:size=10"
#
# Fontname for 2nd text line   ex. "Ubuntu Mono:bold:size=10"
fontname2="Neon 80s:size=8"
#
# Vertical spacing between hostnames
voffhost="1"
#
# Horizontal spacing between image and  hostname
hoffhost_left="44"   # Adjusted for the left column
hoffhost_right="180"   # Adjusted for the right column
#
# Vertical offset for the right column
voffhost_right="-27"  # Adjusted for better alignment
#
# Horizontal spacing between online text and ip address
hoffip="10"
#
# Vertical offset between hostnames in the right column
voffright="1"  # Adjust this value as needed
#
# Color hostname online  (RRGGBB or name like red, white, grey)
colhoston="red"
#
# Color hostname offline  (RRGGBB or name like red, white, grey)
colhostoff="882200"
#
# Color "online" text  (RRGGBB or name like red, white, grey)
coltxton="66FF00"
#
# Color "offline" text  (RRGGBB or name like red, white, grey)
coltxtoff="882222"
#
# Color ip address online  (RRGGBB or name like red, white, grey)
colipon="white"
#
# Color ip address offline  (RRGGBB or name like red, white, grey)
colipoff="777777"
#
# Exclude these ip addresses  ex. (192.168.1.1 192.168.1.101)
# IP addresses separated by a space!
exclude="192.168.1.101"
#
# Minimum width for the right column
min_width="380"
#
######################################################################################
#########################   EDIT AFTER THIS LINE AT OWN RISK   #######################
######################################################################################

excludes=($exclude)
column=1

while read -r line
do
    # Get hostname or ip address
    ipaddr=$(echo "$line" | awk '{print $1}')
    hostname=$(echo "$line" | awk '{print $2}')
    x=1

    for ips in "${excludes[@]}"
    do
        if [ "$ips" = "$ipaddr" ]; then x=0; continue; fi
    done

    if [ "$x" = "1" ]; then
        # Ping to see if online
        pvar=$(fping -q -c1 -t100 "$ipaddr" >/dev/null 2>&1; echo $?)
        if [ "$pvar" = "0" ]; then
            if [ "$column" -eq 1 ]; then
                echo "\${font $fontname1}\${voffset $voffhost}\${color $colhoston}\${goto 40}$hostname\${font}"
                echo "\${font $fontname2}\${color $coltxton}\${goto 40}Online\${offset $hoffip}\${color $colipon}$ipaddr"
            else
                echo "\${font $fontname1}\${goto $hoffhost_right}\${voffset $voffhost_right}\${color $colhoston}\${alignr}$hostname\${font}"
                echo "\${font $fontname2}\${goto $hoffhost_right}\${voffset $voffright}\${color $coltxton}\${goto 290}Online\${offset $hoffip}\${color $colipon}$ipaddr"
            fi
        else
            if [ "$column" -eq 1 ]; then
                echo "\${font $fontname1}\${voffset $voffhost}\${color $colhostoff}\${goto 40}$hostname\${font}"
                echo "\${font $fontname2}\${color $coltxtoff}\${goto 40}OFFLINE\${offset $hoffip}\${color $colipoff}$ipaddr"
            else
                echo "\${font $fontname1}\${goto $hoffhost_right}\${voffset $voffhost_right}\${color $colhostoff}\${alignr}$hostname\${font}"
                echo "\${font $fontname2}\${goto $hoffhost_right}\${voffset $voffright}\${color $coltxtoff}\${alignr 12}OFFLINE\${offset $hoffip}\${color $colipoff}$ipaddr"
            fi
        fi

        if [ "$column" -eq 1 ]; then
            # Switch to the right column after the first six entries
            column=2
        else
            column=1
        fi
    fi

done < "$hostfile"
also necessary is a file called "hosts" that lists Internal IP addy and Machine Name of every device you wish monitored.

That's it! If you have any difficulty I'm sure Koentje will be happy to help.
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
Post Reply

Return to “Compiz, Conky, Docks & Widgets”