How to use cel://?

All about writing scripts for Celestia in Lua and the .cel system

Posts: 10138
Joined: 04.09.2002
With us: 18 years 4 months
Location: NY, USA

Post #2by selden » 27.10.2017, 10:22

I'm not sure what you mean by the word "use".

Most often one includes a Cel:// URL in the text of a Web page file (one with a file type of .htm or .html). One then invokes a Web browser to read that Web page. That browser passes the Cel:// URL to Celestia for interpretation. This allows one, for example, to create an instructional file which tells the reader about astronomical objects and invokes Celestia to display them.

Cel:// URLs don't necessarily have to be used in Web pages. They can be included in any type of text file which can be used to access URLs. For example, in a PDF or Word document.

In more detail:

A URL (Uniform Resource Locator) usually consists of several parts
where "protocol" specifies the I/O protocol to be used when accessing the specified file on the specified computer. The contents of a Cel URL don't actually point to a computer or file, though.

In the case of Cel:// URLs, the protocol text string "Cel" tells the URL interpreter (usually a Web browser) to invoke whatever program is associated with the protocol "Cel". That program is responsible for interpreting the text of the URL and doing something appropriate with it.

Celestia's Windows installer associates the program Celestia with the "Cel" protocol. The Web browser which is reading the text of the URL invokes Celestia and passes to Celestia the text of the URL string. Celestia is then responsible for interpreting the information provided in the Cel:// URL and doing something appropriate.

FWIW, some of the I/O protocols recognized by Web browsers include http, https, ftp, telnet and others.

Here's an example of the contents of a Web page which includes your Cel: url:

Code: Select all

<title> URL Example </title>

<a href="
View Io and its shadow on Jupiter.

Topic author
Posts: 15
Joined: 09.08.2017
With us: 3 years 5 months

Post #3by SkyStars » 27.10.2017, 13:19

There are a lot of parameters inside the url, I do not know what it means. Sorry, my English is not very good. : :smile:

Posts: 10138
Joined: 04.09.2002
With us: 18 years 4 months
Location: NY, USA

Post #4by selden » 28.10.2017, 02:00


Return to “Scripting”

Who is online