Script TheSky
Version 1.32
|
TheSky offers several useful objects documented here that can be manipulated programmatically. These objects allow a broad range of capabilities from manipulating TheSky (for example, Look North), to retrieval of celestial object information (for example, what are the coordinates of the Sun) to device control (for example, slew the mount to M1 and take a photo).
This documentation lists these objects along with their methods (called slots) and their properties. These objects can be called from within TheSky (Tools, Run JavaScript). In addition these objects can be called externally by using TheSky's ability to execute a script passed to it over a socket and returning the result of the script to the client (Tools, TCP server).
Since there is no standardized, cross-platform remote procedure call, and TheSky is cross-platform, TheSky's native scripting architecture is based upon two standardized, cross-platform technologies, namely sockets and the ECMAScript Language Specification ECMA-262 ECMA-262
Hopefully this flexible scripting architecture will open up uses for TheSky in new and exciting ways with the increase its interoperability between processes on the same machine, across machines and operating systems. Some examples to exploit this architecture include running two virtual machines (with differing operating systems where one vm scripts TheSky running on the vm) and iOS clients and network clients.
All Scriptable Objects (Modules tab)
See also:
Running a JavaScript Over a Network Socket
Synchronous vs. Asynchronous Execution