dashbling-widget-weather
This is a widget for Dashbling, displaying local Weather information.
Last updated 9 months ago by pascalw .
MIT · Original npm · Tarball · package.json
$ cnpm install dashbling-widget-weather 
SYNC missed versions from official npm registry.

Dashbling weather widget

This is a widget for Dashbling, displaying local Weather information.

Weather information is provided by OpenWeatherMap. This widget requires a (free) OpenWeatherMap API key. Register at https://openweathermap.org/appid.

Usage

Add to your project:

yarn add dashbling-widget-weather

Add a job to fetch weather data:

// dashbling.config.js
module.exports = {
    jobs: [
        {
            schedule: "*/30 * * * *",
            fn: require("dashbling-widget-weather/job")(
                "weather-amsterdam", // event id
                "YOUR OPENWEATHERMAP APPID HERE",
                "2759794" // city id
            )
        }
    ]
}

And add the widget to your dashboard:

import { WeatherWidget } from "dashbling-widget-weather";
const WeatherInAmsterdam = connect("weather-amsterdam")(WeatherWidget);

export default props => {
  return (
    <Dashboard>
      <WeatherInAmsterdam title="Amsterdam" />
    </Dashboard>
  );
};

Current Tags

  • 2.0.2-2                                ...           beta (9 months ago)
  • 2.0.2                                ...           latest (9 months ago)

20 Versions

  • 2.0.2                                ...           9 months ago
  • 2.0.2-2                                ...           9 months ago
  • 2.0.2-1                                ...           10 months ago
  • 2.0.2-0                                ...           10 months ago
  • 2.0.1                                ...           10 months ago
  • 2.0.1-0                                ...           10 months ago
  • 2.0.0                                ...           10 months ago
  • 1.1.8                                ...           a year ago
  • 1.1.7                                ...           a year ago
  • 1.1.6                                ...           a year ago
  • 1.1.5                                ...           a year ago
  • 1.1.4                                ...           a year ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 9
Last Day 0
Last Week 3
Last Month 28
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |