×

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

Bi-monthly release with minor bug fixes and improvements

Scripts Manager Example?

  • Posts: 179
  • Thank you received: 16
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: 1 year 11 months ago by AirBourn.
1 year 11 months 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
1 year 11 months ago #82162

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

  • Posts: 18
  • 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
1 year 11 months ago #82207

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

  • Posts: 18
  • 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
1 year 11 months ago #82208

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

  • Posts: 217
  • Thank you received: 19

Replied by JuergenN 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
1 year 11 months ago #82225

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

indi_getprop
1 year 11 months ago #82227

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

  • Posts: 217
  • Thank you received: 19

Replied by JuergenN 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 :-)
1 year 11 months ago #82228

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

  • Posts: 179
  • Thank you received: 16

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_
1 year 11 months 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.
The following user(s) said Thank You: AirBourn
1 year 11 months ago #82257

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

  • Posts: 179
  • Thank you received: 16

Replied by AirBourn on topic Scripts Manager Example?

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

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

  • Posts: 237
  • Thank you received: 33

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
1 year 11 months ago #82329

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

Time to create page: 0.841 seconds