Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...

TOPIC: Take image with python script

Take image with python script 1 year 9 months ago #9871

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?

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

Take image with python script 1 year 9 months ago #9873

  • fehlfarbe
  • fehlfarbe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Karma: 1
  • Thank you received: 18
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.

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

Take image with python script 1 year 9 months ago #9940

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.

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

Take image with python script 1 year 9 months ago #9983

  • fehlfarbe
  • fehlfarbe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Karma: 1
  • Thank you received: 18
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)

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

Last Edit: by fehlfarbe.

Take image with python script 1 week 4 days ago #26541

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 :)

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

Take image with python script 1 week 4 days ago #26551

  • fehlfarbe
  • fehlfarbe's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 46
  • Karma: 1
  • Thank you received: 18
Can you post the full error message?

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

Time to create page: 0.096 seconds

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!


Gallery

Replica

Why INDI

Replica