|
|
|
@ -7,14 +7,12 @@ This program is not really accurate about the calculation. For the sunrise and s |
|
|
|
|
## Install with npm |
|
|
|
|
npm install calculation-ofsun |
|
|
|
|
## How to Use It |
|
|
|
|
'''javascript |
|
|
|
|
|
|
|
|
|
'''javascript |
|
|
|
|
const cls = require('calculation-ofsun') |
|
|
|
|
console.log(cls.getSunInformation(new Date(), 33, 3)) |
|
|
|
|
/* Get Sun Information expected 3 parameters */ |
|
|
|
|
/* Date, lat, long */ |
|
|
|
|
|
|
|
|
|
''' |
|
|
|
|
''' |
|
|
|
|
You can also call any function except getSunPosition, because it automatically calls by the |
|
|
|
|
getSunInformation function to get sun position according to your input parameters for getSunInformation. |
|
|
|
|
|
|
|
|
|