Show date/tine window at startup?

24 views
Skip to first unread message

Paul Gilmartin

unread,
Feb 1, 2026, 12:06:54 PM (8 days ago) Feb 1
to Stellarium
Is there a GUI option to show Date/Tine window startup?
Ironically, I see:
[DialogPositions]
Configuration = 213,74
+DateTime = 406,135
position, but not visibility.
Could this be enabled in startup.ssc?

More generally, is there s script reference?
By imitation, I've successfully used such as:
var D2 = Math.floor( -583.92 * i);
core.setDate( ( D2 - D1 ) + " days");

I suspect the first is generic ECMA;
the latter Stellarium peculiar.

<https://stellarium.org/doc/25.0/classStelMainScriptAPI.html>
is little help to me.

--
Thanks,
gil

Georg Zotti

unread,
Feb 1, 2026, 12:58:39 PM (8 days ago) Feb 1
to Stellarium
Visibility of GUI panels is not storable and therefore not available on startup. 

The Stellarium User Guide has an introductory chapter on scripting. Then there are several examples, and the website you found is the ultimate reference, until somebody develops a better automated API documentation system. 

Paul Gilmartin

unread,
Feb 1, 2026, 9:40:29 PM (8 days ago) Feb 1
to stell...@googlegroups.com
On 2/1/26 10:58, Georg Zotti wrote:
> Visibility of GUI panels is not storable and therefore not available on startup.
> ...
Thanks. And not scriptable? Alas.

> The Stellarium User Guide has an introductory chapter on scripting. Then there are several examples, and the website you found is the ultimate reference, until somebody develops a better automated API documentation system.
> ...
I find documentation of the core functions more specifically in:
<https://stellarium.org/doc/25.0/classStelMainScriptAPI.html>

Where can I find similar documentation of the math. functions?

Is there a function that displays a dialog window and pauses
until the user clicks "Continue" or presses Enter? There
are some views I'd like to inspect at length, but dismiss
others quickly.

--
Thanks again,
gil

Georg Zotti

unread,
Feb 2, 2026, 5:22:31 AM (8 days ago) Feb 2
to Stellarium
As you found out, math functions are standard ECMAscript/Javascript, so any Javascript website will provide this information on math and other non-Stellarium modules.
Our scripting functions do not have GUI elements, and as described in the User Guide since Qt6 there is no way to pause/continue a script. If you critically need this, you can still use a Qt5-based version, but some recent functionality cannot be implemented here (e.g. speech output).
You can probably split a long script into smaller scripts which you can then run individually.

Paul Gilmartin

unread,
Feb 3, 2026, 10:31:11 PM (6 days ago) Feb 3
to stell...@googlegroups.com
On 2/2/26 03:22, Georg Zotti wrote:
> ...
> You can probably split a long script into smaller scripts which you can then run individually.

Thanks. It's starting to work.
o Can I define a hot key for that second script?
o Can my first script define that key?

Otherwise the Config->Scripts window takes
an inconvenient amount of screen area, mostly
blank space and startup is tedious.

--
Thanks again,
gil

Alexander V. Wolf

unread,
Feb 3, 2026, 10:44:19 PM (6 days ago) Feb 3
to stell...@googlegroups.com
Hi

ср, 4 февр. 2026 г. в 10:31, 'Paul Gilmartin' via Stellarium <stell...@googlegroups.com>:
On 2/2/26 03:22, Georg Zotti wrote:
>     ...
> You can probably split a long script into smaller scripts which you can then run individually.

Thanks.  It's starting to work.
o Can I define a hot key for that second script?

Yes, see Shortcut field in standard scripts
 
o Can my first script define that key?

Formally yes, but Stellarium will find this conflict and it will disable this shortcut.
 
--
With best regards, Alexander

Paul Gilmartin

unread,
Feb 4, 2026, 11:30:17 AM (5 days ago) Feb 4
to stell...@googlegroups.com
On 2/3/26 20:44, Alexander V. Wolf wrote:
> ...
> Thanks.  It's starting to work.> o Can I define a hot key for that second script?
>
> Yes, see Shortcut field in standard scripts
>
What's simplest and works well enough
is to run the script from a Remote Control
Plugin in a separate workspace.

> o Can my first script define that key?
>
> Formally yes, but Stellarium will find this conflict and it will disable this shortcut.

--
Thanks,
gil

Reply all
Reply to author
Forward
0 new messages