JSignage Astronomy plugin
From SpinetiX Support Wiki
(Redirected from JSignage:Astronomy)
Contents
Introduction
jSignage Astronomy library is a jSignage plugin used for different astronomy related calculations. The sun and moon widgets included into Elementi and the prayer times widgets are based on this plugin.
jSignage.Astronomy.js must be included in the document, after the jSignage.js library. It requires firmware 3.2.0 or greater.
<script xlink:href="http://download.spinetix.com/spxjslibs/jSignage.js"/>
<script xlink:href="http://download.spinetix.com/spxjslibs/jSignage.Astronomy.js"/>
API
This plugin extends the jSignage object, adding an jSignage.Astronomy
object property, having the following methods bound to it:
-
parseLatitude
-
parseLongitude
-
parseElevation
-
adjustYMD
-
parseDay
-
getTimeUnitsfromMs
-
dailyEventsScheduler
-
sunriseEquation
-
getSunPosition
-
PrayTimes
-
moonEquation
-
moonPath