forecaster 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +4 -0
- data/README.md +24 -14
- data/lib/forecaster/cli.rb +2 -2
- data/lib/forecaster/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7261e7a88d0cd7feee83d06b99e62942c11378b03788569d192cdce12bc18d6f
|
4
|
+
data.tar.gz: e6638871a6850d57449ac6b281a77bb5c534c7729e25b845044102d5f6029242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 435b1930bf1ecbeb8748de9e1d6221125b75ed247c10f6e3f89cc91e077bf27ddd3eb18d172e6ad5c77113505621906517740f41155e9952c773b8129eeb9183
|
7
|
+
data.tar.gz: a4551910201b7a3d847b7988664fda22963dfe6e9e5e9327649ea33d2733a53f3c4e59fec3a55502aabaf8c7d5eeb23f9e1c5e1f92db9955c9aba881dc723bc9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -7,8 +7,12 @@ Forecaster
|
|
7
7
|
[![Code Coverage](https://codecov.io/gh/vinc/forecaster/branch/master/graph/badge.svg)](https://codecov.io/gh/vinc/forecaster)
|
8
8
|
[![Gemnasium](https://img.shields.io/gemnasium/vinc/forecaster.svg)](https://gemnasium.com/github.com/vinc/forecaster)
|
9
9
|
|
10
|
-
|
11
|
-
System
|
10
|
+
[Forecaster](https://github.com/vinc/forecaster) is a gem wrapping `wgrib2` to
|
11
|
+
fetch and read weather data directly from the Global Forecast System.
|
12
|
+
|
13
|
+
It comes with a library and a CLI allowing you to type commands like `forecast
|
14
|
+
for this afternoon in paris` in your terminal to get the latest weather
|
15
|
+
forecast.
|
12
16
|
|
13
17
|
[![asciicast](https://asciinema.org/a/146117.png)](https://asciinema.org/a/146117)
|
14
18
|
|
@@ -16,27 +20,33 @@ System (GFS).
|
|
16
20
|
Installation
|
17
21
|
------------
|
18
22
|
|
19
|
-
|
23
|
+
```bash
|
24
|
+
gem install forecaster
|
25
|
+
```
|
20
26
|
|
21
27
|
Alternatively you can build the gem from its repository:
|
22
28
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
29
|
+
```bash
|
30
|
+
git clone git://github.com/vinc/forecaster.git
|
31
|
+
cd forecaster
|
32
|
+
gem build forecaster.gemspec
|
33
|
+
gem install forecaster-1.0.0.gem
|
34
|
+
```
|
27
35
|
|
28
36
|
In both cases you need to make sure that you have `wgrib2` present in your
|
29
37
|
system.
|
30
38
|
|
31
39
|
To install the `wgrib2` from source:
|
32
40
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
41
|
+
```bash
|
42
|
+
wget http://www.ftp.cpc.ncep.noaa.gov/wd51we/wgrib2/wgrib2.tgz
|
43
|
+
tar -xzvf wgrib2.tgz
|
44
|
+
cd grib2
|
45
|
+
export CC=gcc
|
46
|
+
export FC=gfortran
|
47
|
+
make
|
48
|
+
sudo cp wgrib2/wgrib2 /usr/local/bin/
|
49
|
+
```
|
40
50
|
|
41
51
|
Usage
|
42
52
|
-----
|
data/lib/forecaster/cli.rb
CHANGED
@@ -230,8 +230,8 @@ module Forecaster
|
|
230
230
|
putf("Temperature", temperature, "%.0f °C")
|
231
231
|
putf("Wind", wind_speed, "%.1f m/s (%s)", optional: wdir)
|
232
232
|
putf("Precipitation", precipitation, "%.1f mm")
|
233
|
-
putf("Humidity", humidity, "%.0f
|
234
|
-
putf("Cloud Cover", cloud_cover, "%.0f
|
233
|
+
putf("Humidity", humidity, "%.0f %%")
|
234
|
+
putf("Cloud Cover", cloud_cover, "%.0f %%")
|
235
235
|
putf("Pressure", pressure, "%.0f hPa")
|
236
236
|
end
|
237
237
|
|
data/lib/forecaster/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forecaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vincent Ollivier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
269
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.6
|
270
|
+
rubygems_version: 2.7.6
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: Wrapper around wgrib2 to read data from the GFS
|