0.0
No commit activity in last 3 years
No release in over 3 years
API wrapper for version 5 of NREL PVWatts JSON API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.12.5, ~> 2.12
>= 4.5.0, ~> 4.5
>= 3.2.0, ~> 3.2
>= 0.9.2, ~> 0.9
>= 1.20.4, ~> 1.20

Runtime

~> 0.13.3
~> 1.8
 Project Readme

ruby_pvwatts

Provides a wrapper for NREL PVWatts v5 API. Currently only supports JSON format. Usage: You need to pass in an API Key, which is obtained from the NREL. Additionally, you'll need to include a hash of at least the required parameters. See http://developer.nrel.gov/docs/solar/pvwatts-v5/ for more information.

Usage:

require 'ruby_pvwatts'

result = RubyPvWatts.new(
  api_key: 'YOUR_API_KEY',
  system_capacity: 5,
  module_type: 1,
  losses: 14,
  array_type: 1,
  tilt: 22,
  azimuth: 143,
  address: '123 Fake Street Anytown CO, 12345',
  dataset: 'tmy3',
  radius: 0
)

result.solrad_annual # => 5.63514852538037

Licensed under the MIT license