weathertemperature
Last updated a year ago by jeanlks .
ISC · Original npm · Tarball · package.json
$ cnpm install weathertemperature 
SYNC missed versions from official npm registry.

Simple Weather App

A simple weather app so you can start it, call for localhost:2000/addressYouWant set an interval for browser refresh, and have a nice and beautiful chart with the temperature and humidity of your location.

Installation

 $ npm install

Set up environment variables

  • SECONDS_REFRESH - seconds to refresh the api.
  • API_KEY - api key from forecast.io.

Start it using the commands

 $ node app.js -s=seconds

Run via docker

You can also run this application via docker. First you need to execute the following command to generate the docker image with your application.

$ docker build -t <username>/weatherapp).

Then you can run the application by running.

$ docker run -p 2000:2000 -e API_KEY=<your-app-key> -e SECONDS_REFRESH=<seconds> -d <username>/weatherapp

That's all folks...

Current Tags

  • 1.0.2                                ...           latest (a year ago)

4 Versions

  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0-rc                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |