项目作者: zal-lex

项目描述 :
Weather forecast console program
高级语言: Ruby
项目地址: git://github.com/zal-lex/meteoservice.git
创建时间: 2020-05-08T08:54:17Z
项目社区:https://github.com/zal-lex/meteoservice

开源协议:

下载


NOTE: this project taught me to use third-party API and to write tests with RSPEC

Meteoservice forecast

This console program produce you 24 hours weater forecast in the selected city.
It uses data from XML API meteoservice.ru.

Source of cities

The cities for the forecast are represented in the CITIES constant in file:

  1. /meteoservice.rb

If you want to change this list, you should find id of interested city there:

  1. meteoservice.ru/content/export

Install and launch the program

It is very simple to use: just clone repo and run the command:

  1. ruby meteoservice.rb

The application requires Ruby version 2.4.0 or higher