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

Monthly maintenance release INDI v1.8.1

Ekos scheduler - scripting help

1 week 5 days ago
starman99
Fresh Boarder
Fresh Boarder
Posts: 9
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.

1 week 4 days ago
knro
Administrator
Administrator
Posts: 7185
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.

1 week 3 days ago 1 week 3 days ago by starman99.
starman99
Fresh Boarder
Fresh Boarder
Posts: 9
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.

3 days 4 hours ago
starman99
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Ekos scheduler - scripting help #43605
OK, so this does work somewhat. Interestingly, there are 4 different settings for fan speed control:

Apogee CCD.CCD_FAN.FAN_OFF=Off
Apogee CCD.CCD_FAN.FAN_SLOW=On
Apogee CCD.CCD_FAN.FAN_MED=Off
Apogee CCD.CCD_FAN.FAN_FAST=Off

So it turns out that if I want to turn the fan on high then I have to make sure that OFF, SLOW, and MED are all "Off". Makes sense once you know it.

Is there a way to query the Indi properties to find out which ones are writable and which ones are read-only?

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

2 days 12 hours ago
knro
Administrator
Administrator
Posts: 7185
Karma: 51
Ekos scheduler - scripting help #43630
indi_getprop is your friend.

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 starman99

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

1 day 3 hours ago
starman99
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
Ekos scheduler - scripting help #43685
Thanks for the tip - that's a big help.

Here is my revised command to turn the fans on low, which seems to work:
indi_setprop "Apogee CCD.CCD_FAN.FAN_OFF;FAN_SLOW;FAN_MED;FAN_FAST=Off;On;Off;Off"

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

Time to create page: 0.224 seconds