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 »

Bleys wrote: Fri Feb 09, 2024 2:11 am

Code: Select all

sudo apt install fonts-font-awesome
THAT DID IT :)

I see the character in conky just fine now, Thank you Bleys :D :D :D
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: Fri Feb 09, 2024 3:26 am
That's it! If you have any difficulty I'm sure Koentje will be happy to help.
Thanks! I will change this for LUA and post the result,
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
User avatar
Koentje
Level 7
Level 7
Posts: 1581
Joined: Tue Jan 04, 2022 6:23 pm
Location: Netherlands

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

Post by Koentje »

Bleys wrote: Fri Feb 09, 2024 4:41 am
Logansfury wrote: Fri Feb 09, 2024 3:26 am
That's it! If you have any difficulty I'm sure Koentje will be happy to help.
Thanks! I will change this for LUA and post the result,
The one logansfury posted works with a hostfile the user can fill in. The original works with what arp finds in your network and shows icons in front of then.
Image
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 »

First Version for LUA. The script returns all IPs alive:

Code: Select all

#!/bin/sh

count=1
listalive=""
while [ $count -lt 254 ]
do
  ipaddr="192.168.3."$count 
  pvar=$(fping -q -c1 -t100 "$ipaddr" >/dev/null 2>&1; echo $?)
  count=$(( $count + 1 ))
    if [ $pvar -eq 0 ] 
        then 
            if [ "$listalive" = "" ]; then listalive=$ipaddr; else
                listalive=$listalive","$ipaddr 
            fi
    fi
done
echo $listalive
Although this is relatively fast with fping, the time can be shortened further if only the areas (DHCP, for example) that are actually used are specified.
I am currently setting up the ranges. 30 addresses for DHCP, 20 for all my own devices and 5 for routers and servers.
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 »

Far out!

It sounds like you are having a blast doing the conversion :)
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 »

Some weirdness concerning the special character issue.

The squared arrows still show as a squared pair of arrows on the weather display intended for the HP box. On the Dell box in the weather display fitted into the Minimalis setup, I tried to replace the word "update" with the symbol and got the empty square character again, while the comparison widget on the desktop is correctly showing its character. And here in the forum, all my pastes of the squared double arrow have become circular double arrows.

Very strange >.<
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 now know a bit more about Unicode.
There is a private range for Unicode characters (similar to the IP4 ranges for private networks) FontAwesome uses a code from this private range (E000-F8FF) for the square update character (F079)
So the square update character is only available with an Awesome font!

Other Chars for Update you can find in any DejaVu Font, Awesome Fonts, FreeMono, FreeSerif, MathJax_AMS, Noto Sans Math:

↺ (U+21BA) ↻ (U+21BB) ⟲ (U+27F2) ⟳ (U+27F3) ⮔ (U+2B94) ⥁ (U+2941)

Or Unicode Color Emoji in Font Noto Color Emoji:

🔄 (U+1F504) 🔁 (U+1F501)
Screen Capture_select-area_20240209230418.jpg
Screen Capture_select-area_20240209230418.jpg (8.25 KiB) Viewed 339 times
Last edited by Bleys on Fri Feb 09, 2024 6:04 pm, edited 1 time in total.
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 5:49 pm I now know a bit more about Unicode.
There is a private range for Unicode characters (similar to the IP4 ranges for private networks) FontAwesome uses a code from this private range (E000-F8FF) for the square update character (F079)
So the square update character is only available with an Awesome font!

Other Chars for Update you can find in any DejaVu Font, Awesome Fonts, FreeMono, FreeSerif, MathJax_AMS, Noto Sans Math:

↺ (U+21BA) ↻ (U+21BB) ⟲ (U+27F2) ⟳ (U+27F3) ⮔ (U+2B94) ⥁ (U+2941)

Or Unicode Color Emoji in Font Noto Color Emoji:

🔄 (U+1F504) 🔁 (U+1F501)
Going to replicate these to see how they print out. I don't understand why my browser display has changed.

🗚 for craps sake the double arrow has reverted to a square again >.<

↺ ↻ ⟲ ⟳

I am seeing your post of 2b94 as a blank square as well



This is so wierd. So my browser display of the squared double arrow, has suddenly stopped showing and only one of my two weather conkys are displaying it correctly. This is beyond weird >.< .o0O( migraine face )
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 »

Have found a font that can do all characters: https://www.fontspace.com/symbola-font-f22021
Screen Capture_select-area_20240209233933.jpg
Screen Capture_select-area_20240209233933.jpg (12.51 KiB) Viewed 334 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 »

I finally got a 2nd version of the widget with the compass art to accept a transparent BG. This gives me an alternate look with my last completed Minimalis in place. You can see how much I had to shave off of this Minimalis to create room for a more narrow version of the weather widget. This gives me an opportunity to appreciate the compass art on my main system. I don't sit at the HP Linux box as often.

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 »

Bleys wrote: Fri Feb 09, 2024 6:40 pm Have found a font that can do all characters: https://www.fontspace.com/symbola-font-f22021

Screen Capture_select-area_20240209233933.jpg
NICE, I will download that immediately and perform the sudo font install cmd in terminal.

Thank you very much for the link :)
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: Fri Feb 09, 2024 6:40 pm Have found a font that can do all characters: https://www.fontspace.com/symbola-font-f22021

Screen Capture_select-area_20240209233933.jpg
Having a bit of an issue.

~/.fonts directory contains 69 items

