npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

weather-icons-lite

v1.6.1

Published

A lightweight set of weather icons

Downloads

238

Readme

Weather Icons Light

Weather Themed Icons and CSS

Weather Icons Lite is a collection of weather themed icons, which are already integrated within node-RED, or can be used in any project that needs high quality weather & moon phase icons!

Icon Preview

Basic Usage

The icons are displayed by using an <i...> element, adding the base class wi and then the icon class you want.
If you used Wunderground's 'wu' prefix and their 'partlycloudy' icon key, it would look like <i class="wi wi-wu-partlycloudy"></i>.
The same format applies to Darksky & Openweathermap icon feeds; <i class="wi wi-darksky-clear-day"></i> and <i class="wi wi-owm-01d"></i> respectively.
A full list of the Wunderground, Openweathermap, Darksky & Moon api mappings, which map the api output to a particular weather icon can be found on the CSS Mapping reference.

Styling

To add a modifier, include the class you want after the icon name.

The modifiers listed below can also be used with font-awsome icons, such as;

<i class="fa fa-location-arrow wi-rotate-45 wi-4x"></i>

Size

Icons inherit the font-size from their parent container, and can be increased or decreased relatively using any of the following switches; wi-1x, wi-2x, wi-3x, up to wi-10x and also wi-xs, wi-sm, wi-lg.
Example of a relative change; <i class="wi wi-wu-partlycloudy wi-5x"></i>

Icon size can also be changed by varying the style attribute of the containing HTML element;

<div style="font-size: 48px;">
<i class="wi wi-darksky-clear-day"></i>
</div>

Icon colour

Icons can be given a specific colour by adding a style attribute to the <i class>
Example of changing icon colour; <i class="wi wi-darksky-clear-day" style="color:red;"></i>

Rotating icons

Weather-Icons & Font Awsome icons can also be flipped or rotated, using any of the modifiers; wi-flip-vertical, wi-flip-horizontal, and wi-rotate-23, wi-rotate-45 etc (including angles 23, 45, 68, 90, 133, 135, 158, 180, 203, 225, 248, 270, 293, 315, 338, 0).

Cardinal & Ordinal references can also be used - wi-rotate-NE, wi-towards-WNW & wi-from-ESE (all of which will rotate the icons clockwise).

Example of icon rotation; <i class="wi wi-wu-partlycloudy wi-rotate-270"></i>

Positioning icons

To position the icon centrally in a node-RED dashboard element, it is necessary to add a style attribute around the <i class>;

<div style="flex; height:100%; justify-content:center; align-items:center;">
<i class="wi wi-darksky-clear-day">
</div>

Example Flow

An example node-RED flow demonstrating a combination of the styling elements above;

[{"id":"67f03385.7ae68c","type":"ui_template","z":"a444a9ff.e7a408","group":"ddd690d2.0351d","name":"ui_template","order":2,"width":"5","height":"5","format":"<div style=\"display: flex;height: 100%;justify-content: center;align-items: center;\">\n<i class=\"wi wi-darksky-thunderstorm wi-4x wi-rotate-270\" style=\"color:red;\"></i>\n</div>","storeOutMessages":false,"fwdInMessages":true,"templateScope":"local","x":600,"y":1980,"wires":[[]]},{"id":"f0ce6f0.a8e049","type":"inject","z":"a444a9ff.e7a408","name":"","topic":"","payload":"","payloadType":"str","repeat":"5","crontab":"","once":true,"onceDelay":0.1,"x":440,"y":1980,"wires":[["67f03385.7ae68c"]]},{"id":"ddd690d2.0351d","type":"ui_group","z":"","name":"weather-icons-lite","tab":"117b6717.6166b9","disp":true,"width":"27","collapse":false},{"id":"117b6717.6166b9","type":"ui_tab","z":"","name":"Example","icon":"dashboard","order":7,"disabled":false,"hidden":false}]

Credits

The icon designs are originally by Lukas Bischoff. Additional Icon art & CSS by Erik Flowers.
Weather-icons-lite, CSS update & Node-red compatibility changes by me - Paul Reed.

Licensing