Sun calculation js library which is fully based on formula from http://aa.quae.nl/en/reken/zonpositie.html
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
477 B
10 lines
477 B
const algorithm = require('./dist/solar-calculation');
|
|
|
|
const myJD = algorithm.dateToJD(new Date())
|
|
console.log(new Date().toString());
|
|
console.log(algorithm.getSunInformation(new Date('Sat Apr 14 2018 12:02:33 GMT+0700 (WIB)'), 3.597031, 98.678513));
|
|
console.log(algorithm.dateToJD(new Date('Sat Apr 14 2018 12:02:33 GMT+0700 (WIB)')))
|
|
console.log(algorithm.getHourAngle(
|
|
algorithm.dateToJD(new Date('Sat Apr 14 2018 12:02:33 GMT+0700 (WIB)')),
|
|
algorithm.CLIENT_lw
|
|
)); |