~/.local/share/fonts contains 10 fonts and a text doc named .uuid

the new symbola font isnt here to show me it's correct name for the sudo command.

I would assume it's

Code: Select all

sudo apt install fonts-symbola-font
but I don't want to mess anything up. Can you confirm the command 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 »

also, you had mentioned in an earlier post to double click the .ttf file to install. While this has always worked for me on windows, on Linux I get this:

Image

It seems the majority of my fonts aren't completely installed. And I don't understand why after doing the sudo install of font awesome it is not showing under ~/.local/share/fonts
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: Fri Feb 09, 2024 7:57 pm
I would assume it's

Code: Select all

sudo apt install fonts-symbola-font

but I don't want to mess anything up. Can you confirm the command please?
aua...
Open the link I posted above. Scroll down a bit and click on "Free Download".
Open Download Folder, rightclick on "symbola-font.zip -> extract here
Open the unzipped folder "symbola-font"
Doubleclick "Symbola-AjYx.ttf

Click "Install" Button Top-right
Screen Capture_select-area_20240210005815.jpg
Screen Capture_select-area_20240210005815.jpg (12.25 KiB) Viewed 301 times
Complete Symbola Font!

Code: Select all

function write_text(cr, x, y, text, f)
--write_text(cr, x, y, text, {})
--font attributes (Schriftattribute zuweisen oder default Werte annehmen)
      local font=f.font or "Symbola"
      local size=f.size or 12
      local align=f.align or 'l'
      local bold=f.bold or false

Code: Select all

        if wetter[1]~=nil then
                write_text(cr, 20,20,wetter[1], {bold=true, align="l", size=12})
                write_text(cr, 20,60,wetter[2].."°C", {bold=true,  size=32, align="l", color="0xf0f0f0"})
                write_text(cr, 20,80,"rF: ", {align="l"})
                write_text(cr, 160,80,wetter[4].."%", {bold=true, align="r", color="0xff0000"})   --just a color example   
                write_text(cr, 20,96,"Wind: ", {bold=true, align="l"})
                write_text(cr, 160,96,wetter[3].." ("..wetter[10]..") km/h", {bold=true, align="r", color="0xff0000"})
                write_text(cr, 20,112,"Luftdruck: ", {bold=true, align="l"})
                write_text(cr, 160,112,wetter[9].." hPa", {bold=true, align="r", color="0xff0000"})
                write_text(cr, 190,130,"🔁  ", {size=16, align="l"})
                write_text(cr, 210,130,wetter[8].." Uhr", {bold=true,  align="l"})
                write_text(cr, 20,130,"⮬🟒 ", {bold=true, align="l", size=12})
                write_text(cr, 124,130,"🟒⮯", {bold=true, align="l", size=12})
                write_text(cr, 40,130,wetter[6].." --- "..wetter[7], {bold=true, align="l", color="0xff0000"})
                fDrawImage(cr,home_path..'/.conky/wettericons/'..wetter[5]..'.png',210,40,116,80) -- Adapt path to your own paths
--                fDrawImage(cr,home_path..'/.conky/wettericons/compass.png',220,116,90,90)
--	            local arc_deg = (2 * math.pi / 360) * wetter[11]
--                fDrawImage(cr,home_path..'/.conky/wettericons/arrow.png',220,116,30,30,arc_deg)
                local deg=tonumber(wetter[11])
                local dir=math.floor((deg+11.25)/22.5)+1
                if dir==17 then dir = 1 end
                write_text(cr, 230,96,deg.."° "..directions[dir], {bold=true, align="r", color="0x0000ff"})
        end
Ryzen 5 5600G, 16GB RAM, 2TB M.2 Crucial P3, Asrock Deskmeet X300, Samsung Odyssey 49", Linux Mint 21
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: Fri Feb 09, 2024 8:00 pm also, you had mentioned in an earlier post to double click the .ttf file to install. While this has always worked for me on windows, on Linux I get this:
Rightclick a .ttf Font -> properties -> open with
choose Font-Viewer
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 8:11 pm Rightclick a .ttf Font -> properties -> open with
choose Font-Viewer
Bleys, I swear from the bottom of my heart, I'm not trying to be difficult. But Font-Viewer is not in the programs list, I tried to type it in and add it but after typing Font-Viewer I got an "X" in the type box and the "Add to list" button is greyed out. I am on 21.3 Victoria | Cinnamon 6.0.4

What should I do now please?

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 font-viewer
I don't know with which name the font-viewer appears in the menu in English

and apart from very rare exceptions, all internal program names are written in lower case. My mistake...
Last edited by Bleys on Fri Feb 09, 2024 8:22 pm, edited 1 time in total.
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 8:18 pm

Code: Select all

sudo apt install font-viewer
That's got it. So I am looking at all these 69 fonts in the .fonts dir, they are all showing as installed, but only 10 of 69 are under the local/share/fonts dir.
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: Fri Feb 09, 2024 8:21 pm
That's got it. So I am looking at all these 69 fonts in the .fonts dir, they are all showing as installed, but only 10 of 69 are under the local/share/fonts dir.
This is correct. Only fonts that are installed by double-clicking in the font viewer end up in .local/share/fonts.

Ok.. is 1:27 AM here. Time to close up for me ;)
Good night
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 »

Sleep well and thank you Bleys :)
Image <-- Cick for sudo inxi --usb -Fxxxnmprz output, updated hourly!
Post Reply

Return to “Compiz, Conky, Docks & Widgets”