diff --git a/README.md b/README.md index 95b7a0d..5237c8e 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@ Sun calculation fully based on formula from http://aa.quae.nl/en/reken/zonpositi This program is not really accurate about the calculation. For the sunrise and sunset, the error value is about 2 minutes miss from the actual time. For the Altitude the error value is near 0.6 degrees and the azimuth as well. ## Install with npm - npm install calculation-ofsun + `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. @@ -38,7 +38,7 @@ sunriseandsunset | JulianDate Nethereland GMT +1 It'll return time denpend on your local time - { sun_position: { azimuth: -77.80678591967518, altitude: 4.0819291879429525 }, + `{ sun_position: { azimuth: -77.80678591967518, altitude: 4.0819291879429525 }, date: 'Sat Mar 10 2018 13:39:40 GMT+0700 (WIB)', sunrise: 'Sat Mar 10 2018 13:07:56 GMT+0700 (WIB)', sunset: 'Sun Mar 11 2018 00:36:33 GMT+0700 (WIB)', @@ -49,6 +49,6 @@ It'll return time denpend on your local time RA: { degrees: -9.80213468943287, rad: -0.17107952405455543 }, clientJD: 2458187.777554097, true_anomaly: { degrees: 66.39837914429494, rad: 1.1588703340554818 }, - sideraltime: 272.3441375535913 } + sideraltime: 272.3441375535913 }`