JSignage Astronomy plugin

From SpinetiX Support Wiki

(Redirected from JSignage:Astronomy)
Jump to: navigation, search

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

History

  • 2014-10-02: Started the development of the jSignage.Astronomy library.
  • 2015-08-07: Version 1.0.0, included within the 3.2.0 release of HMP firmware.
  • 2015-11-03: Version 1.0.1, included within the 4.0.0 release of the HMP firmware.
This page was last modified on 22 November 2018, at 18:56.