×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Re:indiserver + telescope simulatror

  • Posts: 7
  • Thank you received: 0
Hi,

Im Following the example here indilib.org/developers/python-bindings.html to control a simulator telescope. Ive installed all the necessary libraries and software (including kstars/ekos).
indiserver is running (indiserver -vv indi_simulator_telescope indi_simulator_ccd) and kstars/ekos is running and connected to the simulator telescope.
when running the example script it fails here:Any hints on what am i doing wrong?
Thanks In advance
2 years 9 months ago #73051

Please Log in or Create an account to join the conversation.

What fails exactly?
The following user(s) said Thank You: Isaac
2 years 9 months ago #73052

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
attached the script im running.

error i get:
telescope_on_coord_set[0].s = PyIndi.ISS_ON  # TRACK
TypeError: 'ISwitchPropertyview' object is not subscriptable

version:
python 3.8
INDI Library: 1.9.0
Code 1.9.0-tgz. Protocol 1.7

Please let me know if more info is required, logs etc..
Thank you
Last edit: 2 years 9 months ago by Isaac.
2 years 9 months ago #73055
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
Anyone using pyindi here can advice please?
2 years 9 months ago #73137

Please Log in or Create an account to join the conversation.

I haven't used PyINDI for any projects really myself... and I believe it's time to add it to docs.indilib.org along with the other documentation.
2 years 9 months ago #73150

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
Do you know of anyone who did use the py client?
For starter i wanna make it work against a simulated telescope.
Going through the tutorial to the letter does not work for me.
Perhaps the guy who wrote the py client would know?
2 years 9 months ago #73159

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
I suppose you looked into this example? github.com/geehalel/pyindi-client/blob/m...es/pyindi-synscan.py

-Eric
2 years 9 months ago #73189

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 0
Hi Eric, are you asking?
I actually followed the example here:
www.indilib.org/develop/indi-python-bindings.html
2 years 9 months ago #73197

Please Log in or Create an account to join the conversation.

  • Posts: 1029
  • Thank you received: 301
...which is also very nice. The pyindi source repository moved from sourceforge to github, so you may want to check the code there too, and ask questions if needed.

-Eric
2 years 9 months ago #73207

Please Log in or Create an account to join the conversation.

Time to create page: 0.714 seconds