×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

Ekos scheduler - scripting help

5 days 8 hours ago
starman99
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Ekos scheduler - scripting help #43142
Hi,

I am hoping to use the Ekos scheduler to be able to run a series of exposures during a given night from a permanant observatory (no automation yet). I'm running everything off of a battery, so need to conserve power.

Here is a typical scenario:

1 - turn on apogee fans and cooler an hour before imaging start time
2 - run series of calibration frames without tracking/guiding
3 - start mount tracking, slew, guide etc.
3 - run series of light frames
4 - run series of flat frames
5 - park mount, warm ccd, turn off ccd fans
6 - wait for me to come and roll the roof shut :-)

It looks like Scheduler can do all of this except turn off the fans. Can anyone put together a dummy script to show me how control the fans? I can't find much info on scripting - are there any tutorials?

Thanks!

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

4 days 16 hours ago
knro
Administrator
Administrator
Posts: 7150
Karma: 51
Ekos scheduler - scripting help #43175
Very interesting project, please let us know how it goes.

You can turn off the fans using indi_setprop:
indi_setprop "Apogee CCD.CCD_FAN.FAN_OFF=On"

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

3 days 7 hours ago 3 days 7 hours ago by starman99.
starman99
Fresh Boarder
Fresh Boarder
Posts: 5
More
Topic Author
Ekos scheduler - scripting help #43226
OK, so I made my first ever bash script! Baby steps... :cheer:

#!/bin/bash
# Script to shutdown Apogee after imaging ends

# warm CCD slowly
echo "Warming CCD..."
indi_setprop "Apogee CCD.CCD_FAN.FAN_SLOW=On"
indi_setprop "Apogee CCD.CCD_COOLER_POWER.CCD_COOLER_VALUE=3"
sleep 5m
indi_setprop "Apogee CCD.CCD_COOLER_POWER.CCD_COOLER_VALUE=0"
sleep 15m

# turn off CCD fans
echo "Turning off CCD fans"
indi_setprop "Apogee CCD.CCD_FAN.FAN_OFF=On"

exit(0)

Is there a better way to slowly warm the chip? There doesn's seem to be a way to control the CCD temp setpoint via indi_setprop.
Do you think this code will run?

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

Time to create page: 0.183 seconds