×

INDI Library v1.9.7 Released (29 Jul 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Take image with python script

  • Posts: 49
  • Thank you received: 20
Do you habe the latest drivers and does the camera work with KStars/Ekos? (maybe this problem: indilib.org/forum/ccds-dslrs/548-zwo-asi...on.html?limitstart=0)

I'm not really well versed in INDI but maybe you have to choose an avaiable camera after connecting to ASI CCD device.
Last edit: 7 years 5 months ago by fehlfarbe.
7 years 5 months ago #3818

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

  • Posts: 15
  • Thank you received: 0
I followed the tutorial on the indi web page for installing the driver, so I assume it is the newest one. I just installed Kstars, and did not get it to work there either, but that might have something to do with my lack of experience with astronomy software... I will investigate this further.

Thanks so far :-)
7 years 5 months ago #3819

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

magnargj, I think you're using INDI packages for Raspberry PI which are using older ASI CCD driver. Try to compile INDI on your PI from SVN to use the latest driver which is known to work OK on the Raspberry PI.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
7 years 5 months ago #3822

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

  • Posts: 15
  • Thank you received: 0
7 years 5 months ago #3824

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

  • Posts: 45
  • Thank you received: 6

Replied by gus on topic Take image with python script

I found this topic very interesting and went along the tutorial.
Compiling swig-indi-python showed many warnings, but I thought it wasn't important.
But as soon as I first ran:
python test-indiclient.py
I got:
pi@raspberrypi ~/swig-indi-python $ python test-indiclient.py
2015-04-21 14:24:52,125 creating an instance of PyQtIndi.IndiClient
Connecting and waiting 2secs
Server connected (localhost:7624)
2015-04-21 14:24:52,135 new device CCD Simulator
2015-04-21 14:24:52,136 new property CONNECTION for device CCD Simulator
2015-04-21 14:24:52,137 new property DRIVER_INFO for device CCD Simulator
2015-04-21 14:24:52,138 new property DEBUG for device CCD Simulator
2015-04-21 14:24:52,139 new property CONFIG_PROCESS for device CCD Simulator
2015-04-21 14:24:52,140 new property SIMULATOR_SETTINGS for device CCD Simulator
2015-04-21 14:24:52,141 new property ON_TIME_FACTOR for device CCD Simulator
List of devices
CCD Simulator
List of Device Properties
-- CCD Simulator
   > CONNECTION
swig/python detected a memory leak of type 'INDI_PROPERTY_TYPE *', no destructor found.
Traceback (most recent call last):
  File "test-indiclient.py", line 111, in <module>
    if p.getType()==PyIndi.INDI_TEXT:
AttributeError: 'module' object has no attribute 'INDI_TEXT'

Any advise?
Last edit: 7 years 5 months ago by gus.
7 years 5 months ago #4028

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

  • Posts: 49
  • Thank you received: 20
Hey gus_,

that's weird. I had to recompile the Python wrappers and now I get the same errors. Maybe something changed in new Indi version?
7 years 5 months ago #4039

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

INDI_TYPE was re-factored to INDI_PROPERTY_TYPE in v1.1.0 (which is not officially released yet), so to fix this, I suggest change all instances in the python stuff from INDI_TYPE to INDI_PROPERTY_TYPE
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You: fehlfarbe, gus
7 years 5 months ago #4040

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

  • Posts: 49
  • Thank you received: 20
I'm using the PPA with the current version is 1.1.0. Did you also moved the INDI_TYPE enumerations to indibasetypes.h?

I solved the problem. Swig generates the Python wrappers but it didn't find the indibasetypes.h. So I just added in swig-indi-python/indiclientpython.i
%include <indibasetypes.h>
at line 48 (after %include <indiproperty.h>). Then I recompiled the wrappers (cmake, make, make install) and now the enumerations are avaiable by their old name (INDI_NUMBER etc.) and the script works :)

Edit:
Ok, now I see it. indibasetypes.h was added two weeks ago: sourceforge.net/p/indi/code/2194/?page=1#diff-1
The following user(s) said Thank You: gus
Last edit: 7 years 5 months ago by fehlfarbe.
7 years 5 months ago #4041

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

  • Posts: 45
  • Thank you received: 6

Replied by gus on topic Take image with python script

It worked for me too. Thank you!

Now let's code something interesting... ;)
7 years 5 months ago #4044

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

  • Posts: 439
  • Thank you received: 51
Hello I am trying to compile the swig-iindi-python. Compilation failed and I get the following message error.
Looks like something is missing to find the libindiserver.h file.
Last edit: 6 years 3 months ago by Patrick.
6 years 3 months ago #8572

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

  • Posts: 69
  • Thank you received: 12

Replied by anat on topic Take image with python script

Use Revision 36 instead of the latest one which has Experimental libindiserver:
# install swig-indi-python
apt-get install swig2.0
cd /home/pi/INDI/
svn co -r 36 svn://svn.code.sf.net/p/pyindi-client/code/trunk/swig-indi/swig-indi-python/
mkdir libindipython
cd libindipython
cmake ../swig-indi-python
make
sudo make install
The following user(s) said Thank You: Patrick
6 years 3 months ago #8577

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

  • Posts: 439
  • Thank you received: 51
Thank you Anat. I still have some misunderstanding. I am testing PyIndi with the following code:

And I get a weird message about telescope simulator and an unexpected end.
Furthermore I don't understand the concept of BLOB ???

Last edit: 6 years 3 months ago by Patrick.
6 years 3 months ago #8578

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

Time to create page: 0.818 seconds