Remote Control Plugin View Position

85 views
Skip to first unread message

Abuuh Soo

unread,
Apr 5, 2021, 8:53:28 AM4/5/21
to Stellarium

Hi everyone,

i am completely noob with this webstuf but managed to read status and view information via http get messages.

Now i want to set the View position with a post message, for example to
{"jNow":"[-0.300945, 0.728847, 0.614992]"}


What is the correct control line to set the View via the remote control plugin?
Are the coordinates submitted via the url or the post buffer?
What Syntax do i have to use?

Thx :D



Abuuh Soo

unread,
Apr 5, 2021, 11:23:39 AM4/5/21
to stell...@googlegroups.com
I should note that i am using labview.

I can write a header, url and a buffer for the post request.I am not sure where to put the information.

From my understanding the url must be http://localhost:8090/api/main/view/

I need to specify the parameter J2000 or similar (see http://stellarium.org/doc/head/remoteControlApi.html#rcMainServiceView)
and the coordinates as a JSON Number Array of size 3

I tried "j2000":"[-0.614611, 0.707854, 0.348133]"







--
You received this message because you are subscribed to a topic in the Google Groups "Stellarium" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/stellarium/NdTTszPvfag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to stellarium+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/stellarium/cce67e89-958b-4e09-b205-c2d82d62ed51n%40googlegroups.com.

Georg Zotti

unread,
Apr 5, 2021, 5:18:09 PM4/5/21
to Stellarium
curl --data 'j2000=[1.0,0.0,0.0]' http://localhost:8090/api/main/view

Abuuh Soo

unread,
Apr 6, 2021, 11:03:49 AM4/6/21
to Stellarium
Thanks Georg for bringing me on the right rack.

With " its working in the win10 comand prompt window.

     curl --data "j2000=[2.0,3.0,0.0]" http://localhost:8090/api/main/view

Labview still doesnt send anything out, but thats a problem for the Labview Forum.

Thx again!

Georg Zotti

unread,
Apr 6, 2021, 11:19:16 AM4/6/21
to Stellarium
I think the vector should be normalized (length==1), but maybe this also works.
Reply all
Reply to author
Forward
0 new messages