Skip to content

zskelton/terminal_weather

Repository files navigation

Node.js CI

Terminal Weather

A simple weather plugin for your terminal.

screenshot

Setup

Usage

Note: You will need an OpenWeather API Key to run this program.

  • If you choose to run as a NodeJS app or to build your own features:
git checkout https://github.com/zskelton/terminal_weather.git
cd terminal_weather
# You'll need to add your OpenWeather API Key - The Script will add it in secret/config.js
./setSecret [OpenWeatherAPI]
npm run
  • To create an executable:
npm install -g pkg
npm run-script build
# The executable will be in the ./build folder

Purpose

This was a project to practice use of NodeJS. All files were created by hand, no automated software or build for package.json to get a better understanding of the innerworkings of NodeJS. Also, I just like a weather update on my terminal.


Question: Can NodeJS be a scripting language?.
Answer: Yes, but the asynchronous nature would make it frustrating beyond reason.