×

INDI Library v1.9.6 Released (21 May 2022)

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

Scripts Manager Example?

  • Posts: 133
  • Thank you received: 13
Anyone have a simple example script that works in the Scripts Manager (Pre-Job, Pre-Capture, Post-Capture, or Post-Job) so I can see how the process works? I have py scripts that work with Ekos via command line, but can't get anything to work in the Scripts Manager. I'm clearly missing something. Any kind of working example would be great.
Last edit: 2 months 2 weeks ago by AirBourn.
2 months 2 weeks ago #82132

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

pre_capture_scripts.sh
#!/bin/bash
 
indi_setprop "CCD Simulator.CCD_GAIN.GAIN=50"
 
exit 0

Then chmod +x pre_capture_script.sh
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
2 months 2 weeks ago #82162

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

  • Posts: 10
  • Thank you received: 3
#My shut down scripts

#!/bin/bash
echo " EAF to zero"
sleep 5
indi_setprop "ASI EAF.ABS_FOCUS_POSITION.FOCUS_ABSOLUTE_POSITION=0"

echo "EAF is zero"
sleep 5

"Shutdown in 5 seconds"

sudo shutdown now
exit 0
The following user(s) said Thank You: AirBourn
2 months 2 weeks ago #82207

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

  • Posts: 10
  • Thank you received: 3
#My shut down scripts
 
#!/bin/bash
echo " EAF to zero"
sleep 5
indi_setprop "ASI EAF.ABS_FOCUS_POSITION.FOCUS_ABSOLUTE_POSITION=0"
 
echo "EAF is zero"
sleep 5
 
"Shutdown in 5 seconds"
 
sudo shutdown now
exit 0
 
The following user(s) said Thank You: AirBourn
2 months 2 weeks ago #82208

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

  • Posts: 87
  • Thank you received: 9

Replied by Juergen on topic Scripts Manager Example?

Hi,
perhaps a silly question: were do I get those device specific commands from? E.g. "ASI EAF.ABS_FOCUS_POSITION.FOCUS_ABSOLUTE_POSITION=0"? I would like to do this also for my Pegasus DMFC.

indi_setprob is I think self explaining, but is there an existing list with other commands?

CS

Jürgen
2 months 2 weeks ago #82225

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

indi_getprop
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
2 months 2 weeks ago #82227

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

  • Posts: 87
  • Thank you received: 9

Replied by Juergen on topic Scripts Manager Example?

Hi Jasem,
thank you for the tip. I tried it with simulators and it gives out a bunch of commands for each device :-)
2 months 2 weeks ago #82228

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

  • Posts: 133
  • Thank you received: 13

Replied by AirBourn on topic Scripts Manager Example?

Scripting question: Is the Directory listed under the File Settings in the Camera & Filter Wheel Module available from indi_getprop? I would assume it's in the RECORD_FILE.RECORD_FILE_DIR property, but I get 'indi__D_' in the path rather than the directory name.
ZWO ASI1600MM Pro.RECORD_FILE.RECORD_FILE_DIR=/home/airbourn/indi__D_
ZWO ASI1600MM Pro.RECORD_FILE.RECORD_FILE_NAME=indi_record__T_
2 months 2 weeks ago #82249

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

Negative. This was discussed before. It is best to send some JSON object to the scripts so they can parse information. RIght now, no arguments are sent at all. It was on the TODO list but never got done. Unless someone want to start working on it in Ekos capture module.
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: AirBourn
2 months 2 weeks ago #82257

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

  • Posts: 133
  • Thank you received: 13

Replied by AirBourn on topic Scripts Manager Example?

Interesting - OK thanks. Maybe I'll poke around in the module and look into it.
2 months 2 weeks ago #82276

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

  • Posts: 106
  • Thank you received: 17

Replied by AstroMuni on topic Scripts Manager Example?

Would be good to create an area in the Ekos website for users to upload their scripts. Like drivers
2 months 1 week ago #82329

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

Time to create page: 0.842 seconds