Thibault thanked Michael in topic 10Micron Mount Modelling 3 weeks ago
Thibault replied to the topic 'Any iOptron users out there?' in the forum. 1 month ago

Good question, I am also closely following this topic.

The single encoder version looks particularly appealing

Read More...

Thibault replied to the topic 'Accessing image stream from PyIndi - developping an autofocus.' in the forum. 2 months ago

Thank you Jasem for your answer.
I found this from the documentation:
indilib.org/develop/developer-manual/101...es.html#h5-streaming

I now understand what you meant, ie the same blob from ccd1 is used to get a handle to the images.
However, I wonder if the blob can be deserialized as a fits file also in this case or if it is sent as a raw buffer ?

Read More...

Thibault created a new topic ' Accessing image stream from PyIndi - developping an autofocus.' in the forum. 2 months ago

Dear all,

I always like to start by thanking all developers of Indi. This tools changed the way I do amateur astronomy for ever :)
Since I discovered Indi, I decided to write my own sequencer in python, despite the fact that Ekos looks awesome, and that I am probably going to use it from time to time because of its robustness and ease of use.

For my current project, I use of course PyIndi, and although it was not an easy tool for me to start with, I now consider that this API is really awesome, I especially like the fact that one can leverage very powerful tools from the python community such as astropy.

I hope it will remain maintained in the future, and I'll try to give support to people new to pyindi on the forum if I can help (don't hesistate to MP me).

Anyway, after this long introduction, here is what I would like to ask:

Is it possible to get the image stream coming from a DSLR/CCD/CMos camera through PyIndi, so that one can for instance open it through open CV ?
(I already know from the tutorial, how to get the fits blob asynchronously)
Second question (more open this one), how would one implement a reasonably fast autofocuser using pyindi/indi ?

I can eventually write some c++ code if this is really needed (I'll make my own python binding later)

Thank you very much for giving this awesome tool to the world :)

Read More...

Thibault thanked Hans in topic 10Micron Mount Modelling 3 months ago
Thibault replied to the topic 'Setting exposure impossible with CCD Simulator' in the forum. 4 months ago

Right ! I am sorry for my last message, what happened is that I had multiple indi binary on my system, and I was launching

./indiserver -vvv indi_simulator_ccd

instead of
./indiserver -vvv [i][b]./[/b][/i]indi_simulator_ccd

Now the error is gone, and I can resume my current work.
But I am still interested in any ressource that would help me to undersand the snooping mechanism.

Read More...

Thibault replied to the topic 'Setting exposure impossible with CCD Simulator' in the forum. 4 months ago

I tried with the latest version, but unfortunately, I still get the same error, after setting EQ PE in Simulator config

Read More...

Thibault replied to the topic 'Setting exposure impossible with CCD Simulator' in the forum. 4 months ago

Ok, looking at the code from

libindi/libs/indibase/indiccd.cpp
, I realized that I did not understood your advice.

Looking at this code, it looks absolutely impossible to use CCD Simulator without pairing with a telescope as a "snooping device".

I may be wrong on this, but to me, it looks like it is impossible to setup a simple script that launch acquisition on a camera, without first pairing it through a complex mechanism (snooping) to another device that is absolutely not used.

Read More...

Thibault replied to the topic 'Setting exposure impossible with CCD Simulator' in the forum. 4 months ago

Thank you@knro for your valuable help.
However, it is still very difficult for me to apply your advices:

First I had to check wether the property you where talking about was a switch/text/number, and found answer in the c++ source code: it looks like it is a hierarchical number.
Then I tried to send those to the server and it looks like it did not worked :

2018-01-03T16:55:01: Client 0: read newNumberVector CCD Simulator EQUATORIAL_PE 
      RA_PE='12'
     DEC_PE='45'
2018-01-03T16:55:01: Driver indi_simulator_ccd: queuing responsible for <newNumberVector device='CCD Simulator' name='EQUATORIAL_PE'>
2018-01-03T16:55:01: Driver indi_simulator_ccd: sending msg copy 1 nq 1:
<newNumberVector device="CCD Simulator" name="EQUATORIAL_PE">
    <oneNumber name="RA_PE">
12
    </oneNumber>
    <oneNumber name="DEC_PE">
