No description
Find a file
2023-11-13 07:05:10 +07:00
dist unignored dist folder 2023-11-11 18:17:51 +07:00
.DS_Store initial commit 2023-11-11 17:23:30 +07:00
.gitignore unignored dist folder 2023-11-11 18:17:51 +07:00
CHANGELOG.md initial commit 2023-11-11 17:23:30 +07:00
index.js major fix for handling timezones 2023-11-13 07:05:10 +07:00
LICENSE initial commit 2023-11-11 17:23:30 +07:00
package.json major fix for handling timezones 2023-11-13 07:05:10 +07:00
README.md initial commit 2023-11-11 17:23:30 +07:00
test.js major fix for handling timezones 2023-11-13 07:05:10 +07:00

nrel-spa

NREL SPA (Solar Position Algorithm) native implementation in JavaScript. This package allows for precise calculations of solar positions and phases based on geographical coordinates and time.

Installation

npm install nrel-spa

Usage

Basic usage examples:

const { calcSpa } = require('nrel-spa');

const myLat = 40.7128; // Latitude for New York City
const myLng = -74.006; // Longitude for New York City
const myDate = new Date(); // Current date

const solarData = calcSpa(myDate, myLat, myLng);
console.log(solarData);

API

Describe the functions and their parameters briefly.

Contributing

Contributions are welcome! Please read our contributing guidelines.

License

This project is licensed under the ISC License - see the LICENSE file for details.