{"id":618,"date":"2025-05-01T22:30:37","date_gmt":"2025-05-01T22:30:37","guid":{"rendered":"https:\/\/pensplace.co.uk\/?post_type=wpdmpro&#038;p=618"},"modified":"2025-05-10T20:42:34","modified_gmt":"2025-05-10T20:42:34","slug":"meteocons","status":"publish","type":"wpdmpro","link":"https:\/\/pensplace.co.uk\/index.php\/download\/meteocons\/","title":{"rendered":"Meteocons"},"content":{"rendered":"\n<p>Weather Icons from <a href=\"https:\/\/bas.dev\" data-type=\"link\" data-id=\"https:\/\/bas.dev\">Bas Milius<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"614\" src=\"https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/header-v3-1024x614.png\" alt=\"\" class=\"wp-image-646\" srcset=\"https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/header-v3-1024x614.png 1024w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/header-v3-300x180.png 300w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/header-v3-768x461.png 768w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/header-v3-1536x922.png 1536w, https:\/\/pensplace.co.uk\/wp-content\/uploads\/2025\/05\/header-v3.png 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Meta Data<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Column Name<\/strong><\/td><td><strong>Data<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>Name<\/td><td>Weather Icons<\/td><td>Name of the Pack<\/td><\/tr><tr><td>Shortcode<\/td><td>weather<\/td><td>Shortcode of the pack used for filtering<\/td><\/tr><tr><td>Github Link<\/td><td><a href=\"https:\/\/github.com\/basmilius\/weather-icons\">basmilius\/weather-icons: Free to use animated weather icons.<\/a><\/td><td>Github Repository Link<\/td><\/tr><tr><td>Total<\/td><td><\/td><td>Total Number of Icons<\/td><\/tr><tr><td>Author<\/td><td>Bas Milius<\/td><td>Author of the Icon Pack<\/td><\/tr><tr><td>Author Link<\/td><td><a href=\"https:\/\/github.com\/basmilius\">https:\/\/github.com\/basmilius<\/a><\/td><td>Link to the Author<\/td><\/tr><tr><td>Icon SVG<\/td><td>&lt;svg <em>xmlns<\/em>=&#8217;http:\/\/www.w3.org\/2000\/svg&#8217; <em>xmlns:xlink<\/em>=&#8217;http:\/\/www.w3.org\/1999\/xlink&#8217; <em>viewBox<\/em>=&#8217;0 0 480.53 480.53&#8242;&gt;&lt;defs&gt;&lt;symbol <em>id<\/em>=&#8217;c&#8217; <em>viewBox<\/em>=&#8217;0 0 422 422&#8242;&gt;&lt;g <em>clip-path<\/em>=&#8217;url(#a)&#8217;&gt;&lt;path <em>fill<\/em>=&#8217;url(#b)&#8217; <em>d<\/em>=&#8217;M1 1h420v420H1z&#8217;\/&gt;&lt;path <em>fill<\/em>=&#8217;none&#8217; <em>stroke<\/em>=&#8217;#0064f2&#8242; <em>stroke-miterlimit<\/em>=&#8217;10&#8217; <em>stroke-width<\/em>=&#8217;2&#8242; <em>d<\/em>=&#8217;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&#8217;\/&gt;&lt;\/g&gt;&lt;path <em>d<\/em>=&#8217;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&#8217; <em>fill<\/em>=&#8217;#fff&#8217;\/&gt;&lt;\/symbol&gt;&lt;symbol <em>id<\/em>=&#8217;d&#8217; <em>viewBox<\/em>=&#8217;0 0 480.53 480.53&#8242;&gt;&lt;use <em>width<\/em>=&#8217;422&#8242; <em>height<\/em>=&#8217;422&#8242; <em>transform<\/em>=&#8217;matrix(0.98, -0.16, 0.16, 0.98, 0, 65.7)&#8217; <em>xlink:href<\/em>=&#8217;#c&#8217;\/&gt;&lt;\/symbol&gt;&lt;linearGradient <em>id<\/em>=&#8217;b&#8217; <em>x1<\/em>=&#8217;1189.89&#8242; <em>y1<\/em>=&#8217;2741.72&#8242; <em>x2<\/em>=&#8217;1039.37&#8242; <em>y2<\/em>=&#8217;2349.61&#8242; <em>gradientTransform<\/em>=&#8217;matrix(1.59, 0.36, -0.61, 0.93, -8.19, -2565.03)&#8217; <em>gradientUnits<\/em>=&#8217;userSpaceOnUse&#8217;&gt;&lt;stop <em>offset<\/em>=&#8217;0&#8242; <em>stop-color<\/em>=&#8217;#0064f2&#8217;\/&gt;&lt;stop <em>offset<\/em>=&#8217;1&#8242; <em>stop-color<\/em>=&#8217;#057efe&#8217;\/&gt;&lt;\/linearGradient&gt;&lt;clipPath <em>id<\/em>=&#8217;a&#8217;&gt;&lt;rect <em>x<\/em>=&#8217;1&#8242; <em>y<\/em>=&#8217;1&#8242; <em>width<\/em>=&#8217;420&#8242; <em>height<\/em>=&#8217;420&#8242; <em>rx<\/em>=&#8217;120&#8242; <em>fill<\/em>=&#8217;none&#8217;\/&gt;&lt;\/clipPath&gt;&lt;\/defs&gt;&lt;use <em>width<\/em>=&#8217;480.53&#8242; <em>height<\/em>=&#8217;480.53&#8242; <em>xlink:href<\/em>=&#8217;#d&#8217;\/&gt;&lt;\/svg&gt;<br><\/td><td>SVG for the Pack Logo, or<\/td><\/tr><tr><td>Logo<\/td><td><\/td><td>PNG or JPG for the Pack Logo<\/td><\/tr><tr><td>Icons CSV<\/td><td><\/td><td>CSV FIle of the Icons<\/td><\/tr><tr><td>Has Categories<\/td><td>Yes<\/td><td>Are categories used to group icons within a pack.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Transformations<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Transform From<\/strong><\/td><td><strong>Transform To<\/strong><\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">PowerShell script to create the csv<\/h2>\n\n\n\n<pre class=\"wp-block-prismatic-blocks\"><code class=\"language-powershell\" data-line=\"\">$counter = 1\n$file = &quot;D:\\weather-20250501.csv&quot;\nwrite-host &quot;Weather Icons&quot;\n$setName = &quot;weather&quot;\n$path = &quot;D:\\weather-icons\\*.svg&quot;\n$icons = get-childitem -File $path -recurse\n\nForEach($icon in $icons){\n    [string]$svg = Get-Content $icon.FullName;\n    [array]$split = $icon.Name.Split(&#039;-&#039;)\n    [string]$path = $icon.Name.Split(&#039;-&#039;)[0]\n    $TextInfo = (Get-Culture).TextInfo\n    $num = $split.Count\n\n    If( $num= 0){\n        $string = $icon.Name.Replace(&quot;.svg&quot;,&quot;&quot;).Replace(&quot;-&quot;,&quot; &quot;).Trim()\n    }else{\n        $string = $icon.Name.Replace(&quot;.svg&quot;,&quot;&quot;).Replace(&quot;-&quot;,&quot; &quot;).Replace($path,&quot;&quot;).Trim()\n    }\n    \n    # Capitalize the first letter of each word\n    $name = $TextInfo.ToTitleCase($string.ToLower())\n    $objResults = New-Object PSObject -Property @{\n        pp_id = $counter;\n        pp_name =  $name \n        pp_svg = $svg.Replace(&quot;&quot;&quot;&quot;,&quot;&#039;&quot;);\n        pp_pack = $setName\n        pp_size = &quot;24&quot;\n        pp_category = $path.Replace(&quot;.svg&quot;,&quot;&quot;).Trim()\n    }\n    $counter++\n    $objResults | Export-CSV $file -Append -NoTypeInformation -force\n}\nwrite-host &quot;Finished&quot;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Weather Icons from Bas Milius Meta Data Column Name Data Description Name Weather Icons Name of the Pack&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":""},"wpdmcategory":[47],"class_list":["post-618","wpdmpro","type-wpdmpro","status-publish","hentry","wpdmcategory-icon-packs"],"_links":{"self":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/wpdmpro\/618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/wpdmpro"}],"about":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/types\/wpdmpro"}],"author":[{"embeddable":true,"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=618"}],"wp:attachment":[{"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=618"}],"wp:term":[{"taxonomy":"wpdmcategory","embeddable":true,"href":"https:\/\/pensplace.co.uk\/index.php\/wp-json\/wp\/v2\/wpdmcategory?post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}