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

alfred-clima

v0.2.0

Published

Alfred workflow for weather forecast for the next 7 days

Downloads

3

Readme

Overview

Clima is a simple workflow for Alfred designed to give you the current weather conditions and 7 day forecast directly in Alfred. It solves a problem I personally have with have use alfred to load a website just to get the weather forecast.

There are a few options for Clima.

  1. Store a default location and use the keyword without an argument
  2. Search for a location by name (Valencia, Spain)
  3. Search for a location by coordinates (xxxx, -yyyy)

Here's more details on using Clima

Install

$ npm install --global alfred-clima

Requires Node.js 8+ and the Alfred Powerpack.

Requirements

DarkSky API Key

Clima is powered by the awesome DarkSky API. DarkSky provide a free plan with a 1000 calls a day. You will need your own DarkSky API Key to power Clima.

  • You can register for a DarkSky Account here
  • You can access or reset your key [here](https://darksky.net/dev/account

Details on adding a DarkSky API key to your Clima configuration

Google Maps API Key

Technically you can use Clima without a Google Maps API (Geocoding API). If you either search by coordinates or store your default location by coordinates, you can avoid Goolge Maps API. However, if you want to get the most from Clima, I recommend adding a Google Maps API Key to your Clima configuration. Clima uses the Geocoding API to support searching by location name and also to display the location name when coordinates have been provided.

  • You can signup for a free Google Cloud account here
  • You can access your Google Maps API Key here

Details on adding a Google Maps API key to your Clima configuration

Setup

There is one requred task to complete for Clima to work (adding the DarkSky API key) and two option tasks (adding Google Maps API key and setting a default location).

Adding a DarkSky API key

Once you have created your DarkSky account and have copied your API key you need to add it to the Clima configuration.

By default the keyword for adding DarkSky key is w:darkskyapikey.

  • Type w:darkskyapikey into Alfred
  • Paste your API key (or type it if you're a sadist)
  • Hit enter and BOOOM! you should have Clima ready to rock and roll.

Adding a Google Maps API key

Similar to adding a DarkSky API key, you can copy and paste your key from Google use the keyword w:googlemapsapikey.

  • Type w:googlemapsapikey into Alfred
  • Paste your API key (sadists, you know what to do)
  • Hit enter and Bob's your uncle, Google now tracks your weather needs!

Setting a default location

If you've added a Google Maps API key, adding a location is simple. If you haven't the following steps will require you to use coordinates for your default location.

  • Type w:defaultlocation into Alfred
  • As an argument provide either a location name (Los Angeles, California) or coordinates (34.0201613,-118.6919205)
  • Hit enter and now you can enjoy the weather forecast at your figure tips.
  • Just type weather into Alfred without and argument and you'll get your default location's forecast

Note: If you want to get coordinates for a specific location, you can search for it in Google Maps and copy the coordinates from the address bar (or use an online tool, there are lots for free).

Usage

Default Location

To get the weather once you've configured a default location, just type the keyword (by default weather) and sit back to enjoy the fruits of your labour

Search by location

To get the weather of a specific location, you can merely type the location after the keyword. Providing you've setup Google Maps API then you'll be get all the weathery goodness

Search by coordinates

If you don't want to setup Google Maps you can also search using coordinates (xxxxx, -yyyyy). You can grab the location coordinates from Google Maps or from a free online tool.

Credits

  • Powered by Dark Sky
  • Icons by Heeyeun
  • Created on [Alfy] (https://github.com/sindresorhus/alfy)

Created By

Chris Nicol

License

GNU GENERAL PUBLIC LICENSE