Meteocons
Weather Icons from Bas Milius
Meta Data
Column Name |
Data |
Description |
Name |
Weather Icons |
Name of the Pack |
Shortcode |
weather |
Shortcode of the pack used for filtering |
Github Link |
basmilius/weather-icons: Free to use animated weather icons. |
Github Repository Link |
Total |
|
Total Number of Icons |
Author |
Bas Milius |
Author of the Icon Pack |
Author Link |
https://github.com/basmilius |
Link to the Author |
Icon SVG |
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 480.53 480.53'><defs><symbol id='c' viewBox='0 0 422 422'><g clip-path='url(#a)'><path fill='url(#b)' d='M1 1h420v420H1z'/><path fill='none' stroke='#0064f2' stroke-miterlimit='10' stroke-width='2' d='M1 1h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zM1 61h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zM1 121h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zM1 181h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zM1 241h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zM1 301h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zM1 361h60v60H1zm60 0h60v60H61zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60zm60 0h60v60h-60z'/></g><path d='M160.64 208.83c12.24-2.69 22.34-14.28 22.34-31.66 0-18.41-12.63-35.17-37.3-35.17H92.07c-9.32 0-14.57 5.59-14.57 15.52v106.76c0 10.13 5.25 15.72 14.57 15.72h55.75c24.67 0 37.69-16.55 37.69-37.24 0-17.38-11.08-31.66-24.87-33.93ZM105.09 167h34.57c9.33 0 15.15 6.62 15.15 15.1 0 8.9-5.82 15.31-15.15 15.31h-34.57Zm35.54 88h-35.54v-32.52h35.54c10.88 0 16.71 7.45 16.71 16.14 0 9.93-6.22 16.38-16.71 16.38Zm179.6-114.5a23.89 23.89 0 0 0-22.41 15.5l-28.43 72.05L241.18 156a24.14 24.14 0 0 0-46.69 8.49V266.8a15 15 0 0 0 14.94 14.7A14.73 14.73 0 0 0 224 266.8v-86.13l37.56 95.45a8.47 8.47 0 0 0 15.77 0l37.55-95.45v86.13a14.84 14.84 0 0 0 29.67 0V164.52a24.11 24.11 0 0 0-24.32-24.02Z' fill='#fff'/></symbol><symbol id='d' viewBox='0 0 480.53 480.53'><use width='422' height='422' transform='matrix(0.98, -0.16, 0.16, 0.98, 0, 65.7)' xlink:href='#c'/></symbol><linearGradient id='b' x1='1189.89' y1='2741.72' x2='1039.37' y2='2349.61' gradientTransform='matrix(1.59, 0.36, -0.61, 0.93, -8.19, -2565.03)' gradientUnits='userSpaceOnUse'><stop offset='0' stop-color='#0064f2'/><stop offset='1' stop-color='#057efe'/></linearGradient><clipPath id='a'><rect x='1' y='1' width='420' height='420' rx='120' fill='none'/></clipPath></defs><use width='480.53' height='480.53' xlink:href='#d'/></svg> |
SVG for the Pack Logo, or |
Logo |
|
PNG or JPG for the Pack Logo |
Icons CSV |
|
CSV FIle of the Icons |
Has Categories |
Yes |
Are categories used to group icons within a pack. |
Transformations
Name |
Transform From |
Transform To |
|
|
|
PowerShell script to create the csv
$counter = 1
$file = "D:weather-20250501.csv"
write-host "Weather Icons"
$setName = "weather"
$path = "D:weather-icons*.svg"
$icons = get-childitem -File $path -recurse
ForEach($icon in $icons){
[string]$svg = Get-Content $icon.FullName;
[array]$split = $icon.Name.Split('-')
[string]$path = $icon.Name.Split('-')[0]
$TextInfo = (Get-Culture).TextInfo
$num = $split.Count
If( $num= 0){
$string = $icon.Name.Replace(".svg","").Replace("-"," ").Trim()
}else{
$string = $icon.Name.Replace(".svg","").Replace("-"," ").Replace($path,"").Trim()
}
# Capitalize the first letter of each word
$name = $TextInfo.ToTitleCase($string.ToLower())
$objResults = New-Object PSObject -Property @{
pp_id = $counter;
pp_name = $name
pp_svg = $svg.Replace("""","'");
pp_pack = $setName
pp_size = "24"
pp_category = $path.Replace(".svg","").Trim()
}
$counter++
$objResults | Export-CSV $file -Append -NoTypeInformation -force
}
write-host "Finished"