Sha256: 0d2899f1b64411a904a75d7a943849974bd5321ce0d20a4d48f85f3a31488e80

Contents?: true

Size: 325 Bytes

Versions: 5

Compression:

Stored size: 325 Bytes

Contents

# -*- coding:utf-8 -*-
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)

require 'weather_pinpoint_jp'

forecast = WeatherPinpointJp.get("有楽町", WeatherPinpointJp::STATION)

puts forecast.location
t = forecast.start_time
forecast.weather.each {|w|
  puts "#{t.strftime("%Y/%m/%d %H:%M")} #{w}"
  t += 3600
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
weather_pinpoint_jp-0.0.5 sample/station.rb
weather_pinpoint_jp-0.0.4 sample/station.rb
weather_pinpoint_jp-0.0.3 sample/station.rb
weather_pinpoint_jp-0.0.2 samples/station.rb
weather_pinpoint_jp-0.0.1 samples/station.rb