Sha256: d18c7a8e308bd1d5eceeefbd6922ba494efa5f525f52825ee85ea1104f1a1a04
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
require_relative '../config' class GetWind < NOAA_SOAP WSDL = "https://opendap.co-ops.nos.noaa.gov/axis/webservices/wind/wsdl/Wind.wsdl" def initialize super WSDL end def client super end def pull_data (station_id = 8454000) message = {stationId: station_id.to_s, beginDate: GMT.gmt_less_1h, endDate: GMT.gmt_now, \ unit: "Meters", timeZone: 0} response = self.pull_response(:get_wind_and_metadata, message) response.to_hash[:wind_measurements][:data][:item] #this returns a hash of the data points. end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cpdundon-cli-app-take2-0.1.3 | lib/get_wind.rb |