45
    </oneNumber>
</newNumberVector>

2018-01-03T16:55:01: Driver indi_simulator_ccd: read setNumberVector CCD Simulator EQUATORIAL_PE Ok
      RA_PE='12'
     DEC_PE='45'
2018-01-03T16:55:01: Client 0: queuing <setNumberVector device='CCD Simulator' name='EQUATORIAL_PE'>
2018-01-03T16:55:01: Client 0: sending msg copy 1 nq 1:
<setNumberVector device="CCD Simulator" name="EQUATORIAL_PE" state="Ok" timeout="60" timestamp="2018-01-03T16:55:01">
    <oneNumber name="RA_PE">
12
    </oneNumber>
    <oneNumber name="DEC_PE">
45
    </oneNumber>
</setNumberVector>

2018-01-03T16:55:01: Client 0: read newNumberVector CCD Simulator CCD_EXPOSURE 
 CCD_EXPOSURE_VALUE='5'
2018-01-03T16:55:01: Driver indi_simulator_ccd: queuing responsible for <newNumberVector device='CCD Simulator' name='CCD_EXPOSURE'>
2018-01-03T16:55:01: Driver indi_simulator_ccd: sending msg copy 1 nq 1:
<newNumberVector device="CCD Simulator" name="CCD_EXPOSURE">
    <oneNumber name="CCD_EXPOSURE_VALUE">
5
    </oneNumber>
</newNumberVector>

2018-01-03T16:55:01: Driver indi_simulator_ccd: read message CCD Simulator   '[ERROR] Telescope coordinates missing. Make sure telescope is connected and its name is set in CCD Options.'

What should I do ? (I am using your ppa version of indi for now, and currently retrieving the github version for further investigations)

Read More...

Thibault replied to the topic 'Survey type work, seeking right approach' in the forum. 4 months ago

Thank you for the prompt response.
I did not took a look into ekos source code yet, but is there a chance that some functionality may be accessible through python wrappers ?

Read More...

Thibault replied to the topic 'Survey type work, seeking right approach' in the forum. 4 months ago

Very interesting topic.
As I would like to bypass completely ekos/kstars I was curious about wether it would be possible to use autofocus and plate solver with pyindi ?

If no, why, and what part of indi should I write additional wrapper for ?

Read More...

Thibault created a new topic ' Setting exposure impossible with CCD Simulator' in the forum. 4 months ago

Dear all,

As usual, I start with thanking developer of Indi, which for me, THE opensource software that I was waiting for, in order to realize my dream:have a robotic observatory.
Although I am used to C++, I decided to go for python, as I would like to focus more later on high level scientifi stuff.

Unfortunately, I found programming with PyIndi very difficult because of the very sparse documentation, and I found myself unable to find informations about the various python class availbable.

Currently, it looks like I cannot launch an exposure on the CCD simulator because of the following error:

[ERROR] Telescope coordinates missing. Make sure telescope is connected and its name is set in CCD Options.

It looks like the super class of CCDSimulator, IndiCCD, has RA and Dec attributes, that should be set ?!
Although I am not sure to understand why, conceptually it is mandatory to know RA and Dec coordinates before perfoming a shoot, I would like to know how could I overcome this problem, for instance by setting a random value to those.

I took a look at the Python examples here: indilib.org/support/tutorials/166-instal...on-raspberry-pi.html

And it looks like the ccd device should "snoop" for another device informations :
# Ensure the CCD simulator snoops the telescope simulator
# otherwise you may not have a picture of vega
ccd_active_devices=device_ccd.getText("ACTIVE_DEVICES")
while not(ccd_active_devices):
    time.sleep(0.5)
    ccd_active_devices=device_ccd.getText("ACTIVE_DEVICES")
ccd_active_devices[0].text="Telescope Simulator"
indiclient.sendNewText(ccd_active_devices)

It is still unclear to me why the ccd_active_devices is sent to the indiclient directly, and not the ccd device itself ?
Also, what should I do If I dont have a telescope device connected through indi, for instance If I only want to use Indi to automatize ccd acquisition but not mount related stuff ?

Thank you in advance for your help.

Read More...

Thibault thanked Hans in topic 10Micron Mount Modelling 6 months ago

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!