nrel_spa 1.0.0
nrel_spa: ^1.0.0 copied to clipboard
NREL Solar Position Algorithm for Dart and Flutter. Calculates solar zenith, azimuth, sunrise, sunset, and solar noon for any location and time. Pure Dart, zero dependencies, ±0.0003° accuracy.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add nrel_spaWith Flutter:
$ flutter pub add nrel_spaThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
nrel_spa: ^1.0.0Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:nrel_spa/nrel_spa.dart';