×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Take image with python script

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic Take image with python script

I have an update. I re-installed all the programs: INDI and pyindi and now its working !
For the records, the name of the camera that one have to write in line 12 of the script can be found in ekos. Also, in the same place it can be found the drivers which that camera use, in order to use them when start the INDI server in the console (i.e. indiserver indi_sbig_ccd.

I dont know where the problem was.
Thank you very much

One last thing. Now, when you call the script, it enters in an endless loop and so, the command line is blocked. Can you guess some way to do that the script only take a photo and release the command line in order to wait for others instructions?
7 years 6 months ago #9871

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

  • Posts: 49
  • Thank you received: 20
finally :)

You could add a boolean variable to the IndiClient class that gets true/false when the image is ready and check the variable it in the endless loop.
7 years 6 months ago #9873

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

  • Posts: 19
  • Thank you received: 0

Replied by SB on topic Take image with python script

Thank you very much. The code works perfectly
Now, it is the very last question. How can I change the binning of the camera?

Really, thank you very much for share your code with the rest of us.
7 years 6 months ago #9940

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

  • Posts: 49
  • Thank you received: 20
When you start the Python script there should be a list of camera properties (new Property XXX) in your log. There should be the property CCD_BINNING or something similar. Just set a new value the same way you start a new exposure:
def newProperty(self, p):
    if p.getName() == "CCD_BINNING":
	    bin = self.device.getNumber("CCD_BINNING")
            bin[0].value = 5
            self.sendNewNumber(bin)
Last edit: 7 years 6 months ago by fehlfarbe.
7 years 6 months ago #9983

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

  • Posts: 1
  • Thank you received: 0
Thanks for your tutorial

Actually I get the "bus error" message after running test-indiclient.py

I'm running it on Raspberry Pi 3
any idea what's wrong?

Thanks :)
5 years 9 months ago #26541

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

  • Posts: 49
  • Thank you received: 20
Can you post the full error message?
5 years 9 months ago #26551

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

Time to create page: 0.644 seconds