Sha256: 47800c42ac9ec487a9746c0383a38c4ecfc22de7718a2a3d848e14e0c8f2a6dd
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
require 'owmo' =begin rdoc An example on how to get the weather forcast and use the different parameters. =end api_key = "" OWMO::weather api_key: api_key do |weather| # http://openweathermap.org/forecast16 query = { lat: "40.7128", lon: "74.0059", # [city_name, city_id, zip, lat/lon] mode: 'json', # [json, xml, html] Not required, but an option units: 'imperial', # [imperial, metric] Not required, but an option lang: 'en_US' # Not required, but an option } extended = weather.get :extended, query puts extended end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
owmo-0.2.0 | examples/extended.rb |