carldelfin / weather

A simple R script that fetches GPS coordinates of a given location using geocode.xyz and then reports the weather using data from Meteorologisk institutt in Norway.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

weather.sh

A simple R script that fetches GPS coordinates of a given location using geocode.xyz and then reports the weather using data from Meteorologisk institutt in Norway.

Usage

The R package jsonlite is required in order to parse JSON data. Other than that, just download the script and run it. For ease of use, bind it to an alias in your .bashrc, for instance alias weather='Rscript ~/dotfiles/scripts/weather.R' and then call it using weather <City> (e.g., weather Stockholm).

About

A simple R script that fetches GPS coordinates of a given location using geocode.xyz and then reports the weather using data from Meteorologisk institutt in Norway.

License:MIT License


Languages

Language:R 100.0%