Skip to content

Constantly read parameters from an external file to manipulate functions in Stellarium using its script engine. #3760

Closed Answered by FogoVoar
FogoVoar asked this question in Q&A
Discussion options

You must be logged in to vote

As @gzotti suggested, it is possible to achieve this by using the RemoteControl plugin to start a server with an API for Stellarium functions.
Press F2 > Plugins > Remote Control > Load at startup > configure > [x] Server enabled
If the configure button is unavailable, simply restart Stellarium.

To send the commands you will need to send HTTP requests using something like fetch or axios (both comes by default in nodejs), or curl.

In the RemoteControl documentation you can find the "view" field which has 3 functions to rotate the camera:

    "j2000" : "[x,y,z]",
    "jNow"  : "[x,y,z]",
    "altAz" : "[x,y,z]"

To call the function with parameters you must follow this format:
j2000=[0.5,0.…

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
2 replies
@FogoVoar
Comment options

@gzotti
Comment options

Comment options

You must be logged in to vote
8 replies
@gzotti
Comment options

@10110111
Comment options

@FogoVoar
Comment options

@gzotti
Comment options

@FogoVoar
Comment options

Comment options

You must be logged in to vote
2 replies
@gzotti
Comment options

@FogoVoar
Comment options

Answer selected by FogoVoar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants